@apollo/client 3.8.0 → 3.8.1
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/apollo-client.cjs +20 -21
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +1 -1
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/link/http/http.cjs +25 -6
- package/link/http/http.cjs.map +1 -1
- package/link/http/http.cjs.native.js +25 -6
- package/link/http/responseIterator.d.ts.map +1 -1
- package/link/http/responseIterator.js +20 -1
- package/link/http/responseIterator.js.map +1 -1
- package/package.json +12 -12
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/utilities/index.d.ts +0 -1
- package/utilities/index.d.ts.map +1 -1
- package/utilities/index.js +0 -1
- package/utilities/index.js.map +1 -1
- package/utilities/utilities.cjs +0 -26
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +0 -26
- package/version.js +1 -1
- package/utilities/common/responseIterator.d.ts +0 -10
- package/utilities/common/responseIterator.d.ts.map +0 -1
- package/utilities/common/responseIterator.js +0 -21
- package/utilities/common/responseIterator.js.map +0 -1
|
@@ -1505,26 +1505,6 @@ function mergeOptions(defaults, options) {
|
|
|
1505
1505
|
});
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
|
-
function isNodeResponse(value) {
|
|
1509
|
-
return !!value.body;
|
|
1510
|
-
}
|
|
1511
|
-
function isReadableStream(value) {
|
|
1512
|
-
return !!value.getReader;
|
|
1513
|
-
}
|
|
1514
|
-
function isAsyncIterableIterator(value) {
|
|
1515
|
-
return !!(canUseAsyncIteratorSymbol &&
|
|
1516
|
-
value[Symbol.asyncIterator]);
|
|
1517
|
-
}
|
|
1518
|
-
function isStreamableBlob(value) {
|
|
1519
|
-
return !!value.stream;
|
|
1520
|
-
}
|
|
1521
|
-
function isBlob(value) {
|
|
1522
|
-
return !!value.arrayBuffer;
|
|
1523
|
-
}
|
|
1524
|
-
function isNodeReadableStream(value) {
|
|
1525
|
-
return !!value.pipe;
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
1508
|
function omitDeep(value, key) {
|
|
1529
1509
|
return __omitDeep(value, key);
|
|
1530
1510
|
}
|
|
@@ -1614,8 +1594,6 @@ exports.hasClientExports = hasClientExports;
|
|
|
1614
1594
|
exports.hasDirectives = hasDirectives;
|
|
1615
1595
|
exports.isApolloPayloadResult = isApolloPayloadResult;
|
|
1616
1596
|
exports.isArray = isArray;
|
|
1617
|
-
exports.isAsyncIterableIterator = isAsyncIterableIterator;
|
|
1618
|
-
exports.isBlob = isBlob;
|
|
1619
1597
|
exports.isDocumentNode = isDocumentNode;
|
|
1620
1598
|
exports.isExecutionPatchIncrementalResult = isExecutionPatchIncrementalResult;
|
|
1621
1599
|
exports.isExecutionPatchInitialResult = isExecutionPatchInitialResult;
|
|
@@ -1623,16 +1601,12 @@ exports.isExecutionPatchResult = isExecutionPatchResult;
|
|
|
1623
1601
|
exports.isField = isField;
|
|
1624
1602
|
exports.isInlineFragment = isInlineFragment;
|
|
1625
1603
|
exports.isMutationOperation = isMutationOperation;
|
|
1626
|
-
exports.isNodeReadableStream = isNodeReadableStream;
|
|
1627
|
-
exports.isNodeResponse = isNodeResponse;
|
|
1628
1604
|
exports.isNonEmptyArray = isNonEmptyArray;
|
|
1629
1605
|
exports.isNonNullObject = isNonNullObject;
|
|
1630
1606
|
exports.isPlainObject = isPlainObject;
|
|
1631
1607
|
exports.isQueryOperation = isQueryOperation;
|
|
1632
|
-
exports.isReadableStream = isReadableStream;
|
|
1633
1608
|
exports.isReference = isReference;
|
|
1634
1609
|
exports.isStatefulPromise = isStatefulPromise;
|
|
1635
|
-
exports.isStreamableBlob = isStreamableBlob;
|
|
1636
1610
|
exports.isSubscriptionOperation = isSubscriptionOperation;
|
|
1637
1611
|
exports.iterateObserversSafely = iterateObserversSafely;
|
|
1638
1612
|
exports.makeReference = makeReference;
|
package/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var version = '3.8.
|
|
1
|
+
export var version = '3.8.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { Response as NodeResponse } from "node-fetch";
|
|
3
|
-
import type { Readable as NodeReadableStream } from "stream";
|
|
4
|
-
export declare function isNodeResponse(value: any): value is NodeResponse;
|
|
5
|
-
export declare function isReadableStream(value: any): value is ReadableStream<any>;
|
|
6
|
-
export declare function isAsyncIterableIterator(value: any): value is AsyncIterableIterator<any>;
|
|
7
|
-
export declare function isStreamableBlob(value: any): value is Blob;
|
|
8
|
-
export declare function isBlob(value: any): value is Blob;
|
|
9
|
-
export declare function isNodeReadableStream(value: any): value is NodeReadableStream;
|
|
10
|
-
//# sourceMappingURL=responseIterator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responseIterator.d.ts","sourceRoot":"","sources":["../../../src/utilities/common/responseIterator.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAG7D,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,YAAY,CAEhE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,cAAc,CAAC,GAAG,CAAC,CAEzE;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,GAAG,GACT,KAAK,IAAI,qBAAqB,CAAC,GAAG,CAAC,CAKrC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,IAAI,CAE1D;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,IAAI,CAEhD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,kBAAkB,CAE5E"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { canUseAsyncIteratorSymbol } from "./canUse.js";
|
|
2
|
-
export function isNodeResponse(value) {
|
|
3
|
-
return !!value.body;
|
|
4
|
-
}
|
|
5
|
-
export function isReadableStream(value) {
|
|
6
|
-
return !!value.getReader;
|
|
7
|
-
}
|
|
8
|
-
export function isAsyncIterableIterator(value) {
|
|
9
|
-
return !!(canUseAsyncIteratorSymbol &&
|
|
10
|
-
value[Symbol.asyncIterator]);
|
|
11
|
-
}
|
|
12
|
-
export function isStreamableBlob(value) {
|
|
13
|
-
return !!value.stream;
|
|
14
|
-
}
|
|
15
|
-
export function isBlob(value) {
|
|
16
|
-
return !!value.arrayBuffer;
|
|
17
|
-
}
|
|
18
|
-
export function isNodeReadableStream(value) {
|
|
19
|
-
return !!value.pipe;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=responseIterator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responseIterator.js","sourceRoot":"","sources":["../../../src/utilities/common/responseIterator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,UAAU,cAAc,CAAC,KAAU;IACvC,OAAO,CAAC,CAAE,KAAsB,CAAC,IAAI,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAU;IACzC,OAAO,CAAC,CAAE,KAA6B,CAAC,SAAS,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,KAAU;IAEV,OAAO,CAAC,CAAC,CACP,yBAAyB;QACxB,KAAoC,CAAC,MAAM,CAAC,aAAa,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAU;IACzC,OAAO,CAAC,CAAE,KAAc,CAAC,MAAM,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,KAAU;IAC/B,OAAO,CAAC,CAAE,KAAc,CAAC,WAAW,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,KAAU;IAC7C,OAAO,CAAC,CAAE,KAA4B,CAAC,IAAI,CAAC;AAC9C,CAAC","sourcesContent":["import type { Response as NodeResponse } from \"node-fetch\";\nimport type { Readable as NodeReadableStream } from \"stream\";\nimport { canUseAsyncIteratorSymbol } from \"./canUse.js\";\n\nexport function isNodeResponse(value: any): value is NodeResponse {\n return !!(value as NodeResponse).body;\n}\n\nexport function isReadableStream(value: any): value is ReadableStream<any> {\n return !!(value as ReadableStream<any>).getReader;\n}\n\nexport function isAsyncIterableIterator(\n value: any\n): value is AsyncIterableIterator<any> {\n return !!(\n canUseAsyncIteratorSymbol &&\n (value as AsyncIterableIterator<any>)[Symbol.asyncIterator]\n );\n}\n\nexport function isStreamableBlob(value: any): value is Blob {\n return !!(value as Blob).stream;\n}\n\nexport function isBlob(value: any): value is Blob {\n return !!(value as Blob).arrayBuffer;\n}\n\nexport function isNodeReadableStream(value: any): value is NodeReadableStream {\n return !!(value as NodeReadableStream).pipe;\n}\n"]}
|