Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-js-tree

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-js-tree - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

lib/Models/Types.d.ts

@@ -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;
}

4

lib/Models/Types.js
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc