New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/executor

Package Overview
Dependencies
Maintainers
3
Versions
442
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/executor - npm Package Compare versions

Comparing version 0.0.7-alpha-20221107155416-7df3b3d6 to 0.0.7-alpha-20221107161024-c78c6a92

48

cjs/execution/execute.js

@@ -35,3 +35,17 @@ "use strict";

if (!('schema' in exeContext)) {
return { errors: exeContext };
return {
errors: exeContext.map(e => {
var _a;
Object.defineProperty(e, 'extensions', {
value: {
...e.extensions,
http: {
...(_a = e.extensions) === null || _a === void 0 ? void 0 : _a.http,
status: 400,
},
},
});
return e;
}),
};
}

@@ -729,3 +743,17 @@ return executeImpl(exeContext);

if (!('schema' in exeContext)) {
return { errors: exeContext };
return {
errors: exeContext.map(e => {
var _a;
Object.defineProperty(e, 'extensions', {
value: {
...e.extensions,
http: {
...(_a = e.extensions) === null || _a === void 0 ? void 0 : _a.http,
status: 400,
},
},
});
return e;
}),
};
}

@@ -794,3 +822,17 @@ const resultOrStream = createSourceEventStreamImpl(exeContext);

if (!('schema' in exeContext)) {
return { errors: exeContext };
return {
errors: exeContext.map(e => {
var _a;
Object.defineProperty(e, 'extensions', {
value: {
...e.extensions,
http: {
...(_a = e.extensions) === null || _a === void 0 ? void 0 : _a.http,
status: 400,
},
},
});
return e;
}),
};
}

@@ -797,0 +839,0 @@ return createSourceEventStreamImpl(exeContext);

@@ -32,3 +32,17 @@ import { locatedError, Kind, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, assertValidSchema, getDirectiveValues, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql';

if (!('schema' in exeContext)) {
return { errors: exeContext };
return {
errors: exeContext.map(e => {
var _a;
Object.defineProperty(e, 'extensions', {
value: {
...e.extensions,
http: {
...(_a = e.extensions) === null || _a === void 0 ? void 0 : _a.http,
status: 400,
},
},
});
return e;
}),
};
}

@@ -719,3 +733,17 @@ return executeImpl(exeContext);

if (!('schema' in exeContext)) {
return { errors: exeContext };
return {
errors: exeContext.map(e => {
var _a;
Object.defineProperty(e, 'extensions', {
value: {
...e.extensions,
http: {
...(_a = e.extensions) === null || _a === void 0 ? void 0 : _a.http,
status: 400,
},
},
});
return e;
}),
};
}

@@ -783,3 +811,17 @@ const resultOrStream = createSourceEventStreamImpl(exeContext);

if (!('schema' in exeContext)) {
return { errors: exeContext };
return {
errors: exeContext.map(e => {
var _a;
Object.defineProperty(e, 'extensions', {
value: {
...e.extensions,
http: {
...(_a = e.extensions) === null || _a === void 0 ? void 0 : _a.http,
status: 400,
},
},
});
return e;
}),
};
}

@@ -786,0 +828,0 @@ return createSourceEventStreamImpl(exeContext);

4

package.json
{
"name": "@graphql-tools/executor",
"version": "0.0.7-alpha-20221107155416-7df3b3d6",
"version": "0.0.7-alpha-20221107161024-c78c6a92",
"sideEffects": false,

@@ -10,3 +10,3 @@ "peerDependencies": {

"@repeaterjs/repeater": "3.0.4",
"@graphql-tools/utils": "9.1.0-alpha-20221107155416-7df3b3d6",
"@graphql-tools/utils": "9.1.0-alpha-20221107161024-c78c6a92",
"@graphql-typed-document-node/core": "3.1.1",

@@ -13,0 +13,0 @@ "tslib": "^2.4.0",

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