quicktype-graphql-input 23.0.157 → 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/GraphQLSchema.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -4
- package/package.json +4 -6
package/dist/GraphQLSchema.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* tslint:disable:strict-boolean-expressions */
|
|
3
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
3
|
if (k2 === undefined) k2 = k;
|
|
5
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -34,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
33
|
};
|
|
35
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
35
|
exports.GraphQLInput = void 0;
|
|
37
|
-
const graphql = __importStar(require("graphql/language"));
|
|
38
36
|
const collection_utils_1 = require("collection-utils");
|
|
37
|
+
const graphql = __importStar(require("graphql/language"));
|
|
39
38
|
const quicktype_core_1 = require("quicktype-core");
|
|
40
39
|
const GraphQLSchema_1 = require("./GraphQLSchema");
|
|
41
40
|
function getField(t, name) {
|
|
@@ -191,7 +190,7 @@ class GQLQuery {
|
|
|
191
190
|
if (!gqlType.name) {
|
|
192
191
|
return (0, quicktype_core_1.panic)("Object, interface, or union type doesn't have a name.");
|
|
193
192
|
}
|
|
194
|
-
const nameOrOverride = overrideName
|
|
193
|
+
const nameOrOverride = overrideName !== null && overrideName !== void 0 ? overrideName : gqlType.name;
|
|
195
194
|
const properties = new Map();
|
|
196
195
|
let selections = expandSelectionSet(selectionSet, gqlType, false);
|
|
197
196
|
for (;;) {
|
|
@@ -401,7 +400,7 @@ class GraphQLInput {
|
|
|
401
400
|
}
|
|
402
401
|
addTypes(ctx, typeBuilder) {
|
|
403
402
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
-
|
|
403
|
+
this.addTypesSync(ctx, typeBuilder);
|
|
405
404
|
});
|
|
406
405
|
}
|
|
407
406
|
addTypesSync(_ctx, typeBuilder) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quicktype-graphql-input",
|
|
3
|
-
"version": "23.0.
|
|
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",
|
|
@@ -8,19 +8,17 @@
|
|
|
8
8
|
"repository": "https://github.com/quicktype/quicktype",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"clean": "rm -rf dist node_modules *~",
|
|
11
|
-
"build": "tsc"
|
|
12
|
-
"tslint": "tslint --project ."
|
|
11
|
+
"build": "tsc"
|
|
13
12
|
},
|
|
14
13
|
"dependencies": {
|
|
15
|
-
"quicktype-core": "23.0.
|
|
14
|
+
"quicktype-core": "23.0.159",
|
|
16
15
|
"collection-utils": "^1.0.1",
|
|
17
16
|
"graphql": "^0.11.7"
|
|
18
17
|
},
|
|
19
18
|
"devDependencies": {
|
|
20
19
|
"@types/node": "18.19.31",
|
|
21
20
|
"@types/graphql": "^0.11.7",
|
|
22
|
-
"typescript": "4.9.5"
|
|
23
|
-
"tslint": "^6.1.3"
|
|
21
|
+
"typescript": "4.9.5"
|
|
24
22
|
},
|
|
25
23
|
"files": [
|
|
26
24
|
"dist"
|