New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@graphql-ez/utils

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-ez/utils - npm Package Compare versions

Comparing version
0.1.5
to
0.2.0
+14
error.d.ts
import { ASTNode, GraphQLError, Source } from 'graphql';
type Maybe<T> = null | undefined | T;
interface GraphQLErrorOptions {
nodes?: ReadonlyArray<ASTNode> | ASTNode | null;
source?: Maybe<Source>;
positions?: Maybe<ReadonlyArray<number>>;
path?: Maybe<ReadonlyArray<string | number>>;
originalError?: Maybe<Error & {
readonly extensions?: unknown;
}>;
extensions?: any;
}
export declare function createGraphQLError(message: string, options?: GraphQLErrorOptions): GraphQLError;
export {};
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const graphql = require('graphql');
function createGraphQLError(message, options) {
if (graphql.versionInfo.major >= 17) {
return new graphql.GraphQLError(message, options);
}
return new graphql.GraphQLError(
message,
options == null ? void 0 : options.nodes,
options == null ? void 0 : options.source,
options == null ? void 0 : options.positions,
options == null ? void 0 : options.path,
options == null ? void 0 : options.originalError,
options == null ? void 0 : options.extensions
);
}
exports.createGraphQLError = createGraphQLError;
import { versionInfo, GraphQLError } from 'graphql';
function createGraphQLError(message, options) {
if (versionInfo.major >= 17) {
return new GraphQLError(message, options);
}
return new GraphQLError(
message,
options == null ? void 0 : options.nodes,
options == null ? void 0 : options.source,
options == null ? void 0 : options.positions,
options == null ? void 0 : options.path,
options == null ? void 0 : options.originalError,
options == null ? void 0 : options.extensions
);
}
export { createGraphQLError };
+1
-1
{
"name": "@graphql-ez/utils",
"version": "0.1.5",
"version": "0.2.0",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {