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

@graphql-tools/webpack-loader-runtime

Package Overview
Dependencies
Maintainers
3
Versions
262
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/webpack-loader-runtime - npm Package Compare versions

Comparing version 6.0.19-alpha-edce0415.0 to 6.0.19-alpha-fe84638d.0

22

index.cjs.js

@@ -5,24 +5,10 @@ 'use strict';

const uniqueCode = `
var names = {};
function unique(defs) {
return defs.filter(function (def) {
if (def.kind !== 'FragmentDefinition') return true;
var name = def.name.value;
if (names[name]) {
return false;
} else {
names[name] = true;
return true;
}
});
};
`;
var 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";
function useUnique() {
const names = {};
var names = {};
return 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]) {

@@ -29,0 +15,0 @@ return false;

@@ -1,23 +0,9 @@

const uniqueCode = `
var names = {};
function unique(defs) {
return defs.filter(function (def) {
if (def.kind !== 'FragmentDefinition') return true;
var name = def.name.value;
if (names[name]) {
return false;
} else {
names[name] = true;
return true;
}
});
};
`;
var 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";
function useUnique() {
const names = {};
var names = {};
return 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]) {

@@ -24,0 +10,0 @@ return false;

2

package.json
{
"name": "@graphql-tools/webpack-loader-runtime",
"version": "6.0.19-alpha-edce0415.0",
"version": "6.0.19-alpha-fe84638d.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

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