json-machete 0.7.1 → 0.7.4-alpha-2c10d9dec.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.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/index.mjs +2 -2
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -9,7 +9,7 @@ const utils = require('@graphql-mesh/utils');
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-tools/utils');
12
+ const util = require('util');
13
13
  const toJsonSchema = _interopDefault(require('to-json-schema'));
14
14
 
15
15
  (function (OnCircularReference) {
@@ -506,7 +506,7 @@ function deduplicateJSONSchema(schema, seenMap = new Map()) {
506
506
  if (titleReserved) {
507
507
  schema.title = undefined;
508
508
  }
509
- const stringified = utils$1.inspect(schema);
509
+ const stringified = util.inspect(schema, undefined, 3);
510
510
  if (titleReserved) {
511
511
  schema.title = titleReserved;
512
512
  }
package/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { AggregateError, readFileOrUrl } from '@graphql-mesh/utils';
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 { inspect } from '@graphql-tools/utils';
6
+ import { inspect } from 'util';
7
7
  import toJsonSchema from 'to-json-schema';
8
8
 
9
9
  var OnCircularReference;
@@ -501,7 +501,7 @@ function deduplicateJSONSchema(schema, seenMap = new Map()) {
501
501
  if (titleReserved) {
502
502
  schema.title = undefined;
503
503
  }
504
- const stringified = inspect(schema);
504
+ const stringified = inspect(schema, undefined, 3);
505
505
  if (titleReserved) {
506
506
  schema.title = titleReserved;
507
507
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "json-machete",
3
- "version": "0.7.1",
3
+ "version": "0.7.4-alpha-2c10d9dec.0",
4
4
  "sideEffects": false,
5
5
  "dependencies": {
6
6
  "@graphql-mesh/cross-helpers": "0.1.0",
7
- "@graphql-mesh/utils": "0.32.1",
8
- "@graphql-tools/utils": "8.6.4",
7
+ "@graphql-mesh/utils": "0.33.0-alpha-2c10d9dec.0",
8
+ "@graphql-tools/utils": "8.6.5",
9
9
  "@json-schema-tools/meta-schema": "1.6.19",
10
10
  "cross-undici-fetch": "0.1.27",
11
11
  "json-ptr": "3.1.0",