Socket
Socket
Sign inDemoInstall

@envelop/core

Package Overview
Dependencies
Maintainers
1
Versions
1362
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/core - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

19

index.cjs.js

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

try {
const result = await originalFn(root, args, context, info);
let result = await originalFn(root, args, context, info);
for (const afterFn of afterCalls) {
afterFn({ result });
afterFn({
result,
setResult: newResult => {
result = newResult;
},
});
}

@@ -296,6 +301,12 @@ return result;

catch (e) {
let resultErr = e;
for (const afterFn of afterCalls) {
afterFn({ result: e });
afterFn({
result: resultErr,
setResult: newResult => {
resultErr = newResult;
},
});
}
throw e;
throw resultErr;
}

@@ -302,0 +313,0 @@ }

@@ -284,5 +284,10 @@ export * from '@envelop/types';

try {
const result = await originalFn(root, args, context, info);
let result = await originalFn(root, args, context, info);
for (const afterFn of afterCalls) {
afterFn({ result });
afterFn({
result,
setResult: newResult => {
result = newResult;
},
});
}

@@ -292,6 +297,12 @@ return result;

catch (e) {
let resultErr = e;
for (const afterFn of afterCalls) {
afterFn({ result: e });
afterFn({
result: resultErr,
setResult: newResult => {
resultErr = newResult;
},
});
}
throw e;
throw resultErr;
}

@@ -298,0 +309,0 @@ }

{
"name": "@envelop/core",
"version": "0.1.1",
"version": "0.1.2",
"sideEffects": false,

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

"dependencies": {
"@envelop/types": "0.1.1"
"@envelop/types": "0.1.2"
},

@@ -12,0 +12,0 @@ "repository": {

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