@graphql-tools/url-loader 7.10.0 → 7.11.0-alpha-6c480b2d.0
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.
- package/cjs/addCancelToResponseStream.js +12 -0
- package/cjs/defaultAsyncFetch.js +8 -0
- package/cjs/defaultSyncFetch.js +15 -0
- package/cjs/event-stream/handleEventStreamResponse.js +18 -0
- package/cjs/event-stream/handleReadable.js +31 -0
- package/cjs/event-stream/handleReadableStream.js +131 -0
- package/cjs/handleMultipartMixedResponse.js +52 -0
- package/{index.js → cjs/index.js} +81 -358
- package/cjs/package.json +1 -0
- package/cjs/utils.js +28 -0
- package/esm/addCancelToResponseStream.js +8 -0
- package/esm/defaultAsyncFetch.js +4 -0
- package/esm/defaultSyncFetch.js +10 -0
- package/esm/event-stream/handleEventStreamResponse.js +14 -0
- package/esm/event-stream/handleReadable.js +27 -0
- package/esm/event-stream/handleReadableStream.js +127 -0
- package/esm/handleMultipartMixedResponse.js +48 -0
- package/{index.mjs → esm/index.js} +12 -270
- package/esm/utils.js +22 -0
- package/package.json +35 -14
- package/{addCancelToResponseStream.d.ts → typings/addCancelToResponseStream.d.ts} +0 -0
- package/{defaultAsyncFetch.d.ts → typings/defaultAsyncFetch.d.ts} +0 -0
- package/{defaultSyncFetch.d.ts → typings/defaultSyncFetch.d.ts} +0 -0
- package/{event-stream → typings/event-stream}/handleEventStreamResponse.d.ts +0 -0
- package/{event-stream → typings/event-stream}/handleReadable.d.ts +0 -0
- package/{event-stream → typings/event-stream}/handleReadableStream.d.ts +0 -0
- package/{handleMultipartMixedResponse.d.ts → typings/handleMultipartMixedResponse.d.ts} +0 -0
- package/{index.d.ts → typings/index.d.ts} +2 -2
- /package/{utils.d.ts → typings/utils.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/url-loader",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.11.0-alpha-6c480b2d.0",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/delegate": "8.
|
|
11
|
-
"@graphql-tools/utils": "8.
|
|
12
|
-
"@graphql-tools/wrap": "8.
|
|
10
|
+
"@graphql-tools/delegate": "8.8.0-alpha-6c480b2d.0",
|
|
11
|
+
"@graphql-tools/utils": "8.8.0-alpha-6c480b2d.0",
|
|
12
|
+
"@graphql-tools/wrap": "8.5.0-alpha-6c480b2d.0",
|
|
13
13
|
"@n1ru4l/graphql-live-query": "^0.9.0",
|
|
14
14
|
"@types/ws": "^8.0.0",
|
|
15
15
|
"cross-undici-fetch": "^0.4.0",
|
|
16
|
-
"dset": "^3.1.
|
|
16
|
+
"dset": "^3.1.2",
|
|
17
17
|
"extract-files": "^11.0.0",
|
|
18
18
|
"graphql-ws": "^5.4.1",
|
|
19
19
|
"isomorphic-ws": "^4.0.1",
|
|
@@ -30,21 +30,42 @@
|
|
|
30
30
|
},
|
|
31
31
|
"author": "Dotan Simha <dotansimha@gmail.com>",
|
|
32
32
|
"license": "MIT",
|
|
33
|
-
"main": "index.js",
|
|
34
|
-
"module": "index.
|
|
35
|
-
"typings": "index.d.ts",
|
|
33
|
+
"main": "cjs/index.js",
|
|
34
|
+
"module": "esm/index.js",
|
|
35
|
+
"typings": "typings/index.d.ts",
|
|
36
36
|
"typescript": {
|
|
37
|
-
"definition": "index.d.ts"
|
|
37
|
+
"definition": "typings/index.d.ts"
|
|
38
38
|
},
|
|
39
|
+
"type": "module",
|
|
39
40
|
"exports": {
|
|
40
41
|
".": {
|
|
41
|
-
"require":
|
|
42
|
-
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./typings/index.d.ts",
|
|
44
|
+
"default": "./cjs/index.js"
|
|
45
|
+
},
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./typings/index.d.ts",
|
|
48
|
+
"default": "./esm/index.js"
|
|
49
|
+
},
|
|
50
|
+
"default": {
|
|
51
|
+
"types": "./typings/index.d.ts",
|
|
52
|
+
"default": "./esm/index.js"
|
|
53
|
+
}
|
|
43
54
|
},
|
|
44
55
|
"./*": {
|
|
45
|
-
"require":
|
|
46
|
-
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./typings/*.d.ts",
|
|
58
|
+
"default": "./cjs/*.js"
|
|
59
|
+
},
|
|
60
|
+
"import": {
|
|
61
|
+
"types": "./typings/*.d.ts",
|
|
62
|
+
"default": "./esm/*.js"
|
|
63
|
+
},
|
|
64
|
+
"default": {
|
|
65
|
+
"types": "./typings/*.d.ts",
|
|
66
|
+
"default": "./esm/*.js"
|
|
67
|
+
}
|
|
47
68
|
},
|
|
48
69
|
"./package.json": "./package.json"
|
|
49
70
|
}
|
|
50
|
-
}
|
|
71
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,8 +4,8 @@ import { IntrospectionOptions } from 'graphql';
|
|
|
4
4
|
import { AsyncExecutor, Executor, SyncExecutor, Source, Loader, BaseLoaderOptions } from '@graphql-tools/utils';
|
|
5
5
|
import { ClientOptions } from 'graphql-ws';
|
|
6
6
|
import WebSocket from 'isomorphic-ws';
|
|
7
|
-
import { AsyncFetchFn } from './defaultAsyncFetch';
|
|
8
|
-
import { SyncFetchFn } from './defaultSyncFetch';
|
|
7
|
+
import { AsyncFetchFn } from './defaultAsyncFetch.js';
|
|
8
|
+
import { SyncFetchFn } from './defaultSyncFetch.js';
|
|
9
9
|
export declare type FetchFn = AsyncFetchFn | SyncFetchFn;
|
|
10
10
|
export declare type AsyncImportFn = (moduleName: string) => PromiseLike<any>;
|
|
11
11
|
export declare type SyncImportFn = (moduleName: string) => any;
|
|
File without changes
|