@aws-amplify/adapter-nextjs 0.0.2-console-preview.3d7f188.0 → 0.0.2-console-preview.d745d43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@aws-amplify/adapter-nextjs/internals",
3
+ "main": "../lib/internals/index.js",
4
+ "browser": "../lib-esm/internals/index.js",
5
+ "module": "../lib-esm/internals/index.js",
6
+ "typings": "../lib-esm/internals/index.d.ts"
7
+ }
@@ -0,0 +1,2 @@
1
+ export { getAmplifyConfig } from '../utils';
2
+ export { NextServer } from '../types';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getAmplifyConfig = void 0;
6
+ var utils_1 = require("../utils");
7
+ Object.defineProperty(exports, "getAmplifyConfig", { enumerable: true, get: function () { return utils_1.getAmplifyConfig; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,kCAA4C;AAAnC,yGAAA,gBAAgB,OAAA"}
@@ -41,7 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.runWithAmplifyServerContext = void 0;
42
42
  var utils_1 = require("./utils");
43
43
  var core_1 = require("@aws-amplify/core");
44
- var adapter_core_1 = require("aws-amplify/internals/adapter-core");
44
+ var adapter_core_1 = require("aws-amplify/adapter-core");
45
45
  /**
46
46
  * Runs the {@link operation} with the the context created from the {@link nextServerContext}.
47
47
  *
@@ -1 +1 @@
1
- {"version":3,"file":"runWithAmplifyServerContext.js","sourceRoot":"","sources":["../src/runWithAmplifyServerContext.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtC,iCAGiB;AACjB,0CAA0D;AAC1D,mEAK4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACI,IAAM,2BAA2B,GACvC,UAAO,EAAgC;QAA9B,iBAAiB,uBAAA,EAAE,SAAS,eAAA;;;;YAM9B,aAAa,GAAG,IAAA,wBAAgB,GAAE,CAAC;YAEzC,wEAAwE;YACxE,+CAA+C;YAC/C,IAAI,aAAa,CAAC,IAAI,EAAE;gBACjB,eAAe;gBACpB,oEAAoE;gBACpE,8DAA8D;gBAC9D,iEAAiE;gBACjE,mEAAmE;gBACnE,iBAAiB,KAAK,IAAI;oBACzB,CAAC,CAAC,4BAAqB;oBACvB,CAAC,CAAC,IAAA,4DAA6C,EAC7C,IAAA,uDAA+C,EAAC,iBAAiB,CAAC,CACjE,CAAC;gBACA,mBAAmB,GAAG,IAAA,wDAAyC,EACpE,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBACI,aAAa,GAAG,IAAA,2CAA4B,EACjD,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBAEF,sBAAO,IAAA,0CAA+B,EACrC,aAAa,EACb;wBACC,IAAI,EAAE,EAAE,mBAAmB,qBAAA,EAAE,aAAa,eAAA,EAAE;qBAC5C,EACD,SAAS,CACT,EAAC;aACF;YAED,oEAAoE;YACpE,+CAA+C;YAC/C,sBAAO,IAAA,0CAA+B,EAAC,aAAa,EAAE,EAAE,EAAE,SAAS,CAAC,EAAC;;;CACrE,CAAC;AA3CU,QAAA,2BAA2B,+BA2CrC"}
1
+ {"version":3,"file":"runWithAmplifyServerContext.js","sourceRoot":"","sources":["../src/runWithAmplifyServerContext.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtC,iCAGiB;AACjB,0CAA0D;AAC1D,yDAKkC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACI,IAAM,2BAA2B,GACvC,UAAO,EAAgC;QAA9B,iBAAiB,uBAAA,EAAE,SAAS,eAAA;;;;YAM9B,aAAa,GAAG,IAAA,wBAAgB,GAAE,CAAC;YAEzC,wEAAwE;YACxE,+CAA+C;YAC/C,IAAI,aAAa,CAAC,IAAI,EAAE;gBACjB,eAAe;gBACpB,oEAAoE;gBACpE,8DAA8D;gBAC9D,iEAAiE;gBACjE,mEAAmE;gBACnE,iBAAiB,KAAK,IAAI;oBACzB,CAAC,CAAC,4BAAqB;oBACvB,CAAC,CAAC,IAAA,4DAA6C,EAC7C,IAAA,uDAA+C,EAAC,iBAAiB,CAAC,CACjE,CAAC;gBACA,mBAAmB,GAAG,IAAA,wDAAyC,EACpE,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBACI,aAAa,GAAG,IAAA,2CAA4B,EACjD,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBAEF,sBAAO,IAAA,0CAA+B,EACrC,aAAa,EACb;wBACC,IAAI,EAAE,EAAE,mBAAmB,qBAAA,EAAE,aAAa,eAAA,EAAE;qBAC5C,EACD,SAAS,CACT,EAAC;aACF;YAED,oEAAoE;YACpE,+CAA+C;YAC/C,sBAAO,IAAA,0CAA+B,EAAC,aAAa,EAAE,EAAE,EAAE,SAAS,CAAC,EAAC;;;CACrE,CAAC;AA3CU,QAAA,2BAA2B,+BA2CrC"}
@@ -1,5 +1,5 @@
1
1
  import { ResourcesConfig } from 'aws-amplify';
2
- import { LegacyConfig } from 'aws-amplify/internals/adapter-core';
2
+ import { LegacyConfig } from 'aws-amplify/adapter-core';
3
3
  import { NextConfig } from 'next';
4
4
  /**
5
5
  * Merges the `amplifyConfig` into the `nextConfig.env`.
@@ -0,0 +1,2 @@
1
+ export { getAmplifyConfig } from '../utils';
2
+ export { NextServer } from '../types';
@@ -0,0 +1,4 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export { getAmplifyConfig } from '../utils';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internals/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  };
39
39
  import { createCookieStorageAdapterFromNextServerContext, getAmplifyConfig, } from './utils';
40
40
  import { sharedInMemoryStorage } from '@aws-amplify/core';
41
- import { createAWSCredentialsAndIdentityIdProvider, createKeyValueStorageFromCookieStorageAdapter, createUserPoolsTokenProvider, runWithAmplifyServerContext as runWithAmplifyServerContextCore, } from 'aws-amplify/internals/adapter-core';
41
+ import { createAWSCredentialsAndIdentityIdProvider, createKeyValueStorageFromCookieStorageAdapter, createUserPoolsTokenProvider, runWithAmplifyServerContext as runWithAmplifyServerContextCore, } from 'aws-amplify/adapter-core';
42
42
  /**
43
43
  * Runs the {@link operation} with the the context created from the {@link nextServerContext}.
44
44
  *
@@ -1 +1 @@
1
- {"version":3,"file":"runWithAmplifyServerContext.js","sourceRoot":"","sources":["../src/runWithAmplifyServerContext.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtC,OAAO,EACN,+CAA+C,EAC/C,gBAAgB,GAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACN,yCAAyC,EACzC,6CAA6C,EAC7C,4BAA4B,EAC5B,2BAA2B,IAAI,+BAA+B,GAC9D,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,IAAM,2BAA2B,GACvC,UAAO,EAAgC;QAA9B,iBAAiB,uBAAA,EAAE,SAAS,eAAA;;;;YAM9B,aAAa,GAAG,gBAAgB,EAAE,CAAC;YAEzC,wEAAwE;YACxE,+CAA+C;YAC/C,IAAI,aAAa,CAAC,IAAI,EAAE;gBACjB,eAAe;gBACpB,oEAAoE;gBACpE,8DAA8D;gBAC9D,iEAAiE;gBACjE,mEAAmE;gBACnE,iBAAiB,KAAK,IAAI;oBACzB,CAAC,CAAC,qBAAqB;oBACvB,CAAC,CAAC,6CAA6C,CAC7C,+CAA+C,CAAC,iBAAiB,CAAC,CACjE,CAAC;gBACA,mBAAmB,GAAG,yCAAyC,CACpE,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBACI,aAAa,GAAG,4BAA4B,CACjD,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBAEF,sBAAO,+BAA+B,CACrC,aAAa,EACb;wBACC,IAAI,EAAE,EAAE,mBAAmB,qBAAA,EAAE,aAAa,eAAA,EAAE;qBAC5C,EACD,SAAS,CACT,EAAC;aACF;YAED,oEAAoE;YACpE,+CAA+C;YAC/C,sBAAO,+BAA+B,CAAC,aAAa,EAAE,EAAE,EAAE,SAAS,CAAC,EAAC;;;CACrE,CAAC"}
1
+ {"version":3,"file":"runWithAmplifyServerContext.js","sourceRoot":"","sources":["../src/runWithAmplifyServerContext.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtC,OAAO,EACN,+CAA+C,EAC/C,gBAAgB,GAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACN,yCAAyC,EACzC,6CAA6C,EAC7C,4BAA4B,EAC5B,2BAA2B,IAAI,+BAA+B,GAC9D,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,IAAM,2BAA2B,GACvC,UAAO,EAAgC;QAA9B,iBAAiB,uBAAA,EAAE,SAAS,eAAA;;;;YAM9B,aAAa,GAAG,gBAAgB,EAAE,CAAC;YAEzC,wEAAwE;YACxE,+CAA+C;YAC/C,IAAI,aAAa,CAAC,IAAI,EAAE;gBACjB,eAAe;gBACpB,oEAAoE;gBACpE,8DAA8D;gBAC9D,iEAAiE;gBACjE,mEAAmE;gBACnE,iBAAiB,KAAK,IAAI;oBACzB,CAAC,CAAC,qBAAqB;oBACvB,CAAC,CAAC,6CAA6C,CAC7C,+CAA+C,CAAC,iBAAiB,CAAC,CACjE,CAAC;gBACA,mBAAmB,GAAG,yCAAyC,CACpE,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBACI,aAAa,GAAG,4BAA4B,CACjD,aAAa,CAAC,IAAI,EAClB,eAAe,CACf,CAAC;gBAEF,sBAAO,+BAA+B,CACrC,aAAa,EACb;wBACC,IAAI,EAAE,EAAE,mBAAmB,qBAAA,EAAE,aAAa,eAAA,EAAE;qBAC5C,EACD,SAAS,CACT,EAAC;aACF;YAED,oEAAoE;YACpE,+CAA+C;YAC/C,sBAAO,+BAA+B,CAAC,aAAa,EAAE,EAAE,EAAE,SAAS,CAAC,EAAC;;;CACrE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ResourcesConfig } from 'aws-amplify';
2
- import { LegacyConfig } from 'aws-amplify/internals/adapter-core';
2
+ import { LegacyConfig } from 'aws-amplify/adapter-core';
3
3
  import { NextConfig } from 'next';
4
4
  /**
5
5
  * Merges the `amplifyConfig` into the `nextConfig.env`.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "@aws-amplify/adapter-nextjs",
4
4
  "description": "The adapter for the supporting of using Amplify APIs in Next.js.",
5
5
  "peerDependencies": {
6
- "aws-amplify": "6.0.1-console-preview.3d7f188.0+3d7f188",
6
+ "aws-amplify": "6.0.1-console-preview.d745d43.0+d745d43",
7
7
  "next": ">=13.4.0 <14.0.0"
8
8
  },
9
9
  "dependencies": {
@@ -15,7 +15,7 @@
15
15
  "@types/node": "^20.3.1",
16
16
  "@types/react": "^18.2.13",
17
17
  "@types/react-dom": "^18.2.6",
18
- "aws-amplify": "6.0.1-console-preview.3d7f188.0+3d7f188",
18
+ "aws-amplify": "6.0.1-console-preview.d745d43.0+d745d43",
19
19
  "jest-fetch-mock": "3.0.3",
20
20
  "next": ">= 13.4.0 < 14.0.0",
21
21
  "typescript": "5.1.6"
@@ -37,13 +37,19 @@
37
37
  "import": "./lib-esm/withAmplify.js",
38
38
  "require": "./lib/withAmplify.js"
39
39
  },
40
+ "./internals": {
41
+ "types": "./lib-esm/internals/index.d.ts",
42
+ "import": "./lib-esm/internals/index.js",
43
+ "require": "./lib/internals/index.js"
44
+ },
40
45
  "./package.json": "./package.json"
41
46
  },
42
47
  "files": [
43
48
  "lib",
44
49
  "lib-esm",
45
50
  "src",
46
- "with-amplify"
51
+ "with-amplify",
52
+ "internals"
47
53
  ],
48
54
  "homepage": "https://aws-amplify.github.io/",
49
55
  "jest": {
@@ -107,6 +113,6 @@
107
113
  "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31"
108
114
  },
109
115
  "typings": "./lib-esm/index.d.ts",
110
- "version": "0.0.2-console-preview.3d7f188.0+3d7f188",
111
- "gitHead": "3d7f18818c2f9e0790157aac2d0a0bfe90f21aff"
116
+ "version": "0.0.2-console-preview.d745d43.0+d745d43",
117
+ "gitHead": "d745d43595a690928a86070deff39f3eed526437"
112
118
  }
@@ -0,0 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export { getAmplifyConfig } from '../utils';
5
+ export { NextServer } from '../types';
@@ -12,7 +12,7 @@ import {
12
12
  createKeyValueStorageFromCookieStorageAdapter,
13
13
  createUserPoolsTokenProvider,
14
14
  runWithAmplifyServerContext as runWithAmplifyServerContextCore,
15
- } from 'aws-amplify/internals/adapter-core';
15
+ } from 'aws-amplify/adapter-core';
16
16
 
17
17
  /**
18
18
  * Runs the {@link operation} with the the context created from the {@link nextServerContext}.
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import { ResourcesConfig } from 'aws-amplify';
5
- import { LegacyConfig } from 'aws-amplify/internals/adapter-core';
5
+ import { LegacyConfig } from 'aws-amplify/adapter-core';
6
6
  import { NextConfig } from 'next';
7
7
 
8
8
  // NOTE: this function is exported from the subpath `/with-amplify`.
@@ -3,5 +3,5 @@
3
3
  "main": "../lib/withAmplify.js",
4
4
  "browser": "../lib-esm/withAmplify.js",
5
5
  "module": "../lib-esm/withAmplify.js",
6
- "typings": "../lib-esm/withAmplify.js"
6
+ "typings": "../lib-esm/withAmplify.d.ts"
7
7
  }