@serwist/cacheable-response 9.0.0-preview.12 → 9.0.0-preview.13

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.
@@ -10,9 +10,8 @@ export interface CacheableResponseOptions {
10
10
  headers?: HeadersInit;
11
11
  }
12
12
  /**
13
- * This class allows you to set up rules determining what
14
- * status codes and/or headers need to be present in order for a
15
- * [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
13
+ * Allows you to set up rules determining what status codes and/or headers need
14
+ * to be present in order for a [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
16
15
  * to be considered cacheable.
17
16
  */
18
17
  export declare class CacheableResponse {
@@ -29,8 +28,7 @@ export declare class CacheableResponse {
29
28
  */
30
29
  constructor(config?: CacheableResponseOptions);
31
30
  /**
32
- * Checks a response to see whether it's cacheable or not, based on this
33
- * object's configuration.
31
+ * Checks a response to see whether it's cacheable or not.
34
32
  *
35
33
  * @param response The response whose cacheability is being
36
34
  * checked.
@@ -1 +1 @@
1
- {"version":3,"file":"CacheableResponse.d.ts","sourceRoot":"","sources":["../src/CacheableResponse.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED;;;;;GAKG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAuC;IAClE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAU;IAEpC;;;;;;;;OAQG;gBACS,MAAM,GAAE,wBAA6B;IAmCjD;;;;;;;;OAQG;IACH,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;CAyDjD"}
1
+ {"version":3,"file":"CacheableResponse.d.ts","sourceRoot":"","sources":["../src/CacheableResponse.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED;;;;GAIG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAuC;IAClE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAU;IAEpC;;;;;;;;OAQG;gBACS,MAAM,GAAE,wBAA6B;IAmCjD;;;;;;;OAOG;IACH,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;CAyDjD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/cacheable-response",
3
- "version": "9.0.0-preview.12",
3
+ "version": "9.0.0-preview.13",
4
4
  "type": "module",
5
5
  "description": "A module that takes a Response object and determines whether it's cacheable based on a specific configuration.",
6
6
  "files": [
@@ -29,12 +29,12 @@
29
29
  "./package.json": "./package.json"
30
30
  },
31
31
  "dependencies": {
32
- "@serwist/core": "9.0.0-preview.12"
32
+ "@serwist/core": "9.0.0-preview.13"
33
33
  },
34
34
  "devDependencies": {
35
- "rollup": "4.9.6",
36
- "typescript": "5.4.0-dev.20240206",
37
- "@serwist/constants": "9.0.0-preview.12"
35
+ "rollup": "4.12.0",
36
+ "typescript": "5.5.0-dev.20240304",
37
+ "@serwist/constants": "9.0.0-preview.13"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "typescript": ">=5.0.0"
@@ -21,9 +21,8 @@ export interface CacheableResponseOptions {
21
21
  }
22
22
 
23
23
  /**
24
- * This class allows you to set up rules determining what
25
- * status codes and/or headers need to be present in order for a
26
- * [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
24
+ * Allows you to set up rules determining what status codes and/or headers need
25
+ * to be present in order for a [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
27
26
  * to be considered cacheable.
28
27
  */
29
28
  export class CacheableResponse {
@@ -75,8 +74,7 @@ export class CacheableResponse {
75
74
  }
76
75
 
77
76
  /**
78
- * Checks a response to see whether it's cacheable or not, based on this
79
- * object's configuration.
77
+ * Checks a response to see whether it's cacheable or not.
80
78
  *
81
79
  * @param response The response whose cacheability is being
82
80
  * checked.