graphql-js-tree
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,2 @@ | ||
import { Kind } from 'graphql'; | ||
import { TypeDefinitionDisplayStrings, TypeSystemDefinitionDisplayStrings } from "./DisplayMap"; | ||
@@ -9,4 +10,5 @@ import { Helpers, Instances, ScalarTypes, Type, TypeDefinition, TypeExtension, TypeSystemDefinition, Value, ValueDefinition } from "./Spec"; | ||
export type AllTypes = ScalarTypes | Value | ValueDefinition | TypeDefinition | TypeDefinitionDisplayStrings | TypeSystemDefinition | TypeSystemDefinitionDisplayStrings | TypeExtension | Instances | Helpers | Type; | ||
export declare const kindAsAllTypes: (v: Kind) => AllTypes; | ||
export interface GraphQLNodeParams { | ||
type: AllTypes; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BuiltInDirectives = void 0; | ||
exports.kindAsAllTypes = exports.BuiltInDirectives = void 0; | ||
var BuiltInDirectives; | ||
@@ -10,1 +10,3 @@ (function (BuiltInDirectives) { | ||
})(BuiltInDirectives = exports.BuiltInDirectives || (exports.BuiltInDirectives = {})); | ||
const kindAsAllTypes = (v) => v; | ||
exports.kindAsAllTypes = kindAsAllTypes; |
@@ -53,6 +53,6 @@ "use strict"; | ||
}, data: { | ||
type: d.kind, | ||
type: (0, Models_1.kindAsAllTypes)(d.kind), | ||
} }, ('description' in d && ((_a = d.description) === null || _a === void 0 ? void 0 : _a.value) ? { description: d.description.value } : {})), { interfaces, | ||
directives, | ||
args, id: (0, shared_1.generateNodeId)(d.name.value, d.kind, args) }); | ||
args, id: (0, shared_1.generateNodeId)(d.name.value, (0, Models_1.kindAsAllTypes)(d.kind), args) }); | ||
} | ||
@@ -59,0 +59,0 @@ } |
@@ -62,11 +62,11 @@ "use strict"; | ||
data: { | ||
type: value.kind, | ||
type: (0, Models_1.kindAsAllTypes)(value.kind), | ||
}, | ||
type: { | ||
fieldType: { | ||
name: value.kind, | ||
name: (0, Models_1.kindAsAllTypes)(value.kind), | ||
type: Models_1.Options.name, | ||
}, | ||
}, | ||
id: (0, shared_1.generateNodeId)(value.kind, value.kind, args), | ||
id: (0, shared_1.generateNodeId)(value.kind, (0, Models_1.kindAsAllTypes)(value.kind), args), | ||
}, | ||
@@ -84,11 +84,11 @@ ]; | ||
data: { | ||
type: value.kind, | ||
type: (0, Models_1.kindAsAllTypes)(value.kind), | ||
}, | ||
type: { | ||
fieldType: { | ||
name: value.kind, | ||
name: (0, Models_1.kindAsAllTypes)(value.kind), | ||
type: Models_1.Options.name, | ||
}, | ||
}, | ||
id: (0, shared_1.generateNodeId)(value.kind, value.kind, args), | ||
id: (0, shared_1.generateNodeId)(value.kind, (0, Models_1.kindAsAllTypes)(value.kind), args), | ||
}, | ||
@@ -105,3 +105,3 @@ ]; | ||
data: { | ||
type: value.kind, | ||
type: (0, Models_1.kindAsAllTypes)(value.kind), | ||
}, | ||
@@ -114,3 +114,3 @@ type: { | ||
}, | ||
id: (0, shared_1.generateNodeId)(value.value, value.kind, []), | ||
id: (0, shared_1.generateNodeId)(value.value, (0, Models_1.kindAsAllTypes)(value.kind), []), | ||
}, | ||
@@ -134,5 +134,5 @@ ]; | ||
data: { | ||
type: value.kind, | ||
type: (0, Models_1.kindAsAllTypes)(value.kind), | ||
}, | ||
id: (0, shared_1.generateNodeId)(name, value.kind, []), | ||
id: (0, shared_1.generateNodeId)(name, (0, Models_1.kindAsAllTypes)(value.kind), []), | ||
}, | ||
@@ -139,0 +139,0 @@ ]; |
{ | ||
"name": "graphql-js-tree", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"private": false, | ||
@@ -45,3 +45,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"graphql": "^15.4.0" | ||
"graphql": "^16.6.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "config": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67371
1385
+ Addedgraphql@16.9.0(transitive)
- Removedgraphql@15.9.0(transitive)
Updatedgraphql@^16.6.0