@graphql-tools/wrap 9.3.4 → 9.3.5-alpha-20230206125053-3ed8e812

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/cjs/introspect.js CHANGED
@@ -20,8 +20,12 @@ function getSchemaFromIntrospection(introspectionResult, options) {
20
20
  }
21
21
  throw (0, utils_1.createGraphQLError)(`Could not obtain introspection result, received the following as response; \n ${(0, utils_1.inspect)(introspectionResult)}`);
22
22
  }
23
+ let hasWarned = false;
23
24
  exports.introspectSchema = function introspectSchema(...args) {
24
- console.warn(`\`introspectSchema\` is deprecated, and will be removed in the next major. Please use \`schemaFromExecutor\` instead.`);
25
+ if (!hasWarned) {
26
+ hasWarned = true;
27
+ console.warn(`\`introspectSchema\` is deprecated, and will be removed in the next major. Please use \`schemaFromExecutor\` instead.`);
28
+ }
25
29
  return schemaFromExecutor(...args);
26
30
  };
27
31
  function schemaFromExecutor(executor, context, options) {
package/esm/introspect.js CHANGED
@@ -17,8 +17,12 @@ function getSchemaFromIntrospection(introspectionResult, options) {
17
17
  }
18
18
  throw createGraphQLError(`Could not obtain introspection result, received the following as response; \n ${inspect(introspectionResult)}`);
19
19
  }
20
+ let hasWarned = false;
20
21
  export const introspectSchema = function introspectSchema(...args) {
21
- console.warn(`\`introspectSchema\` is deprecated, and will be removed in the next major. Please use \`schemaFromExecutor\` instead.`);
22
+ if (!hasWarned) {
23
+ hasWarned = true;
24
+ console.warn(`\`introspectSchema\` is deprecated, and will be removed in the next major. Please use \`schemaFromExecutor\` instead.`);
25
+ }
22
26
  return schemaFromExecutor(...args);
23
27
  };
24
28
  export function schemaFromExecutor(executor, context, options) {
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-tools/wrap",
3
- "version": "9.3.4",
3
+ "version": "9.3.5-alpha-20230206125053-3ed8e812",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/delegate": "9.0.25",
11
- "@graphql-tools/schema": "9.0.15",
12
- "@graphql-tools/utils": "9.2.0",
10
+ "@graphql-tools/delegate": "9.0.26-alpha-20230206125053-3ed8e812",
11
+ "@graphql-tools/schema": "9.0.16-alpha-20230206125053-3ed8e812",
12
+ "@graphql-tools/utils": "9.2.1-alpha-20230206125053-3ed8e812",
13
13
  "tslib": "^2.4.0",
14
14
  "value-or-promise": "1.0.12"
15
15
  },