aws-amplify 5.3.4-api-v6.29 → 5.3.4-api-v6-models.35
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/lib/withSSRContext.js
CHANGED
|
@@ -6,13 +6,16 @@ var tslib_1 = require("tslib");
|
|
|
6
6
|
var api_1 = require("@aws-amplify/api");
|
|
7
7
|
var internals_1 = require("@aws-amplify/api/internals");
|
|
8
8
|
var auth_1 = require("@aws-amplify/auth");
|
|
9
|
+
var internals_2 = require("@aws-amplify/auth/internals");
|
|
9
10
|
var core_1 = require("@aws-amplify/core");
|
|
10
11
|
var datastore_1 = require("@aws-amplify/datastore");
|
|
11
12
|
// ! We have to use this exact reference, since it gets mutated with Amplify.Auth
|
|
12
13
|
var index_1 = require("./index");
|
|
13
14
|
var requiredModules = [
|
|
14
|
-
//
|
|
15
|
+
// Credentials cannot function without Auth
|
|
15
16
|
auth_1.Auth,
|
|
17
|
+
// API cannot function without InternalAuth
|
|
18
|
+
internals_2.InternalAuth,
|
|
16
19
|
// Auth cannot function without Credentials
|
|
17
20
|
core_1.Credentials,
|
|
18
21
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withSSRContext.js","sourceRoot":"","sources":["../src/withSSRContext.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,wCAAuC;AACvC,wDAAyD;AACzD,0CAAyC;AACzC,0CAAgF;AAChF,oDAAmD;AAEnD,iFAAiF;AACjF,iCAAkC;AAElC,IAAM,eAAe,GAAG;IACvB,
|
|
1
|
+
{"version":3,"file":"withSSRContext.js","sourceRoot":"","sources":["../src/withSSRContext.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,wCAAuC;AACvC,wDAAyD;AACzD,0CAAyC;AACzC,yDAA2D;AAC3D,0CAAgF;AAChF,oDAAmD;AAEnD,iFAAiF;AACjF,iCAAkC;AAElC,IAAM,eAAe,GAAG;I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ify/api/internals';
|
|
6
6
|
import { Auth } from '@aws-amplify/auth';
|
|
7
|
+
import { InternalAuth } from '@aws-amplify/auth/internals';
|
|
7
8
|
import { AmplifyClass, Credentials, UniversalStorage } from '@aws-amplify/core';
|
|
8
9
|
import { DataStore } from '@aws-amplify/datastore';
|
|
9
10
|
// ! We have to use this exact reference, since it gets mutated with Amplify.Auth
|
|
10
11
|
import { Amplify } from './index';
|
|
11
12
|
var requiredModules = [
|
|
12
|
-
//
|
|
13
|
+
// Credentials cannot function without Auth
|
|
13
14
|
Auth,
|
|
15
|
+
// API cannot function without InternalAuth
|
|
16
|
+
InternalAuth,
|
|
14
17
|
// Auth cannot function without Credentials
|
|
15
18
|
Credentials,
|
|
16
19
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withSSRContext.js","sourceRoot":"","sources":["../src/withSSRContext.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,iFAAiF;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,IAAM,eAAe,GAAG;IACvB,
|
|
1
|
+
{"version":3,"file":"withSSRContext.js","sourceRoot":"","sources":["../src/withSSRContext.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO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AAC,CAAC;IAEH,8DAA8D;IAC9D,OAAO,CAAC,SAAS,uBAAM,cAAc,KAAE,OAAO,SAAA,IAAG,CAAC;IAElD,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aws-amplify",
|
|
3
|
-
"version": "5.3.4-api-v6.
|
|
3
|
+
"version": "5.3.4-api-v6-models.35+95cd0806f",
|
|
4
4
|
"description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"src"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@aws-amplify/analytics": "6.3.3-api-v6.
|
|
44
|
-
"@aws-amplify/api": "5.3.4-api-v6.
|
|
45
|
-
"@aws-amplify/auth": "5.5.4-api-v6.
|
|
46
|
-
"@aws-amplify/cache": "5.1.4-api-v6.
|
|
47
|
-
"@aws-amplify/core": "5.5.3-api-v6.
|
|
48
|
-
"@aws-amplify/datastore": "4.6.4-api-v6.
|
|
49
|
-
"@aws-amplify/geo": "2.1.4-api-v6.
|
|
50
|
-
"@aws-amplify/interactions": "5.2.4-api-v6.
|
|
51
|
-
"@aws-amplify/notifications": "1.3.3-api-v6.
|
|
52
|
-
"@aws-amplify/predictions": "5.4.4-api-v6.
|
|
53
|
-
"@aws-amplify/pubsub": "5.3.4-api-v6.
|
|
54
|
-
"@aws-amplify/storage": "5.6.4-api-v6.
|
|
43
|
+
"@aws-amplify/analytics": "6.3.3-api-v6-models.35+95cd0806f",
|
|
44
|
+
"@aws-amplify/api": "5.3.4-api-v6-models.35+95cd0806f",
|
|
45
|
+
"@aws-amplify/auth": "5.5.4-api-v6-models.35+95cd0806f",
|
|
46
|
+
"@aws-amplify/cache": "5.1.4-api-v6-models.35+95cd0806f",
|
|
47
|
+
"@aws-amplify/core": "5.5.3-api-v6-models.35+95cd0806f",
|
|
48
|
+
"@aws-amplify/datastore": "4.6.4-api-v6-models.35+95cd0806f",
|
|
49
|
+
"@aws-amplify/geo": "2.1.4-api-v6-models.35+95cd0806f",
|
|
50
|
+
"@aws-amplify/interactions": "5.2.4-api-v6-models.35+95cd0806f",
|
|
51
|
+
"@aws-amplify/notifications": "1.3.3-api-v6-models.35+95cd0806f",
|
|
52
|
+
"@aws-amplify/predictions": "5.4.4-api-v6-models.35+95cd0806f",
|
|
53
|
+
"@aws-amplify/pubsub": "5.3.4-api-v6-models.35+95cd0806f",
|
|
54
|
+
"@aws-amplify/storage": "5.6.4-api-v6-models.35+95cd0806f",
|
|
55
55
|
"tslib": "^2.0.0"
|
|
56
56
|
},
|
|
57
57
|
"jest": {
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"lib-esm"
|
|
102
102
|
]
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "95cd0806f3b6a0414a6027c036fa9d46c2f15f73"
|
|
105
105
|
}
|
package/src/withSSRContext.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { API } from '@aws-amplify/api';
|
|
4
4
|
import { InternalAPI } from '@aws-amplify/api/internals';
|
|
5
5
|
import { Auth } from '@aws-amplify/auth';
|
|
6
|
+
import { InternalAuth } from '@aws-amplify/auth/internals';
|
|
6
7
|
import { AmplifyClass, Credentials, UniversalStorage } from '@aws-amplify/core';
|
|
7
8
|
import { DataStore } from '@aws-amplify/datastore';
|
|
8
9
|
|
|
@@ -10,8 +11,10 @@ import { DataStore } from '@aws-amplify/datastore';
|
|
|
10
11
|
import { Amplify } from './index';
|
|
11
12
|
|
|
12
13
|
const requiredModules = [
|
|
13
|
-
//
|
|
14
|
+
// Credentials cannot function without Auth
|
|
14
15
|
Auth,
|
|
16
|
+
// API cannot function without InternalAuth
|
|
17
|
+
InternalAuth,
|
|
15
18
|
// Auth cannot function without Credentials
|
|
16
19
|
Credentials,
|
|
17
20
|
];
|
|
@@ -29,6 +32,7 @@ export function withSSRContext(context: Context = {}) {
|
|
|
29
32
|
if (modules.includes(DataStore)) {
|
|
30
33
|
modules.push(InternalAPI);
|
|
31
34
|
}
|
|
35
|
+
|
|
32
36
|
const previousConfig = Amplify.configure();
|
|
33
37
|
const amplify = new AmplifyClass();
|
|
34
38
|
const storage = new UniversalStorage({ req });
|