@aws-amplify/core 6.0.6-unstable.8ca7c15.0 → 6.0.6-unstable.a353e0d.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.
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.version = void 0;
5
5
  // generated by genversion
6
- exports.version = '6.0.6-unstable.8ca7c15.0+8ca7c15';
6
+ exports.version = '6.0.6-unstable.a353e0d.0+a353e0d';
7
7
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.6-unstable.8ca7c15.0+8ca7c15';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,kCAAkC;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.6-unstable.a353e0d.0+a353e0d';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,kCAAkC;;"}
@@ -1 +1 @@
1
- export declare const version = "6.0.6-unstable.8ca7c15.0+8ca7c15";
1
+ export declare const version = "6.0.6-unstable.a353e0d.0+a353e0d";
@@ -1,5 +1,5 @@
1
1
  // generated by genversion
2
- const version = '6.0.6-unstable.8ca7c15.0+8ca7c15';
2
+ const version = '6.0.6-unstable.a353e0d.0+a353e0d';
3
3
 
4
4
  export { version };
5
5
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.6-unstable.8ca7c15.0+8ca7c15';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.6-unstable.a353e0d.0+a353e0d';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "6.0.6-unstable.8ca7c15.0+8ca7c15",
3
+ "version": "6.0.6-unstable.a353e0d.0+a353e0d",
4
4
  "description": "Core category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^9.0.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-amplify/react-native": "1.0.6-unstable.8ca7c15.0+8ca7c15",
63
+ "@aws-amplify/react-native": "1.0.6-unstable.a353e0d.0+a353e0d",
64
64
  "@rollup/plugin-typescript": "11.1.5",
65
65
  "@types/js-cookie": "3.0.2",
66
66
  "genversion": "^2.2.0",
@@ -194,5 +194,45 @@
194
194
  ]
195
195
  }
196
196
  },
197
- "gitHead": "8ca7c15fe7f425b2a43821ea46778328d9860188"
197
+ "jest": {
198
+ "globals": {
199
+ "ts-jest": {
200
+ "diagnostics": false,
201
+ "tsConfig": false
202
+ }
203
+ },
204
+ "transform": {
205
+ "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
206
+ },
207
+ "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
208
+ "testPathIgnorePatterns": [
209
+ "/testUtils/"
210
+ ],
211
+ "moduleFileExtensions": [
212
+ "ts",
213
+ "tsx",
214
+ "js",
215
+ "json",
216
+ "jsx"
217
+ ],
218
+ "setupFiles": [
219
+ "./__mocks__/SessionStorage.js",
220
+ "./__mocks__/LocalStorage.js"
221
+ ],
222
+ "testEnvironment": "jsdom",
223
+ "coverageThreshold": {
224
+ "global": {
225
+ "branches": 0,
226
+ "functions": 0,
227
+ "lines": 0,
228
+ "statements": 0
229
+ }
230
+ },
231
+ "testURL": "http://localhost/",
232
+ "coveragePathIgnorePatterns": [
233
+ "/node_modules/",
234
+ "dist"
235
+ ]
236
+ },
237
+ "gitHead": "a353e0d777a1ca5e57aa4b2cda48d147ee1d4803"
198
238
  }
@@ -544,7 +544,7 @@ export abstract class StorageCacheCommon {
544
544
  * @return The remaining valid keys
545
545
  */
546
546
  private async clearInvalidAndGetRemainingKeys(): Promise<string[]> {
547
- const remainingKeys: string[] = [];
547
+ const remainingKeys = [];
548
548
  const keys = await this.getAllCacheKeys({
549
549
  omitSizeKey: true,
550
550
  });
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '6.0.6-unstable.8ca7c15.0+8ca7c15';
2
+ export const version = '6.0.6-unstable.a353e0d.0+a353e0d';
@@ -109,7 +109,7 @@ const cancellableSleep = (timeoutMs: number, abortSignal?: AbortSignal) => {
109
109
  if (abortSignal?.aborted) {
110
110
  return Promise.resolve();
111
111
  }
112
- let timeoutId: ReturnType<typeof setTimeout>;
112
+ let timeoutId: number;
113
113
  let sleepPromiseResolveFn: Function;
114
114
  const sleepPromise = new Promise<void>(resolve => {
115
115
  sleepPromiseResolveFn = resolve;