UNPKG

@aws-amplify/core

Version:

Core category of aws-amplify

21 lines (19 loc) • 1.65 kB
'use strict'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 Object.defineProperty(exports, "__esModule", { value: true }); exports.AmplifyServerContextError = exports.destroyAmplifyServerContext = exports.getAmplifyServerContext = exports.createAmplifyServerContext = void 0; // Deprecated registry-backed server-context shims, restored at their original // specifier solely so OLD published `@aws-amplify/adapter-nextjs` versions // (≤ 1.7.3) keep working against this version of the libraries. Removed in the // next major version. See `serverContext/legacyServerContext.ts`. var serverContext_1 = require("./serverContext"); Object.defineProperty(exports, "createAmplifyServerContext", { enumerable: true, get: function () { return serverContext_1.createAmplifyServerContext; } }); Object.defineProperty(exports, "getAmplifyServerContext", { enumerable: true, get: function () { return serverContext_1.getAmplifyServerContext; } }); Object.defineProperty(exports, "destroyAmplifyServerContext", { enumerable: true, get: function () { return serverContext_1.destroyAmplifyServerContext; } }); // Retained (deprecated) for backwards compatibility of existing error // re-export / catch paths. The legacy server-context machinery has been // removed in favor of the singleton-free AmplifyContext model. var AmplifyServerContextError_1 = require("../errors/AmplifyServerContextError"); Object.defineProperty(exports, "AmplifyServerContextError", { enumerable: true, get: function () { return AmplifyServerContextError_1.AmplifyServerContextError; } }); //# sourceMappingURL=index.js.map