@anchan828/gen-graphql-merge-schema
Advanced tools
Comparing version 0.1.31 to 0.1.32
@@ -90,5 +90,15 @@ "use strict"; | ||
} | ||
return definitions; | ||
const cached = new Set(); | ||
return definitions.filter(def => { | ||
const cacheKey = JSON.stringify(def.loc); | ||
if (!cached.has(cacheKey)) { | ||
cached.add(cacheKey); | ||
return true; | ||
} | ||
else { | ||
return false; | ||
} | ||
}); | ||
} | ||
} | ||
exports.MergeSchemaService = MergeSchemaService; |
{ | ||
"name": "@anchan828/gen-graphql-merge-schema", | ||
"version": "0.1.31", | ||
"version": "0.1.32", | ||
"description": "merge multiple schema. merge-graphql-schemas based.", | ||
@@ -43,3 +43,3 @@ "author": "anchan828 <anchan828@gmail.com>", | ||
"homepage": "https://github.com/anchan828/gen-graphql-schema/tree/master/packages/merge-schema#readme", | ||
"gitHead": "ac01ea744a47ae3f43a17c824dce5e73ef1b8d85" | ||
"gitHead": "29dfd448745cbe56307c8e7d6f5bb5cf69eeaaef" | ||
} |
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
12075
148