@aws-amplify/datastore 5.0.52 → 5.0.53-email-mfa-test.4e655bc.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,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
2
|
+
"name": "@aws-amplify/datastore",
|
|
3
|
+
"version": "5.0.53-email-mfa-test.4e655bc.0+4e655bc",
|
|
4
|
+
"description": "AppSyncLocal support for aws-amplify",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/esm/index.mjs",
|
|
7
|
+
"typings": "./dist/esm/index.d.ts",
|
|
8
|
+
"react-native": "./src/index.ts",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"./dist/cjs/datastore/datastore.js",
|
|
14
|
+
"./dist/esm/datastore/datastore.mjs"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "npm run lint && jest -w 1 --coverage --logHeapUsage",
|
|
18
|
+
"test:size": "size-limit",
|
|
19
|
+
"build-with-test": "npm test && npm run build",
|
|
20
|
+
"build:umd": "webpack && webpack --config ./webpack.config.dev.js",
|
|
21
|
+
"build:esm-cjs": "rollup --forceExit -c rollup.config.mjs",
|
|
22
|
+
"build:watch": "npm run build:esm-cjs -- --watch",
|
|
23
|
+
"build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
|
|
24
|
+
"clean": "npm run clean:size && rimraf dist lib lib-esm",
|
|
25
|
+
"clean:size": "rimraf dual-publish-tmp tmp*",
|
|
26
|
+
"format": "echo \"Not implemented\" && npm run ts-coverage",
|
|
27
|
+
"lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage",
|
|
28
|
+
"lint:fix": "eslint '**/*.{ts,tsx}' --fix",
|
|
29
|
+
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 92.05"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/aws-amplify/amplify-js.git"
|
|
34
|
+
},
|
|
35
|
+
"author": "Amazon Web Services",
|
|
36
|
+
"license": "Apache-2.0",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/aws/aws-amplify/issues"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://aws-amplify.github.io/",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist/cjs",
|
|
43
|
+
"dist/esm",
|
|
44
|
+
"src"
|
|
45
|
+
],
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@aws-amplify/api": "6.0.53-email-mfa-test.4e655bc.0+4e655bc",
|
|
48
|
+
"buffer": "4.9.2",
|
|
49
|
+
"idb": "5.0.6",
|
|
50
|
+
"immer": "9.0.6",
|
|
51
|
+
"rxjs": "^7.8.1",
|
|
52
|
+
"ulid": "^2.3.0"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@aws-amplify/core": "6.4.4-email-mfa-test.4e655bc.0+4e655bc"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@aws-amplify/core": "6.4.4-email-mfa-test.4e655bc.0+4e655bc",
|
|
59
|
+
"@aws-amplify/react-native": "1.1.7-email-mfa-test.4e655bc.0+4e655bc",
|
|
60
|
+
"@types/uuid-validate": "^0.0.1",
|
|
61
|
+
"dexie": "3.2.2",
|
|
62
|
+
"dexie-export-import": "1.0.3",
|
|
63
|
+
"fake-indexeddb": "^4.0.2",
|
|
64
|
+
"graphql": "15.8.0",
|
|
65
|
+
"typescript": "5.0.2"
|
|
66
|
+
},
|
|
67
|
+
"size-limit": [
|
|
68
|
+
{
|
|
69
|
+
"name": "DataStore (top-level class)",
|
|
70
|
+
"path": "./dist/esm/index.mjs",
|
|
71
|
+
"import": "{ Amplify, DataStore }",
|
|
72
|
+
"limit": "65.25 kB"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"gitHead": "4e655bc4f0e0668142499e38a1f74d461d52f128"
|
|
76
76
|
}
|
|
@@ -422,6 +422,7 @@ const initSchema = (userSchema: Schema) => {
|
|
|
422
422
|
const result = new Map<string, string[]>();
|
|
423
423
|
|
|
424
424
|
let count = 1000;
|
|
425
|
+
// eslint-disable-next-line no-constant-binary-expression
|
|
425
426
|
while (true && count > 0) {
|
|
426
427
|
if (modelAssociations.size === 0) {
|
|
427
428
|
break;
|
package/src/types.ts
CHANGED
|
@@ -646,7 +646,7 @@ export type MetadataReadOnlyFields<
|
|
|
646
646
|
// This type makes optional some identifiers in the constructor init object (e.g. OptionallyManagedIdentifier)
|
|
647
647
|
export type ModelInitBase<
|
|
648
648
|
T extends PersistentModel,
|
|
649
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
649
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
650
650
|
M extends PersistentModelMetaData<T> = {},
|
|
651
651
|
> = Omit<
|
|
652
652
|
T,
|
|
@@ -661,7 +661,7 @@ export type ModelInitBase<
|
|
|
661
661
|
|
|
662
662
|
export type ModelInit<
|
|
663
663
|
T extends PersistentModel,
|
|
664
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
664
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
665
665
|
M extends PersistentModelMetaData<T> = {},
|
|
666
666
|
> = {
|
|
667
667
|
[P in keyof OmitOptionalRelatives<ModelInitBase<T, M>>]: SettableFieldType<
|
|
@@ -687,7 +687,7 @@ type DeepWritable<T> = {
|
|
|
687
687
|
|
|
688
688
|
export type MutableModel<
|
|
689
689
|
T extends PersistentModel,
|
|
690
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
690
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
691
691
|
M extends PersistentModelMetaData<T> = {},
|
|
692
692
|
// This provides Intellisense with ALL of the properties, regardless of read-only
|
|
693
693
|
// but will throw a linting error if trying to overwrite a read-only property
|