Socket
Socket
Sign inDemoInstall

@graphql-codegen/plugin-helpers

Package Overview
Dependencies
Maintainers
4
Versions
5476
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-codegen/plugin-helpers - npm Package Compare versions

Comparing version 5.1.0-alpha-20240606121041-9e14ec7dd5cde0aa2beb9e8e9f6bd4ccb65650b9 to 5.1.0-alpha-20240820112521-2063b04c72186ed72f8f3b65f8062c4dd23540e6

8

cjs/federation.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkObjectTypeFederationDetails = exports.ApolloFederation = exports.removeFederation = exports.addFederationReferencesToSchema = exports.federationSpec = void 0;
exports.ApolloFederation = exports.federationSpec = void 0;
exports.addFederationReferencesToSchema = addFederationReferencesToSchema;
exports.removeFederation = removeFederation;
exports.checkObjectTypeFederationDetails = checkObjectTypeFederationDetails;
const tslib_1 = require("tslib");

@@ -43,3 +46,2 @@ const utils_1 = require("@graphql-tools/utils");

}
exports.addFederationReferencesToSchema = addFederationReferencesToSchema;
/**

@@ -73,3 +75,2 @@ * Removes Federation Spec from GraphQL Schema

}
exports.removeFederation = removeFederation;
const resolveReferenceFieldName = '__resolveReference';

@@ -241,3 +242,2 @@ class ApolloFederation {

}
exports.checkObjectTypeFederationDetails = checkObjectTypeFederationDetails;
/**

@@ -244,0 +244,0 @@ * Extracts directives from a node based on directive's name

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isUsingTypes = exports.hasNullableTypeRecursively = exports.normalizeConfig = exports.normalizeInstanceOrArray = exports.normalizeOutputParam = exports.isConfiguredOutput = exports.isOutputConfigArray = void 0;
exports.isOutputConfigArray = isOutputConfigArray;
exports.isConfiguredOutput = isConfiguredOutput;
exports.normalizeOutputParam = normalizeOutputParam;
exports.normalizeInstanceOrArray = normalizeInstanceOrArray;
exports.normalizeConfig = normalizeConfig;
exports.hasNullableTypeRecursively = hasNullableTypeRecursively;
exports.isUsingTypes = isUsingTypes;
const graphql_1 = require("graphql");

@@ -9,7 +15,5 @@ const utils_js_1 = require("./utils.js");

}
exports.isOutputConfigArray = isOutputConfigArray;
function isConfiguredOutput(type) {
return typeof type === 'object';
}
exports.isConfiguredOutput = isConfiguredOutput;
function normalizeOutputParam(config) {

@@ -29,3 +33,2 @@ // In case of direct array with a list of plugins

}
exports.normalizeOutputParam = normalizeOutputParam;
function normalizeInstanceOrArray(type) {

@@ -40,3 +43,2 @@ if (Array.isArray(type)) {

}
exports.normalizeInstanceOrArray = normalizeInstanceOrArray;
function normalizeConfig(config) {

@@ -54,3 +56,2 @@ if (typeof config === 'string') {

}
exports.normalizeConfig = normalizeConfig;
function hasNullableTypeRecursively(type) {

@@ -65,3 +66,2 @@ if (!(0, graphql_1.isNonNullType)(type)) {

}
exports.hasNullableTypeRecursively = hasNullableTypeRecursively;
function isUsingTypes(document, externalFragments, schema) {

@@ -174,2 +174,1 @@ let foundFields = 0;

}
exports.isUsingTypes = isUsingTypes;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.oldVisit = void 0;
exports.oldVisit = oldVisit;
const graphql_1 = require("graphql");

@@ -20,2 +20,1 @@ function oldVisit(root, { enter: enterVisitors, leave: leaveVisitors, ...newVisitor }) {

}
exports.oldVisit = oldVisit;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createProfiler = exports.createNoopProfiler = void 0;
exports.createNoopProfiler = createNoopProfiler;
exports.createProfiler = createProfiler;
function createNoopProfiler() {

@@ -14,3 +15,2 @@ return {

}
exports.createNoopProfiler = createNoopProfiler;
function createProfiler() {

@@ -48,5 +48,4 @@ const events = [];

}
exports.createProfiler = createProfiler;
function hrtimeToMicroseconds(hrtime) {
return (hrtime[0] * 1e9 + hrtime[1]) / 1000;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveExternalModuleAndFn = void 0;
exports.resolveExternalModuleAndFn = resolveExternalModuleAndFn;
const tslib_1 = require("tslib");

@@ -32,2 +32,1 @@ const module_1 = require("module");

}
exports.resolveExternalModuleAndFn = resolveExternalModuleAndFn;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isComplexPluginOutput = void 0;
exports.isComplexPluginOutput = isComplexPluginOutput;
function isComplexPluginOutput(obj) {
return typeof obj === 'object' && Object.prototype.hasOwnProperty.call(obj, 'content');
}
exports.isComplexPluginOutput = isComplexPluginOutput;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeNonNullWrapper = exports.getBaseType = exports.isWrapperType = exports.mergeOutputs = void 0;
exports.mergeOutputs = mergeOutputs;
exports.isWrapperType = isWrapperType;
exports.getBaseType = getBaseType;
exports.removeNonNullWrapper = removeNonNullWrapper;
const graphql_1 = require("graphql");

@@ -21,7 +24,5 @@ function mergeOutputs(content) {

}
exports.mergeOutputs = mergeOutputs;
function isWrapperType(t) {
return (0, graphql_1.isListType)(t) || (0, graphql_1.isNonNullType)(t);
}
exports.isWrapperType = isWrapperType;
function getBaseType(type) {

@@ -33,6 +34,4 @@ if (isWrapperType(type)) {

}
exports.getBaseType = getBaseType;
function removeNonNullWrapper(type) {
return (0, graphql_1.isNonNullType)(type) ? type.ofType : type;
}
exports.removeNonNullWrapper = removeNonNullWrapper;
{
"name": "@graphql-codegen/plugin-helpers",
"version": "5.1.0-alpha-20240606121041-9e14ec7dd5cde0aa2beb9e8e9f6bd4ccb65650b9",
"version": "5.1.0-alpha-20240820112521-2063b04c72186ed72f8f3b65f8062c4dd23540e6",
"description": "GraphQL Code Generator common utils and types",

@@ -22,2 +22,5 @@ "peerDependencies": {

"license": "MIT",
"engines": {
"node": ">=16"
},
"main": "cjs/index.js",

@@ -24,0 +27,0 @@ "module": "esm/index.js",

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