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

graphql-schema-modular

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-schema-modular - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

1

dist/index.d.ts

@@ -23,2 +23,3 @@ /**

export declare function Subscription(name: String): (target: any, methodName: any, descriptor: any) => void;
export declare function Type(name: String): (target: any, methodName: any, descriptor: any) => void;
export interface SchemaResult {

@@ -25,0 +26,0 @@ typeDefs: any;

21

dist/index.js

@@ -55,2 +55,5 @@ "use strict";

break;
case 'type':
this.resolver[item.name] = item.resolver;
break;
}

@@ -104,2 +107,14 @@ }

exports.Subscription = Subscription;
function Type(name) {
return function (target, methodName, descriptor) {
var resolver = descriptor.value;
descriptor.enumerable = true;
descriptor.value = {
type: 'type',
name: name,
resolver: resolver
};
};
}
exports.Type = Type;
var TYPE_PREFIX = "\ntype Query {\n test: String\n}\ntype Mutation {\n test: String\n}\ntype Subscription {\n test: String\n}\n";

@@ -124,7 +139,3 @@ var TYPE_SUFFIX = "\nschema {\n\tquery: Query\n\tmutation: Mutation\n\tsubscription: Subscription\n}\n";

}
var typeDefs = [
TYPE_PREFIX
].concat(types, [
TYPE_SUFFIX
]);
var typeDefs = [TYPE_PREFIX].concat(types, [TYPE_SUFFIX]);
resolve({

@@ -131,0 +142,0 @@ typeDefs: typeDefs,

{
"name": "graphql-schema-modular",
"version": "0.0.5",
"version": "0.0.6",
"description": "Make organizing graphql schema modules easier",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

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