fetch-json-cache 1.2.12 → 1.2.14

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.
Files changed (2) hide show
  1. package/README.md +0 -3
  2. package/package.json +8 -13
package/README.md CHANGED
@@ -14,19 +14,16 @@ var cache = new Cache('/path/to/cache');
14
14
 
15
15
  // get
16
16
  cache.get('https://jsonplaceholder.typicode.com/users', function(err, json) {
17
- assert.ok(!err, err ? err.message : '');
18
17
  assert.ok(json.length > 0);
19
18
  })
20
19
 
21
20
  // get with forced update
22
21
  cache.get('https://jsonplaceholder.typicode.com/users', { force: true }, function(err, json) {
23
- assert.ok(!err, err ? err.message : '');
24
22
  assert.ok(json.length > 0);
25
23
  })
26
24
 
27
25
  // clear the cache
28
26
  cache.clear(function(err) {
29
- assert.ok(!err, err ? err.message : '');
30
27
  })
31
28
 
32
29
  //////////////
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fetch-json-cache",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
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",
@@ -17,12 +17,9 @@
17
17
  "author": "Kevin Malakoff <kmalakoff@gmail.com> (https://github.com/kmalakoff)",
18
18
  "type": "module",
19
19
  "exports": {
20
- ".": {
21
- "import": "./dist/esm/index.mjs",
22
- "require": "./dist/cjs/index.cjs",
23
- "types": "./dist/types/index.d.ts"
24
- },
25
- "./*": "./*"
20
+ "import": "./dist/esm/index.mjs",
21
+ "require": "./dist/cjs/index.cjs",
22
+ "types": "./dist/types/index.d.ts"
26
23
  },
27
24
  "main": "dist/cjs/index.cjs",
28
25
  "module": "dist/esm/index.mjs",
@@ -32,24 +29,22 @@
32
29
  ],
33
30
  "scripts": {
34
31
  "build": "tsds build",
35
- "deploy": "tsds deploy",
36
- "docs": "tsds docs",
37
32
  "format": "biome check --write --unsafe src/ test/",
38
33
  "test": "tsds test:node --no-timeouts",
39
34
  "test:engines": "nvu engines npm test",
40
35
  "version": "tsds version"
41
36
  },
42
37
  "dependencies": {
43
- "get-remote": "^1.3.9",
38
+ "get-remote": "^1.3.12",
44
39
  "mkdirp-classic": "^0.5.3",
45
- "queue-cb": "^1.4.9",
40
+ "queue-cb": "^1.4.11",
46
41
  "rimraf2": "^2.8.2",
47
- "temp-suffix": "^0.1.6"
42
+ "temp-suffix": "^0.1.8"
48
43
  },
49
44
  "devDependencies": {
50
45
  "@biomejs/biome": "^1.9.4",
51
46
  "@types/mocha": "^10.0.10",
52
- "@types/node": "^22.10.2",
47
+ "@types/node": "^22.10.5",
53
48
  "fs-exists-sync": "^0.1.0",
54
49
  "pinkie-promise": "^2.0.1"
55
50
  },