@aws-amplify/datastore-storage-adapter 2.0.65 → 2.0.69
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/.rollup.cache/home/runner/work/amplify-js/amplify-js/amplify-js/packages/datastore-storage-adapter/dist/meta/cjs.tsbuildinfo +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/aws-amplify-datastore-sqlite-adapter-expo.js +77 -74
- package/dist/aws-amplify-datastore-sqlite-adapter-expo.js.map +1 -1
- package/dist/aws-amplify-datastore-sqlite-adapter-expo.min.js +1 -1
- package/dist/aws-amplify-datastore-sqlite-adapter-expo.min.js.map +1 -1
- package/dist/aws-amplify-datastore-storage-adapter.js +74 -70
- package/dist/aws-amplify-datastore-storage-adapter.js.map +1 -1
- package/dist/aws-amplify-datastore-storage-adapter.min.js +1 -1
- package/dist/aws-amplify-datastore-storage-adapter.min.js.map +1 -1
- package/lib/.tsbuildinfo +1 -3
- package/lib/ExpoSQLiteAdapter/ExpoSQLiteDatabase.js +5 -5
- package/lib/ExpoSQLiteAdapter/ExpoSQLiteDatabase.js.map +1 -1
- package/lib/SQLiteAdapter/SQLiteDatabase.js.map +1 -1
- package/lib/common/CommonSQLiteAdapter.js +47 -42
- package/lib/common/CommonSQLiteAdapter.js.map +1 -1
- package/lib/common/SQLiteUtils.d.ts +16 -1
- package/lib/common/SQLiteUtils.js +70 -67
- package/lib/common/SQLiteUtils.js.map +1 -1
- package/lib/common/constants.js +1 -0
- package/lib/common/constants.js.map +1 -1
- package/lib/common/types.d.ts +2 -2
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib-esm/.tsbuildinfo +1 -3
- package/lib-esm/ExpoSQLiteAdapter/ExpoSQLiteDatabase.js +5 -5
- package/lib-esm/ExpoSQLiteAdapter/ExpoSQLiteDatabase.js.map +1 -1
- package/lib-esm/SQLiteAdapter/SQLiteDatabase.js.map +1 -1
- package/lib-esm/common/CommonSQLiteAdapter.js +29 -25
- package/lib-esm/common/CommonSQLiteAdapter.js.map +1 -1
- package/lib-esm/common/SQLiteUtils.d.ts +16 -1
- package/lib-esm/common/SQLiteUtils.js +46 -46
- package/lib-esm/common/SQLiteUtils.js.map +1 -1
- package/lib-esm/common/types.d.ts +2 -2
- package/lib-esm/common/types.js +1 -0
- package/lib-esm/index.js +1 -0
- package/lib-esm/index.js.map +1 -1
- package/package.json +22 -23
- package/src/common/SQLiteUtils.ts +1 -1
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/datastore-storage-adapter",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.69",
|
|
4
4
|
"description": "SQLite storage adapter for Amplify DataStore ",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://aws-amplify.github.io/",
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@aws-amplify/core": "5.8.
|
|
39
|
-
"@aws-amplify/datastore": "4.7.
|
|
38
|
+
"@aws-amplify/core": "5.8.18",
|
|
39
|
+
"@aws-amplify/datastore": "4.7.26",
|
|
40
40
|
"@types/react-native-sqlite-storage": "5.0.1",
|
|
41
41
|
"expo-file-system": "13.1.4",
|
|
42
42
|
"expo-sqlite": "10.1.0",
|
|
@@ -47,25 +47,25 @@
|
|
|
47
47
|
"moduleNameMapper": {
|
|
48
48
|
"axios": "axios/dist/node/axios.cjs"
|
|
49
49
|
},
|
|
50
|
-
"globals": {
|
|
51
|
-
"ts-jest": {
|
|
52
|
-
"diagnostics": true,
|
|
53
|
-
"tsConfig": {
|
|
54
|
-
"lib": [
|
|
55
|
-
"es5",
|
|
56
|
-
"es2015",
|
|
57
|
-
"dom",
|
|
58
|
-
"esnext.asynciterable",
|
|
59
|
-
"es2019"
|
|
60
|
-
],
|
|
61
|
-
"allowJs": true,
|
|
62
|
-
"esModuleInterop": true,
|
|
63
|
-
"downlevelIteration": true
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
50
|
"transform": {
|
|
68
|
-
"^.+\\.(js|jsx|ts|tsx)$":
|
|
51
|
+
"^.+\\.(js|jsx|ts|tsx)$": [
|
|
52
|
+
"ts-jest",
|
|
53
|
+
{
|
|
54
|
+
"diagnostics": true,
|
|
55
|
+
"tsconfig": {
|
|
56
|
+
"lib": [
|
|
57
|
+
"es5",
|
|
58
|
+
"es2015",
|
|
59
|
+
"dom",
|
|
60
|
+
"esnext.asynciterable",
|
|
61
|
+
"es2019"
|
|
62
|
+
],
|
|
63
|
+
"allowJs": true,
|
|
64
|
+
"esModuleInterop": true,
|
|
65
|
+
"downlevelIteration": true
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
69
|
},
|
|
70
70
|
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
|
71
71
|
"testPathIgnorePatterns": [
|
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
"jsx"
|
|
82
82
|
],
|
|
83
83
|
"testEnvironment": "jsdom",
|
|
84
|
-
"testURL": "http://localhost/",
|
|
85
84
|
"coverageThreshold": {
|
|
86
85
|
"global": {
|
|
87
86
|
"branches": 0,
|
|
@@ -98,5 +97,5 @@
|
|
|
98
97
|
"../datastore"
|
|
99
98
|
]
|
|
100
99
|
},
|
|
101
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "68a0df1145f0f1e79d89753b1aafdbf8836a319d"
|
|
102
101
|
}
|
|
@@ -412,7 +412,7 @@ export function orderByClauseFromSort<T extends PersistentModel>(
|
|
|
412
412
|
): string {
|
|
413
413
|
const orderByParts = sortPredicate.map(
|
|
414
414
|
({ field, sortDirection }) =>
|
|
415
|
-
`"${field}" ${sortDirectionMap[sortDirection]}`
|
|
415
|
+
`"${String(field)}" ${sortDirectionMap[sortDirection]}`
|
|
416
416
|
);
|
|
417
417
|
|
|
418
418
|
// We always sort by _rowid_ last
|
package/src/index.ts
CHANGED