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

@graphql-tools/batch-execute

Package Overview
Dependencies
Maintainers
4
Versions
685
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/batch-execute - npm Package Compare versions

Comparing version 9.0.7-alpha-4d547459c344a9019dcb452dd81b5349d7643cb4 to 9.0.7-alpha-4e2949cc5d70422d5ad150e168db79f6c21ce995

10

CHANGELOG.md
# @graphql-tools/batch-execute
## 9.0.7-alpha-4d547459c344a9019dcb452dd81b5349d7643cb4
## 9.0.7-alpha-4e2949cc5d70422d5ad150e168db79f6c21ce995

@@ -11,2 +11,10 @@ ### Patch Changes

- [#185](https://github.com/graphql-hive/gateway/pull/185) [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Removed dependency [`value-or-promise@^1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from `dependencies`)
- [#188](https://github.com/graphql-hive/gateway/pull/188) [`f71366d`](https://github.com/graphql-hive/gateway/commit/f71366d234fe8f30a419814fe1460f1e22663241) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Removed dependency [`value-or-promise@^1.0.12` ↗︎](https://www.npmjs.com/package/value-or-promise/v/1.0.12) (from `dependencies`)
## 9.0.5

@@ -13,0 +21,0 @@

17

dist/index.js

@@ -1,4 +0,3 @@

import { getOperationASTFromRequest, relocatedError, isAsyncIterable, memoize2of4 } from '@graphql-tools/utils';
import { getOperationASTFromRequest, relocatedError, fakePromise, mapMaybePromise, isAsyncIterable, memoize2of4 } from '@graphql-tools/utils';
import DataLoader from 'dataloader';
import { ValueOrPromise } from 'value-or-promise';
import { Kind, visit } from 'graphql';

@@ -289,7 +288,13 @@

const request = requests[0];
return new ValueOrPromise(() => executor(request)).then((result) => [result]).catch((err) => [err]);
return fakePromise(
mapMaybePromise(
executor(request),
(result) => [result],
(err) => [err]
)
);
}
const mergedRequests = mergeRequests(requests, extensionsReducer);
return new ValueOrPromise(() => executor(mergedRequests)).then(
(resultBatches) => {
return fakePromise(
mapMaybePromise(executor(mergedRequests), (resultBatches) => {
if (isAsyncIterable(resultBatches)) {

@@ -301,3 +306,3 @@ throw new Error(

return splitResult(resultBatches, requests.length);
}
})
);

@@ -304,0 +309,0 @@ };

{
"name": "@graphql-tools/batch-execute",
"version": "9.0.7-alpha-4d547459c344a9019dcb452dd81b5349d7643cb4",
"version": "9.0.7-alpha-4e2949cc5d70422d5ad150e168db79f6c21ce995",
"type": "module",

@@ -43,4 +43,3 @@ "description": "A set of utils for faster development of GraphQL tools",

"dataloader": "^2.2.2",
"tslib": "^2.4.0",
"value-or-promise": "^1.0.12"
"tslib": "^2.4.0"
},

@@ -47,0 +46,0 @@ "devDependencies": {

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