@graphql-tools/webpack-loader-runtime
Advanced tools
Comparing version 6.0.16-alpha-7c55fbe4.0 to 6.0.16-alpha-887a8417.0
@@ -6,7 +6,7 @@ 'use strict'; | ||
const uniqueCode = ` | ||
const names = {}; | ||
var names = {}; | ||
function unique(defs) { | ||
return defs.filter((def) => { | ||
return defs.filter(function (def) { | ||
if (def.kind !== 'FragmentDefinition') return true; | ||
const name = def.name.value; | ||
var name = def.name.value; | ||
if (names[name]) { | ||
@@ -13,0 +13,0 @@ return false; |
import { DefinitionNode } from 'graphql'; | ||
export declare const uniqueCode = "\n const names = {};\n function unique(defs) {\n return defs.filter((def) => {\n if (def.kind !== 'FragmentDefinition') return true;\n const name = def.name.value;\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n });\n };\n"; | ||
export declare const uniqueCode = "\n var names = {};\n function unique(defs) {\n return defs.filter(function (def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value;\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n });\n };\n"; | ||
export declare function useUnique(): (defs: DefinitionNode[]) => DefinitionNode[]; |
const uniqueCode = ` | ||
const names = {}; | ||
var names = {}; | ||
function unique(defs) { | ||
return defs.filter((def) => { | ||
return defs.filter(function (def) { | ||
if (def.kind !== 'FragmentDefinition') return true; | ||
const name = def.name.value; | ||
var name = def.name.value; | ||
if (names[name]) { | ||
@@ -8,0 +8,0 @@ return false; |
{ | ||
"name": "@graphql-tools/webpack-loader-runtime", | ||
"version": "6.0.16-alpha-7c55fbe4.0", | ||
"version": "6.0.16-alpha-887a8417.0", | ||
"description": "A set of utils for GraphQL Webpack Loader", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
5984