@aws-amplify/datastore-storage-adapter 2.1.5 → 2.1.6-unstable.f2b7a8d.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/jest.setup.js CHANGED
@@ -2,6 +2,6 @@ const crypto = require('crypto');
2
2
 
3
3
  Object.defineProperty(globalThis, 'crypto', {
4
4
  value: {
5
- getRandomValues: arr => crypto.randomBytes(arr.length)
6
- }
5
+ getRandomValues: arr => crypto.randomBytes(arr.length),
6
+ },
7
7
  });
package/package.json CHANGED
@@ -1,104 +1,104 @@
1
1
  {
2
- "name": "@aws-amplify/datastore-storage-adapter",
3
- "version": "2.1.5",
4
- "description": "SQLite storage adapter for Amplify DataStore ",
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
- "scripts": {
13
- "test": "npm run lint && jest -w 1 --coverage",
14
- "build-with-test": "npm test && npm run build",
15
- "build:umd": "webpack && webpack --config ./webpack.config.dev.js",
16
- "build:esm-cjs": "rollup -c rollup.config.mjs",
17
- "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
18
- "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
19
- "build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
20
- "clean": "rimraf dist lib lib-esm",
21
- "format": "echo \"Not implemented\"",
22
- "lint": "tslint '{__tests__,src}/**/*.ts' && npm run ts-coverage",
23
- "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 94.16"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "https://github.com/aws-amplify/amplify-js.git"
28
- },
29
- "author": "Amazon Web Services",
30
- "license": "Apache-2.0",
31
- "bugs": {
32
- "url": "https://github.com/aws/aws-amplify/issues"
33
- },
34
- "homepage": "https://aws-amplify.github.io/",
35
- "peerDependencies": {
36
- "@aws-amplify/core": "^6.0.0"
37
- },
38
- "devDependencies": {
39
- "@aws-amplify/core": "6.0.5",
40
- "@aws-amplify/datastore": "5.0.5",
41
- "@rollup/plugin-typescript": "11.1.5",
42
- "@types/react-native-sqlite-storage": "5.0.1",
43
- "expo-file-system": "13.1.4",
44
- "expo-sqlite": "10.1.0",
45
- "react-native-sqlite-storage": "5.0.0",
46
- "rollup": "3.29.4",
47
- "sqlite3": "^5.0.2",
48
- "typescript": "5.0.2"
49
- },
50
- "jest": {
51
- "globals": {
52
- "ts-jest": {
53
- "diagnostics": true,
54
- "tsConfig": {
55
- "lib": [
56
- "es5",
57
- "es2015",
58
- "dom",
59
- "esnext.asynciterable",
60
- "es2019"
61
- ],
62
- "allowJs": true,
63
- "esModuleInterop": true,
64
- "downlevelIteration": true
65
- }
66
- }
67
- },
68
- "transform": {
69
- "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
70
- },
71
- "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
72
- "testPathIgnorePatterns": [
73
- "__tests__/model.ts",
74
- "__tests__/schema.ts",
75
- "__tests__/helpers.ts"
76
- ],
77
- "moduleFileExtensions": [
78
- "ts",
79
- "tsx",
80
- "js",
81
- "json",
82
- "jsx"
83
- ],
84
- "testEnvironment": "jsdom",
85
- "testURL": "http://localhost/",
86
- "coverageThreshold": {
87
- "global": {
88
- "branches": 0,
89
- "functions": 0,
90
- "lines": 0,
91
- "statements": 0
92
- }
93
- },
94
- "coveragePathIgnorePatterns": [
95
- "/node_modules/",
96
- "dist",
97
- "../datastore"
98
- ],
99
- "setupFilesAfterEnv": [
100
- "<rootDir>/jest.setup.js"
101
- ]
102
- },
103
- "gitHead": "1c545f4a0c111245a66d489aeb01a0c0f78cf7cb"
2
+ "name": "@aws-amplify/datastore-storage-adapter",
3
+ "version": "2.1.6-unstable.f2b7a8d.0+f2b7a8d",
4
+ "description": "SQLite storage adapter for Amplify DataStore ",
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
+ "scripts": {
13
+ "test": "npm run lint && jest -w 1 --coverage",
14
+ "build-with-test": "npm test && npm run build",
15
+ "build:umd": "webpack && webpack --config ./webpack.config.dev.js",
16
+ "build:esm-cjs": "rollup -c rollup.config.mjs",
17
+ "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
18
+ "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
19
+ "build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
20
+ "clean": "rimraf dist lib lib-esm",
21
+ "format": "echo \"Not implemented\"",
22
+ "lint": "tslint '{__tests__,src}/**/*.ts' && npm run ts-coverage",
23
+ "ts-coverage": "typescript-coverage-report -p ./tsconfig.json -t 94.16"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/aws-amplify/amplify-js.git"
28
+ },
29
+ "author": "Amazon Web Services",
30
+ "license": "Apache-2.0",
31
+ "bugs": {
32
+ "url": "https://github.com/aws/aws-amplify/issues"
33
+ },
34
+ "homepage": "https://aws-amplify.github.io/",
35
+ "peerDependencies": {
36
+ "@aws-amplify/core": "6.0.6-unstable.f2b7a8d.0+f2b7a8d"
37
+ },
38
+ "devDependencies": {
39
+ "@aws-amplify/core": "6.0.6-unstable.f2b7a8d.0+f2b7a8d",
40
+ "@aws-amplify/datastore": "5.0.6-unstable.f2b7a8d.0+f2b7a8d",
41
+ "@rollup/plugin-typescript": "11.1.5",
42
+ "@types/react-native-sqlite-storage": "5.0.1",
43
+ "expo-file-system": "13.1.4",
44
+ "expo-sqlite": "10.1.0",
45
+ "react-native-sqlite-storage": "5.0.0",
46
+ "rollup": "3.29.4",
47
+ "sqlite3": "^5.0.2",
48
+ "typescript": "5.0.2"
49
+ },
50
+ "jest": {
51
+ "globals": {
52
+ "ts-jest": {
53
+ "diagnostics": true,
54
+ "tsConfig": {
55
+ "lib": [
56
+ "es5",
57
+ "es2015",
58
+ "dom",
59
+ "esnext.asynciterable",
60
+ "es2019"
61
+ ],
62
+ "allowJs": true,
63
+ "esModuleInterop": true,
64
+ "downlevelIteration": true
65
+ }
66
+ }
67
+ },
68
+ "transform": {
69
+ "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
70
+ },
71
+ "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
72
+ "testPathIgnorePatterns": [
73
+ "__tests__/model.ts",
74
+ "__tests__/schema.ts",
75
+ "__tests__/helpers.ts"
76
+ ],
77
+ "moduleFileExtensions": [
78
+ "ts",
79
+ "tsx",
80
+ "js",
81
+ "json",
82
+ "jsx"
83
+ ],
84
+ "testEnvironment": "jsdom",
85
+ "testURL": "http://localhost/",
86
+ "coverageThreshold": {
87
+ "global": {
88
+ "branches": 0,
89
+ "functions": 0,
90
+ "lines": 0,
91
+ "statements": 0
92
+ }
93
+ },
94
+ "coveragePathIgnorePatterns": [
95
+ "/node_modules/",
96
+ "dist",
97
+ "../datastore"
98
+ ],
99
+ "setupFilesAfterEnv": [
100
+ "<rootDir>/jest.setup.js"
101
+ ]
102
+ },
103
+ "gitHead": "f2b7a8d78058af2e1c04f7d507525641def667c3"
104
104
  }
@@ -85,8 +85,8 @@ export class CommonSQLiteAdapter implements StorageAdapter {
85
85
  const usesCPKCodegen = Object.values(
86
86
  this.schema.namespaces.user.models
87
87
  ).some(model =>
88
- Object.values(model.fields).some(field =>
89
- field.association?.hasOwnProperty('targetNames')
88
+ Object.values(model.fields).some(
89
+ field => field.association?.hasOwnProperty('targetNames')
90
90
  )
91
91
  );
92
92
  if (usesCPKCodegen) {