json-machete 0.8.8-alpha-a35d18e46.0 → 0.8.8
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/index.js +3 -2
- package/index.mjs +2 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -4,11 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
-
const utils = require('@graphql-
|
|
7
|
+
const utils = require('@graphql-tools/utils');
|
|
8
8
|
const JsonPointer = _interopDefault(require('json-pointer'));
|
|
9
9
|
const crossHelpers = require('@graphql-mesh/cross-helpers');
|
|
10
10
|
const urlJoin = _interopDefault(require('url-join'));
|
|
11
11
|
const crossUndiciFetch = require('cross-undici-fetch');
|
|
12
|
+
const utils$1 = require('@graphql-mesh/utils');
|
|
12
13
|
const util = require('util');
|
|
13
14
|
const toJsonSchema = _interopDefault(require('to-json-schema'));
|
|
14
15
|
|
|
@@ -291,7 +292,7 @@ async function dereferenceObject(obj, { cwd = process.cwd(), externalFileCache =
|
|
|
291
292
|
const newCwd = getCwd(externalFilePath);
|
|
292
293
|
let externalFile = externalFileCache.get(externalFilePath);
|
|
293
294
|
if (!externalFile) {
|
|
294
|
-
externalFile = await utils.readFileOrUrl(externalFilePath, {
|
|
295
|
+
externalFile = await utils$1.readFileOrUrl(externalFilePath, {
|
|
295
296
|
fetch,
|
|
296
297
|
headers,
|
|
297
298
|
cwd,
|
package/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AggregateError } from '@graphql-tools/utils';
|
|
2
2
|
import JsonPointer from 'json-pointer';
|
|
3
3
|
import { path } from '@graphql-mesh/cross-helpers';
|
|
4
4
|
import urlJoin from 'url-join';
|
|
5
5
|
import { fetch } from 'cross-undici-fetch';
|
|
6
|
+
import { readFileOrUrl } from '@graphql-mesh/utils';
|
|
6
7
|
import { inspect } from 'util';
|
|
7
8
|
import toJsonSchema from 'to-json-schema';
|
|
8
9
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json-machete",
|
|
3
|
-
"version": "0.8.8
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "0.1.
|
|
7
|
-
"@graphql-mesh/utils": "0.
|
|
6
|
+
"@graphql-mesh/cross-helpers": "0.1.5",
|
|
7
|
+
"@graphql-mesh/utils": "0.35.0",
|
|
8
8
|
"@graphql-tools/utils": "8.6.12",
|
|
9
9
|
"@json-schema-tools/meta-schema": "1.6.19",
|
|
10
10
|
"cross-undici-fetch": "^0.4.0",
|