@aws-amplify/adapter-nextjs 1.0.5 → 1.0.6-unstable.1738080.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.
package/package.json CHANGED
@@ -1,125 +1,76 @@
1
1
  {
2
- "author": "Amazon Web Services",
3
- "name": "@aws-amplify/adapter-nextjs",
4
- "version": "1.0.5",
5
- "description": "The adapter for the supporting of using Amplify APIs in Next.js.",
6
- "peerDependencies": {
7
- "aws-amplify": "^6.0.0",
8
- "next": ">=13.5.0 <15.0.0"
9
- },
10
- "dependencies": {
11
- "cookie": "0.5.0"
12
- },
13
- "devDependencies": {
14
- "@rollup/plugin-typescript": "11.1.5",
15
- "@types/cookie": "0.5.1",
16
- "@types/node": "^20.3.1",
17
- "@types/react": "^18.2.13",
18
- "@types/react-dom": "^18.2.6",
19
- "aws-amplify": "6.0.5",
20
- "jest-fetch-mock": "3.0.3",
21
- "next": ">= 13.5.0 < 15.0.0",
22
- "rollup": "3.29.4",
23
- "typescript": "5.0.2"
24
- },
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "bugs": {
29
- "url": "https://github.com/aws/aws-amplify/issues"
30
- },
31
- "exports": {
32
- ".": {
33
- "types": "./dist/esm/index.d.ts",
34
- "import": "./dist/esm/index.mjs",
35
- "require": "./dist/cjs/index.js"
36
- },
37
- "./api": {
38
- "types": "./dist/esm/api/index.d.ts",
39
- "import": "./dist/esm/api/index.mjs",
40
- "require": "./dist/cjs/api/index.js"
41
- },
42
- "./data": {
43
- "types": "./dist/esm/api/index.d.ts",
44
- "import": "./dist/esm/api/index.mjs",
45
- "require": "./dist/cjs/api/index.js"
46
- },
47
- "./package.json": "./package.json"
48
- },
49
- "files": [
50
- "dist/cjs",
51
- "dist/esm",
52
- "src",
53
- "api",
54
- "data"
55
- ],
56
- "homepage": "https://aws-amplify.github.io/",
57
- "license": "Apache-2.0",
58
- "main": "./dist/cjs/index.js",
59
- "module": "./dist/esm/index.mjs",
60
- "typings": "./dist/esm/index.d.ts",
61
- "sideEffects": false,
62
- "scripts": {
63
- "build": "npm run clean && npm run build:esm-cjs",
64
- "build-with-test": "npm test && npm run build",
65
- "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
66
- "build:esm-cjs": "rollup -c rollup.config.mjs",
67
- "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
68
- "clean": "npm run clean:size && rimraf dist",
69
- "clean:size": "rimraf dual-publish-tmp tmp*",
70
- "format": "echo \"Not implemented\"",
71
- "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
72
- "test": "npm run lint && jest -w 1 --coverage",
73
- "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31"
74
- },
75
- "jest": {
76
- "coveragePathIgnorePatterns": [
77
- "/node_modules/",
78
- "dist",
79
- "lib",
80
- "lib-esm",
81
- "__tests__/mocks"
82
- ],
83
- "coverageThreshold": {
84
- "global": {
85
- "branches": 88,
86
- "functions": 90,
87
- "lines": 92,
88
- "statements": 93
89
- }
90
- },
91
- "globals": {
92
- "ts-jest": {
93
- "diagnostics": {
94
- "pathRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$"
95
- },
96
- "tsConfig": {
97
- "allowJs": true,
98
- "types": [
99
- "@types/jest"
100
- ]
101
- }
102
- }
103
- },
104
- "moduleFileExtensions": [
105
- "ts",
106
- "tsx",
107
- "js",
108
- "json",
109
- "jsx"
110
- ],
111
- "testEnvironment": "node",
112
- "testPathIgnorePatterns": [
113
- "xmlParser-fixture.ts",
114
- "testUtils",
115
- "cases",
116
- "mocks"
117
- ],
118
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
119
- "testURL": "http://localhost/",
120
- "transform": {
121
- "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
122
- }
123
- },
124
- "gitHead": "1c545f4a0c111245a66d489aeb01a0c0f78cf7cb"
2
+ "author": "Amazon Web Services",
3
+ "name": "@aws-amplify/adapter-nextjs",
4
+ "version": "1.0.6-unstable.1738080.0+1738080",
5
+ "description": "The adapter for the supporting of using Amplify APIs in Next.js.",
6
+ "peerDependencies": {
7
+ "aws-amplify": "6.0.6-unstable.1738080.0+1738080",
8
+ "next": ">=13.5.0 <15.0.0"
9
+ },
10
+ "dependencies": {
11
+ "cookie": "0.5.0"
12
+ },
13
+ "devDependencies": {
14
+ "@rollup/plugin-typescript": "11.1.5",
15
+ "@types/cookie": "0.5.1",
16
+ "@types/node": "^20.3.1",
17
+ "@types/react": "^18.2.13",
18
+ "@types/react-dom": "^18.2.6",
19
+ "aws-amplify": "6.0.6-unstable.1738080.0+1738080",
20
+ "jest-fetch-mock": "3.0.3",
21
+ "next": ">= 13.5.0 < 15.0.0",
22
+ "rollup": "3.29.4",
23
+ "typescript": "5.0.2"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/aws/aws-amplify/issues"
30
+ },
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/esm/index.d.ts",
34
+ "import": "./dist/esm/index.mjs",
35
+ "require": "./dist/cjs/index.js"
36
+ },
37
+ "./api": {
38
+ "types": "./dist/esm/api/index.d.ts",
39
+ "import": "./dist/esm/api/index.mjs",
40
+ "require": "./dist/cjs/api/index.js"
41
+ },
42
+ "./data": {
43
+ "types": "./dist/esm/api/index.d.ts",
44
+ "import": "./dist/esm/api/index.mjs",
45
+ "require": "./dist/cjs/api/index.js"
46
+ },
47
+ "./package.json": "./package.json"
48
+ },
49
+ "files": [
50
+ "dist/cjs",
51
+ "dist/esm",
52
+ "src",
53
+ "api",
54
+ "data"
55
+ ],
56
+ "homepage": "https://aws-amplify.github.io/",
57
+ "license": "Apache-2.0",
58
+ "main": "./dist/cjs/index.js",
59
+ "module": "./dist/esm/index.mjs",
60
+ "typings": "./dist/esm/index.d.ts",
61
+ "sideEffects": false,
62
+ "scripts": {
63
+ "build": "npm run clean && npm run build:esm-cjs",
64
+ "build-with-test": "npm test && npm run build",
65
+ "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
66
+ "build:esm-cjs": "rollup -c rollup.config.mjs",
67
+ "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
68
+ "clean": "npm run clean:size && rimraf dist",
69
+ "clean:size": "rimraf dual-publish-tmp tmp*",
70
+ "format": "echo \"Not implemented\"",
71
+ "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
72
+ "test": "npm run lint && jest -w 1 --coverage",
73
+ "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31"
74
+ },
75
+ "gitHead": "173808083899826931b88a910fc93c34e5b4a03a"
125
76
  }
@@ -44,7 +44,7 @@ type ReqClientParams = {
44
44
  * const result = await client.graphql({ query: listPosts });
45
45
  */
46
46
  export function generateServerClientUsingCookies<
47
- T extends Record<any, any> = never
47
+ T extends Record<any, any> = never,
48
48
  >({
49
49
  config,
50
50
  cookies,
@@ -99,7 +99,7 @@ export function generateServerClientUsingCookies<
99
99
  * });
100
100
  */
101
101
  export function generateServerClientUsingReqRes<
102
- T extends Record<any, any> = never
102
+ T extends Record<any, any> = never,
103
103
  >({ config, authMode, authToken }: ReqClientParams): V6ClientSSRRequest<T> {
104
104
  const amplifyConfig = getAmplifyConfig(config);
105
105
  // passing `null` instance because each (future model) method must retrieve a valid instance