@graphql-tools/url-loader 7.13.2-alpha-4e77fdb4.0 → 7.13.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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultSyncFetch = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const sync_fetch_1 = tslib_1.__importDefault(require("sync-fetch"));
5
+ const sync_fetch_1 = tslib_1.__importDefault(require("@ardatan/sync-fetch"));
6
6
  const defaultSyncFetch = (input, init) => {
7
7
  if (typeof input === 'string') {
8
8
  init === null || init === void 0 ? true : delete init.signal;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleAsyncIterable = void 0;
4
4
  /* eslint-disable no-labels */
5
5
  const fetch_1 = require("@whatwg-node/fetch");
6
- const textDecoder = new fetch_1.TextDecoder('handleAsyncIterable');
6
+ const textDecoder = new fetch_1.TextDecoder();
7
7
  async function* handleAsyncIterable(asyncIterable) {
8
8
  outer: for await (const chunk of asyncIterable) {
9
9
  const chunkStr = typeof chunk === 'string' ? chunk : textDecoder.decode(chunk, { stream: true });
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleReadableStream = void 0;
4
4
  const utils_1 = require("@graphql-tools/utils");
5
5
  const fetch_1 = require("@whatwg-node/fetch");
6
- const textDecoder = new fetch_1.TextDecoder('handleReadableStream');
6
+ const textDecoder = new fetch_1.TextDecoder();
7
7
  function handleReadableStream(readableStream) {
8
8
  return (0, utils_1.observableToAsyncIterable)({
9
9
  subscribe: observer => {
@@ -1,4 +1,4 @@
1
- import syncFetchImported from 'sync-fetch';
1
+ import syncFetchImported from '@ardatan/sync-fetch';
2
2
  export const defaultSyncFetch = (input, init) => {
3
3
  if (typeof input === 'string') {
4
4
  init === null || init === void 0 ? true : delete init.signal;
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-labels */
2
2
  import { TextDecoder } from '@whatwg-node/fetch';
3
- const textDecoder = new TextDecoder('handleAsyncIterable');
3
+ const textDecoder = new TextDecoder();
4
4
  export async function* handleAsyncIterable(asyncIterable) {
5
5
  outer: for await (const chunk of asyncIterable) {
6
6
  const chunkStr = typeof chunk === 'string' ? chunk : textDecoder.decode(chunk, { stream: true });
@@ -1,6 +1,6 @@
1
1
  import { observableToAsyncIterable } from '@graphql-tools/utils';
2
2
  import { TextDecoder } from '@whatwg-node/fetch';
3
- const textDecoder = new TextDecoder('handleReadableStream');
3
+ const textDecoder = new TextDecoder();
4
4
  export function handleReadableStream(readableStream) {
5
5
  return observableToAsyncIterable({
6
6
  subscribe: observer => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/url-loader",
3
- "version": "7.13.2-alpha-4e77fdb4.0",
3
+ "version": "7.13.2",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -10,6 +10,7 @@
10
10
  "@graphql-tools/delegate": "8.8.1",
11
11
  "@graphql-tools/utils": "8.9.0",
12
12
  "@graphql-tools/wrap": "8.5.1",
13
+ "@ardatan/sync-fetch": "0.0.1",
13
14
  "@n1ru4l/graphql-live-query": "^0.9.0",
14
15
  "@types/ws": "^8.0.0",
15
16
  "@whatwg-node/fetch": "^0.2.4",
@@ -18,7 +19,6 @@
18
19
  "graphql-ws": "^5.4.1",
19
20
  "isomorphic-ws": "^5.0.0",
20
21
  "meros": "^1.1.4",
21
- "sync-fetch": "^0.4.0",
22
22
  "tslib": "^2.4.0",
23
23
  "value-or-promise": "^1.0.11",
24
24
  "ws": "^8.3.0"