@graphql-box/worker-client 5.4.4 → 5.4.5
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
-----------------------------
|
|
2
2
|
Rollup File Analysis
|
|
3
3
|
-----------------------------
|
|
4
|
-
bundle size: 16.
|
|
4
|
+
bundle size: 16.126 KB
|
|
5
5
|
original size: 16.785 KB
|
|
6
|
-
code reduction:
|
|
6
|
+
code reduction: 3.93 %
|
|
7
7
|
module count: 8
|
|
8
8
|
|
|
9
9
|
█████████████████████████████░░░░░░░░░░░░░░░░░░░░░
|
|
10
10
|
file: /src/main.ts
|
|
11
|
-
bundle space: 59.
|
|
12
|
-
rendered size: 9.
|
|
11
|
+
bundle space: 59.82 %
|
|
12
|
+
rendered size: 9.647 KB
|
|
13
13
|
original size: 8.758 KB
|
|
14
14
|
code reduction: 0 %
|
|
15
15
|
dependents: 1
|
|
@@ -17,17 +17,17 @@ dependents: 1
|
|
|
17
17
|
|
|
18
18
|
████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
19
19
|
file: /src/registerWorker.ts
|
|
20
|
-
bundle space: 17.
|
|
21
|
-
rendered size: 2.
|
|
20
|
+
bundle space: 17.12 %
|
|
21
|
+
rendered size: 2.76 KB
|
|
22
22
|
original size: 3.638 KB
|
|
23
|
-
code reduction:
|
|
23
|
+
code reduction: 24.13 %
|
|
24
24
|
dependents: 1
|
|
25
25
|
- /src/index.ts
|
|
26
26
|
|
|
27
27
|
██████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
28
28
|
file: /src/debug/logRequest.ts
|
|
29
|
-
bundle space: 12.
|
|
30
|
-
rendered size: 2.
|
|
29
|
+
bundle space: 12.64 %
|
|
30
|
+
rendered size: 2.038 KB
|
|
31
31
|
original size: 2.006 KB
|
|
32
32
|
code reduction: 0 %
|
|
33
33
|
dependents: 1
|
|
@@ -35,16 +35,16 @@ dependents: 1
|
|
|
35
35
|
|
|
36
36
|
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
37
37
|
file: /src/debug/logSubscription.ts
|
|
38
|
-
bundle space: 7.
|
|
39
|
-
rendered size: 1.
|
|
38
|
+
bundle space: 7.99 %
|
|
39
|
+
rendered size: 1.289 KB
|
|
40
40
|
original size: 1.516 KB
|
|
41
|
-
code reduction: 14.
|
|
41
|
+
code reduction: 14.97 %
|
|
42
42
|
dependents: 1
|
|
43
43
|
- /src/main.ts
|
|
44
44
|
|
|
45
45
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
46
46
|
file: /src/helpers/operationNameRegex.ts
|
|
47
|
-
bundle space:
|
|
47
|
+
bundle space: 1.01 %
|
|
48
48
|
rendered size: 163 Bytes
|
|
49
49
|
original size: 177 Bytes
|
|
50
50
|
code reduction: 7.91 %
|
|
@@ -54,7 +54,7 @@ dependents: 2
|
|
|
54
54
|
|
|
55
55
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
56
56
|
file: /src/constants.ts
|
|
57
|
-
bundle space: 0.
|
|
57
|
+
bundle space: 0.91 %
|
|
58
58
|
rendered size: 147 Bytes
|
|
59
59
|
original size: 183 Bytes
|
|
60
60
|
code reduction: 19.67 %
|
|
@@ -66,7 +66,7 @@ dependents: 4
|
|
|
66
66
|
|
|
67
67
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
68
68
|
file: /src/helpers/isGraphqlBoxMessageRequestPayload.ts
|
|
69
|
-
bundle space: 0.
|
|
69
|
+
bundle space: 0.51 %
|
|
70
70
|
rendered size: 82 Bytes
|
|
71
71
|
original size: 383 Bytes
|
|
72
72
|
code reduction: 78.59 %
|
|
@@ -13,10 +13,10 @@ export declare class WorkerClient {
|
|
|
13
13
|
private _worker;
|
|
14
14
|
constructor(options: UserOptions);
|
|
15
15
|
get cache(): CoreWorker;
|
|
16
|
-
mutate(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
17
|
-
query(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
18
|
-
request(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
19
|
-
subscribe(request: string, options?: RequestOptions): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
16
|
+
mutate(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
17
|
+
query(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
18
|
+
request(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
19
|
+
subscribe(request: string, options?: RequestOptions): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
20
20
|
set worker(worker: Worker);
|
|
21
21
|
private _addEventListener;
|
|
22
22
|
private _getRequestContext;
|
package/dist/types/esm/main.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export declare class WorkerClient {
|
|
|
13
13
|
private _worker;
|
|
14
14
|
constructor(options: UserOptions);
|
|
15
15
|
get cache(): CoreWorker;
|
|
16
|
-
mutate(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
17
|
-
query(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
18
|
-
request(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
19
|
-
subscribe(request: string, options?: RequestOptions): Promise<PartialRequestResult | AsyncIterableIterator<PartialRequestResult | undefined>>;
|
|
16
|
+
mutate(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
17
|
+
query(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
18
|
+
request(request: string, options?: RequestOptions, context?: PartialRequestContext): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
19
|
+
subscribe(request: string, options?: RequestOptions): Promise<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | AsyncIterableIterator<PartialRequestResult<import("@graphql-box/core").PlainData<unknown> | null> | undefined>>;
|
|
20
20
|
set worker(worker: Worker);
|
|
21
21
|
private _addEventListener;
|
|
22
22
|
private _getRequestContext;
|