@types/node-fetch-cache 3.0.0 → 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.
- node-fetch-cache/LICENSE +0 -0
- node-fetch-cache/README.md +5 -5
- node-fetch-cache/index.d.ts +4 -4
- node-fetch-cache/package.json +3 -3
node-fetch-cache/LICENSE
CHANGED
|
File without changes
|
node-fetch-cache/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree
|
|
|
13
13
|
// Definitions by: Yusuke Fujiki <https://github.com/fujikky>
|
|
14
14
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
15
15
|
|
|
16
|
-
import fetch, { Response } from
|
|
16
|
+
import fetch, { Response } from "node-fetch";
|
|
17
17
|
|
|
18
18
|
declare class NFCResponse extends Response {
|
|
19
19
|
ejectFromCache(): Promise<void>;
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
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:
|
|
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
|
|
node-fetch-cache/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Definitions by: Yusuke Fujiki <https://github.com/fujikky>
|
|
4
4
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
5
|
|
|
6
|
-
import fetch, { Response } from
|
|
6
|
+
import fetch, { Response } from "node-fetch";
|
|
7
7
|
|
|
8
8
|
declare class NFCResponse extends Response {
|
|
9
9
|
ejectFromCache(): Promise<void>;
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
38
|
+
set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
type FetchBuilder = (cache: Cache) => FetchCache;
|
node-fetch-cache/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node-fetch-cache",
|
|
3
|
-
"version": "3.0.
|
|
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": "
|
|
26
|
-
"typeScriptVersion": "4.
|
|
25
|
+
"typesPublisherContentHash": "286b4c981f6e52c7739ee61d4548f198efef0bab286b049f831be2a79addee62",
|
|
26
|
+
"typeScriptVersion": "4.5"
|
|
27
27
|
}
|