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

@graphql-codegen/core

Package Overview
Dependencies
Maintainers
5
Versions
4898
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-codegen/core - npm Package Compare versions

Comparing version 1.0.3-alpha-fb95f3d3.1 to 1.0.3

7

dist/commonjs/codegen.js

@@ -10,9 +10,8 @@ "use strict";

validateDocuments(options.schema, options.documents);
const plugins = Object.keys(options.pluginMap).map(key => options.pluginMap[key]);
const pluginPackages = Object.keys(options.pluginMap).map(key => options.pluginMap[key]);
// merged schema with parts added by plugins
const schema = plugins.reduce((schema, plugin) => {
const schema = pluginPackages.reduce((schema, plugin) => {
return !plugin.addToSchema ? schema : merge_schemas_1.mergeSchemas([schema, plugin.addToSchema]);
}, options.schema);
for (let i = 0; i < plugins.length; i++) {
const plugin = options.plugins[i];
for (const plugin of options.plugins) {
const name = Object.keys(plugin)[0];

@@ -19,0 +18,0 @@ const pluginPackage = options.pluginMap[name];

@@ -8,9 +8,8 @@ import { visit } from 'graphql';

validateDocuments(options.schema, options.documents);
const plugins = Object.keys(options.pluginMap).map(key => options.pluginMap[key]);
const pluginPackages = Object.keys(options.pluginMap).map(key => options.pluginMap[key]);
// merged schema with parts added by plugins
const schema = plugins.reduce((schema, plugin) => {
const schema = pluginPackages.reduce((schema, plugin) => {
return !plugin.addToSchema ? schema : mergeSchemas([schema, plugin.addToSchema]);
}, options.schema);
for (let i = 0; i < plugins.length; i++) {
const plugin = options.plugins[i];
for (const plugin of options.plugins) {
const name = Object.keys(plugin)[0];

@@ -17,0 +16,0 @@ const pluginPackage = options.pluginMap[name];

{
"name": "@graphql-codegen/core",
"version": "1.0.3-alpha-fb95f3d3.1+fb95f3d3",
"version": "1.0.3",
"license": "MIT",

@@ -42,3 +42,3 @@ "repository": {

"dependencies": {
"@graphql-codegen/plugin-helpers": "1.0.3-alpha-fb95f3d3.1+fb95f3d3",
"@graphql-codegen/plugin-helpers": "1.0.3",
"graphql-toolkit": "0.2.7",

@@ -60,3 +60,3 @@ "tslib": "1.9.3"

},
"gitHead": "fb95f3d38d1340727cfb0e55086be5b03585dc12"
"gitHead": "f444f37c6fc706bc182c0a39ce11025eb6b760c0"
}

Sorry, the diff of this file is not supported yet

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