@types/node-fetch-cache 3.0.1 → 3.0.3

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.
@@ -8,11 +8,6 @@ This package contains type definitions for node-fetch-cache (https://github.com/
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch-cache.
9
9
  ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch-cache/index.d.ts)
10
10
  ````ts
11
- // Type definitions for node-fetch-cache 3.0
12
- // Project: https://github.com/mistval/node-fetch-cache#readme
13
- // Definitions by: Yusuke Fujiki <https://github.com/fujikky>
14
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
-
16
11
  import fetch, { Response } from "node-fetch";
17
12
 
18
13
  declare class NFCResponse extends Response {
@@ -22,7 +17,7 @@ declare class NFCResponse extends Response {
22
17
  interface Cache {
23
18
  get(key: string): Promise<any>;
24
19
  remove(key: string): Promise<void>;
25
- set(value: any): Promise<any>;
20
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
26
21
  }
27
22
 
28
23
  interface MemoryCacheOptions {
@@ -33,7 +28,7 @@ export class MemoryCache implements Cache {
33
28
  constructor(options?: MemoryCacheOptions);
34
29
  get(key: string): Promise<any>;
35
30
  remove(key: string): Promise<void>;
36
- set(value: any): Promise<any>;
31
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
37
32
  }
38
33
 
39
34
  interface FileSystemCacheOptions {
@@ -45,7 +40,7 @@ export class FileSystemCache implements Cache {
45
40
  constructor(options?: FileSystemCacheOptions);
46
41
  get(key: string): Promise<any>;
47
42
  remove(key: string): Promise<void>;
48
- set(value: any): Promise<any>;
43
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
49
44
  }
50
45
 
51
46
  type FetchBuilder = (cache: Cache) => FetchCache;
@@ -61,9 +56,8 @@ export const fetchBuilder: FetchCache;
61
56
  ````
62
57
 
63
58
  ### Additional Details
64
- * Last updated: Sat, 23 Sep 2023 20:38:33 GMT
59
+ * Last updated: Wed, 18 Oct 2023 05:47:08 GMT
65
60
  * Dependencies: [@types/node-fetch](https://npmjs.com/package/@types/node-fetch)
66
- * Global values: none
67
61
 
68
62
  # Credits
69
63
  These definitions were written by [Yusuke Fujiki](https://github.com/fujikky).
@@ -1,8 +1,3 @@
1
- // Type definitions for node-fetch-cache 3.0
2
- // Project: https://github.com/mistval/node-fetch-cache#readme
3
- // Definitions by: Yusuke Fujiki <https://github.com/fujikky>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
-
6
1
  import fetch, { Response } from "node-fetch";
7
2
 
8
3
  declare class NFCResponse extends Response {
@@ -12,7 +7,7 @@ declare class NFCResponse extends Response {
12
7
  interface Cache {
13
8
  get(key: string): Promise<any>;
14
9
  remove(key: string): Promise<void>;
15
- set(value: any): Promise<any>;
10
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
16
11
  }
17
12
 
18
13
  interface MemoryCacheOptions {
@@ -23,7 +18,7 @@ export class MemoryCache implements Cache {
23
18
  constructor(options?: MemoryCacheOptions);
24
19
  get(key: string): Promise<any>;
25
20
  remove(key: string): Promise<void>;
26
- set(value: any): Promise<any>;
21
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
27
22
  }
28
23
 
29
24
  interface FileSystemCacheOptions {
@@ -35,7 +30,7 @@ export class FileSystemCache implements Cache {
35
30
  constructor(options?: FileSystemCacheOptions);
36
31
  get(key: string): Promise<any>;
37
32
  remove(key: string): Promise<void>;
38
- set(value: any): Promise<any>;
33
+ set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
39
34
  }
40
35
 
41
36
  type FetchBuilder = (cache: Cache) => FetchCache;
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@types/node-fetch-cache",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
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",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "Yusuke Fujiki",
10
- "url": "https://github.com/fujikky",
11
- "githubUsername": "fujikky"
10
+ "githubUsername": "fujikky",
11
+ "url": "https://github.com/fujikky"
12
12
  }
13
13
  ],
14
14
  "main": "",
@@ -22,6 +22,6 @@
22
22
  "dependencies": {
23
23
  "@types/node-fetch": "*"
24
24
  },
25
- "typesPublisherContentHash": "aa300edd891bce3230b40e63b13d52918fd9f0eacb72a2e35d6665184ca926d3",
25
+ "typesPublisherContentHash": "c2adaa9c067df7a4414636282c54e69c180ed73dbfd1bef7e1844e06ee7edac9",
26
26
  "typeScriptVersion": "4.5"
27
27
  }