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.
@@ -1,4 +1,4 @@
1
- import type { CacheOptions, ClearCallback, GetCallback, GetOptions } from './types.ts';
1
+ import type { CacheOptions, ClearCallback, GetCallback, GetOptions } from './types.js';
2
2
  export default class Cache {
3
3
  cachePath: string;
4
4
  options: CacheOptions;
@@ -1,4 +1,4 @@
1
- import type { CacheOptions, ClearCallback, GetCallback, GetOptions } from './types.ts';
1
+ import type { CacheOptions, ClearCallback, GetCallback, GetOptions } from './types.js';
2
2
  export default class Cache {
3
3
  cachePath: string;
4
4
  options: CacheOptions;
@@ -1,2 +1,2 @@
1
- import type { GetCallback } from './types.ts';
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.ts';
1
+ import type { GetCallback } from './types.js';
2
2
  export default function getCache<T>(endpoint: string, callback: GetCallback<T>): undefined;
@@ -1,2 +1,2 @@
1
- export { default } from './Cache.ts';
2
- export * from './types.ts';
1
+ export { default } from './Cache.js';
2
+ export * from './types.js';
@@ -1,2 +1,2 @@
1
- export { default } from './Cache.ts';
2
- export * from './types.ts';
1
+ export { default } from './Cache.js';
2
+ export * from './types.js';
@@ -1,2 +1,2 @@
1
- import type { UpdateCallback } from './types.ts';
1
+ import type { UpdateCallback } from './types.js';
2
2
  export default function update<T>(endpoint: string, callback: UpdateCallback<T>): undefined;
@@ -1,2 +1,2 @@
1
- import type { UpdateCallback } from './types.ts';
1
+ import type { UpdateCallback } from './types.js';
2
2
  export default function update<T>(endpoint: string, callback: UpdateCallback<T>): undefined;
@@ -1,4 +1,4 @@
1
- import type { CacheOptions, ClearCallback, GetCallback, GetOptions } from './types.ts';
1
+ import type { CacheOptions, ClearCallback, GetCallback, GetOptions } from './types.js';
2
2
  export default class Cache {
3
3
  cachePath: string;
4
4
  options: CacheOptions;
package/dist/esm/get.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { GetCallback } from './types.ts';
1
+ import type { GetCallback } from './types.js';
2
2
  export default function getCache<T>(endpoint: string, callback: GetCallback<T>): undefined;
@@ -1,2 +1,2 @@
1
- export { default } from './Cache.ts';
2
- export * from './types.ts';
1
+ export { default } from './Cache.js';
2
+ export * from './types.js';
@@ -1,2 +1,2 @@
1
- import type { UpdateCallback } from './types.ts';
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",
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": "^2.1.3",
40
- "mkdirp-classic": "^0.5.3",
41
- "queue-cb": "^1.5.5",
42
- "rimraf2": "^2.8.2",
43
- "temp-suffix": "^1.0.1"
39
+ "get-remote": "*",
40
+ "mkdirp-classic": "*",
41
+ "queue-cb": "*",
42
+ "rimraf2": "*",
43
+ "temp-suffix": "*"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/mocha": "*",