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.1.4 to 0.1.5

lib/shared/index.d.ts

2

lib/index.d.ts
export * from "./TreeToGraphQL";
export * from "./Parser";
export * from "./Models";
export * from "./shared/getTypeName";
export * from "./shared/index";

@@ -20,2 +20,2 @@ "use strict";

__exportStar(require("./Models"), exports);
__exportStar(require("./shared/getTypeName"), exports);
__exportStar(require("./shared/index"), exports);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArgumentTemplate = void 0;
const getTypeName_1 = require("../../shared/getTypeName");
const shared_1 = require("../../shared");
const TemplateUtils_1 = require("./TemplateUtils");

@@ -17,5 +17,5 @@ class ArgumentTemplate {

}
return `${(0, getTypeName_1.getTypeName)(type.fieldType)}: ${argsString}`;
return `${(0, shared_1.getTypeName)(type.fieldType)}: ${argsString}`;
}
}
exports.ArgumentTemplate = ArgumentTemplate;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DirectiveTemplate = void 0;
const getTypeName_1 = require("../../shared/getTypeName");
const shared_1 = require("../../shared");
const TemplateUtils_1 = require("./TemplateUtils");

@@ -15,5 +15,5 @@ class DirectiveTemplate {

}
return `@${(0, getTypeName_1.getTypeName)(f.type.fieldType)}${argsString}`;
return `@${(0, shared_1.getTypeName)(f.type.fieldType)}${argsString}`;
}
}
exports.DirectiveTemplate = DirectiveTemplate;

@@ -5,3 +5,3 @@ "use strict";

const Models_1 = require("../../Models");
const getTypeName_1 = require("../../shared/getTypeName");
const shared_1 = require("../../shared");
const ArgumentTemplate_1 = require("./ArgumentTemplate");

@@ -22,3 +22,3 @@ const CommentTemplate_1 = require("./CommentTemplate");

TemplateUtils.resolveFieldType = (f) => {
return (0, getTypeName_1.compileType)(f);
return (0, shared_1.compileType)(f);
};

@@ -25,0 +25,0 @@ TemplateUtils.resolveType = (f) => TemplateUtils.resolveFieldType(f.type.fieldType);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnionMemberTemplate = void 0;
const getTypeName_1 = require("../../shared/getTypeName");
const shared_1 = require("../../shared");
class UnionMemberTemplate {
static resolve(f) {
return (0, getTypeName_1.getTypeName)(f.type.fieldType);
return (0, shared_1.getTypeName)(f.type.fieldType);
}
}
exports.UnionMemberTemplate = UnionMemberTemplate;

@@ -5,3 +5,3 @@ "use strict";

const Models_1 = require("../../Models");
const getTypeName_1 = require("../../shared/getTypeName");
const shared_1 = require("../../shared");
const TemplateUtils_1 = require("./TemplateUtils");

@@ -13,3 +13,3 @@ class ValueTemplate {

if (f.data.type === Models_1.Value.EnumValue) {
returnedValue = `${(0, getTypeName_1.getTypeName)(f.type.fieldType)}`;
returnedValue = `${(0, shared_1.getTypeName)(f.type.fieldType)}`;
}

@@ -16,0 +16,0 @@ if (f.data.type === Models_1.Value.StringValue) {

{
"name": "graphql-js-tree",
"version": "0.1.4",
"version": "0.1.5",
"private": false,

@@ -5,0 +5,0 @@ "license": "MIT",

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