fetch-json-cache 1.3.3 → 1.3.5
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/dist/cjs/Cache.d.cts +1 -1
- package/dist/cjs/Cache.d.ts +1 -1
- package/dist/cjs/get.d.cts +1 -1
- package/dist/cjs/get.d.ts +1 -1
- package/dist/cjs/index.d.cts +2 -2
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/update.d.cts +1 -1
- package/dist/cjs/update.d.ts +1 -1
- package/dist/esm/Cache.d.ts +1 -1
- package/dist/esm/get.d.ts +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/update.d.ts +1 -1
- package/package.json +6 -6
package/dist/cjs/Cache.d.cts
CHANGED
package/dist/cjs/Cache.d.ts
CHANGED
package/dist/cjs/get.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GetCallback } from './types.
|
|
1
|
+
import type { GetCallback } from './types.js';
|
|
2
2
|
export default function getCache<T>(endpoint: string, callback: GetCallback<T>): undefined;
|
package/dist/cjs/get.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GetCallback } from './types.
|
|
1
|
+
import type { GetCallback } from './types.js';
|
|
2
2
|
export default function getCache<T>(endpoint: string, callback: GetCallback<T>): undefined;
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './Cache.
|
|
2
|
-
export * from './types.
|
|
1
|
+
export { default } from './Cache.js';
|
|
2
|
+
export * from './types.js';
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './Cache.
|
|
2
|
-
export * from './types.
|
|
1
|
+
export { default } from './Cache.js';
|
|
2
|
+
export * from './types.js';
|
package/dist/cjs/update.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { UpdateCallback } from './types.
|
|
1
|
+
import type { UpdateCallback } from './types.js';
|
|
2
2
|
export default function update<T>(endpoint: string, callback: UpdateCallback<T>): undefined;
|
package/dist/cjs/update.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { UpdateCallback } from './types.
|
|
1
|
+
import type { UpdateCallback } from './types.js';
|
|
2
2
|
export default function update<T>(endpoint: string, callback: UpdateCallback<T>): undefined;
|
package/dist/esm/Cache.d.ts
CHANGED
package/dist/esm/get.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GetCallback } from './types.
|
|
1
|
+
import type { GetCallback } from './types.js';
|
|
2
2
|
export default function getCache<T>(endpoint: string, callback: GetCallback<T>): undefined;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './Cache.
|
|
2
|
-
export * from './types.
|
|
1
|
+
export { default } from './Cache.js';
|
|
2
|
+
export * from './types.js';
|
package/dist/esm/update.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { UpdateCallback } from './types.
|
|
1
|
+
import type { UpdateCallback } from './types.js';
|
|
2
2
|
export default function update<T>(endpoint: string, callback: UpdateCallback<T>): undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fetch-json-cache",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Caches fetched json. Updates when etag changes and is uses cache regardless if endpoint unreachable. Uses write-file-atomic for safe updates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"every",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"version": "tsds version"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"get-remote": "
|
|
40
|
-
"mkdirp-classic": "
|
|
41
|
-
"queue-cb": "
|
|
42
|
-
"rimraf2": "
|
|
43
|
-
"temp-suffix": "
|
|
39
|
+
"get-remote": "*",
|
|
40
|
+
"mkdirp-classic": "*",
|
|
41
|
+
"queue-cb": "*",
|
|
42
|
+
"rimraf2": "*",
|
|
43
|
+
"temp-suffix": "*"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/mocha": "*",
|