@types/node-fetch-cache 3.0.1 → 3.0.2

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.
@@ -22,7 +22,7 @@ declare class NFCResponse extends Response {
22
22
  interface Cache {
23
23
  get(key: string): Promise<any>;
24
24
  remove(key: string): Promise<void>;
25
- set(value: any): Promise<any>;
25
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
26
26
  }
27
27
 
28
28
  interface MemoryCacheOptions {
@@ -33,7 +33,7 @@ export class MemoryCache implements Cache {
33
33
  constructor(options?: MemoryCacheOptions);
34
34
  get(key: string): Promise<any>;
35
35
  remove(key: string): Promise<void>;
36
- set(value: any): Promise<any>;
36
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
37
37
  }
38
38
 
39
39
  interface FileSystemCacheOptions {
@@ -45,7 +45,7 @@ export class FileSystemCache implements Cache {
45
45
  constructor(options?: FileSystemCacheOptions);
46
46
  get(key: string): Promise<any>;
47
47
  remove(key: string): Promise<void>;
48
- set(value: any): Promise<any>;
48
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
49
49
  }
50
50
 
51
51
  type FetchBuilder = (cache: Cache) => FetchCache;
@@ -61,7 +61,7 @@ export const fetchBuilder: FetchCache;
61
61
  ````
62
62
 
63
63
  ### Additional Details
64
- * Last updated: Sat, 23 Sep 2023 20:38:33 GMT
64
+ * Last updated: Mon, 16 Oct 2023 21:35:53 GMT
65
65
  * Dependencies: [@types/node-fetch](https://npmjs.com/package/@types/node-fetch)
66
66
  * Global values: none
67
67
 
@@ -12,7 +12,7 @@ declare class NFCResponse extends Response {
12
12
  interface Cache {
13
13
  get(key: string): Promise<any>;
14
14
  remove(key: string): Promise<void>;
15
- set(value: any): Promise<any>;
15
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
16
16
  }
17
17
 
18
18
  interface MemoryCacheOptions {
@@ -23,7 +23,7 @@ export class MemoryCache implements Cache {
23
23
  constructor(options?: MemoryCacheOptions);
24
24
  get(key: string): Promise<any>;
25
25
  remove(key: string): Promise<void>;
26
- set(value: any): Promise<any>;
26
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
27
27
  }
28
28
 
29
29
  interface FileSystemCacheOptions {
@@ -35,7 +35,7 @@ export class FileSystemCache implements Cache {
35
35
  constructor(options?: FileSystemCacheOptions);
36
36
  get(key: string): Promise<any>;
37
37
  remove(key: string): Promise<void>;
38
- set(value: any): Promise<any>;
38
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
39
39
  }
40
40
 
41
41
  type FetchBuilder = (cache: Cache) => FetchCache;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node-fetch-cache",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "TypeScript definitions for node-fetch-cache",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch-cache",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "dependencies": {
23
23
  "@types/node-fetch": "*"
24
24
  },
25
- "typesPublisherContentHash": "aa300edd891bce3230b40e63b13d52918fd9f0eacb72a2e35d6665184ca926d3",
25
+ "typesPublisherContentHash": "286b4c981f6e52c7739ee61d4548f198efef0bab286b049f831be2a79addee62",
26
26
  "typeScriptVersion": "4.5"
27
27
  }