quicktype-graphql-input 23.0.158 → 23.0.159

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/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { TypeBuilder, Input, RunContext } from "quicktype-core";
2
- export type GraphQLSourceData = {
1
+ import { type Input, type RunContext, type TypeBuilder } from "quicktype-core";
2
+ export interface GraphQLSourceData {
3
3
  name: string;
4
- schema: any;
5
4
  query: string;
6
- };
5
+ schema: any;
6
+ }
7
7
  export declare class GraphQLInput implements Input<GraphQLSourceData> {
8
8
  readonly kind: string;
9
9
  readonly needIR: boolean;
package/dist/index.js CHANGED
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.GraphQLInput = void 0;
36
- const graphql = __importStar(require("graphql/language"));
37
36
  const collection_utils_1 = require("collection-utils");
37
+ const graphql = __importStar(require("graphql/language"));
38
38
  const quicktype_core_1 = require("quicktype-core");
39
39
  const GraphQLSchema_1 = require("./GraphQLSchema");
40
40
  function getField(t, name) {
@@ -190,7 +190,7 @@ class GQLQuery {
190
190
  if (!gqlType.name) {
191
191
  return (0, quicktype_core_1.panic)("Object, interface, or union type doesn't have a name.");
192
192
  }
193
- const nameOrOverride = overrideName || gqlType.name;
193
+ const nameOrOverride = overrideName !== null && overrideName !== void 0 ? overrideName : gqlType.name;
194
194
  const properties = new Map();
195
195
  let selections = expandSelectionSet(selectionSet, gqlType, false);
196
196
  for (;;) {
@@ -400,7 +400,7 @@ class GraphQLInput {
400
400
  }
401
401
  addTypes(ctx, typeBuilder) {
402
402
  return __awaiter(this, void 0, void 0, function* () {
403
- return this.addTypesSync(ctx, typeBuilder);
403
+ this.addTypesSync(ctx, typeBuilder);
404
404
  });
405
405
  }
406
406
  addTypesSync(_ctx, typeBuilder) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-graphql-input",
3
- "version": "23.0.158",
3
+ "version": "23.0.159",
4
4
  "package": "Package for using GraphQL as an input language to quicktype",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -11,7 +11,7 @@
11
11
  "build": "tsc"
12
12
  },
13
13
  "dependencies": {
14
- "quicktype-core": "23.0.158",
14
+ "quicktype-core": "23.0.159",
15
15
  "collection-utils": "^1.0.1",
16
16
  "graphql": "^0.11.7"
17
17
  },