cacheable-request 10.2.4 → 10.2.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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -263,7 +263,7 @@ cacheableRequest('example.com', cb)
263
263
 
264
264
 
265
265
  ## Using Hooks
266
- Hooks have been implemented since version `v9` and are very useful to modify response before saving it in cache. You can use hooks to modify response before saving it in cache. You can also use hooks to modify response before returning it to user.
266
+ Hooks have been implemented since version `v9` and are very useful to modify response before saving it in cache. You can use hooks to modify response before saving it in cache.
267
267
 
268
268
  ### Add Hooks
269
269
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cacheable-request",
3
- "version": "10.2.4",
3
+ "version": "10.2.5",
4
4
  "description": "Wrap native HTTP requests with RFC compliant cache support",
5
5
  "license": "MIT",
6
6
  "repository": "jaredwray/cacheable-request",
@@ -32,7 +32,11 @@
32
32
  "7234",
33
33
  "compliant"
34
34
  ],
35
+ "dependenciesComments": {
36
+ "@types/http-cache-semantics": "It needs to be in the dependencies list and not devDependencies because otherwise projects that use this one will be getting `Could not find a declaration file for module 'http-cache-semantics'` error when running `tsc`, see https://github.com/jaredwray/cacheable-request/issues/194 for details"
37
+ },
35
38
  "dependencies": {
39
+ "@types/http-cache-semantics": "^4.0.1",
36
40
  "get-stream": "^6.0.1",
37
41
  "http-cache-semantics": "^4.1.0",
38
42
  "keyv": "^4.5.2",
@@ -42,7 +46,6 @@
42
46
  },
43
47
  "devDependencies": {
44
48
  "@keyv/sqlite": "^3.6.4",
45
- "@types/http-cache-semantics": "^4.0.1",
46
49
  "@types/delay": "^3.1.0",
47
50
  "@types/get-stream": "^3.0.2",
48
51
  "@types/jest": "^29.2.4",