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

@graphql-tools/utils

Package Overview
Dependencies
Maintainers
3
Versions
1313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/utils - npm Package Compare versions

Comparing version 10.5.5 to 10.5.6-alpha-20241113141809-caf6b82b08c54dee5ebe372ee73e76efc1d0f7d6

14

cjs/mapAsyncIterator.js

@@ -17,5 +17,9 @@ "use strict";

if (onEnd) {
let onEndWithValueResult /** R in onEndWithValue */ = undefined;
onEndWithValue = value => {
if (onEndWithValueResult) {
return onEndWithValueResult;
}
const onEnd$ = onEnd();
return (0, jsutils_js_1.isPromise)(onEnd$) ? onEnd$.then(() => value) : value;
return (onEndWithValueResult = (0, jsutils_js_1.isPromise)(onEnd$) ? onEnd$.then(() => value) : value);
};

@@ -38,5 +42,11 @@ }

if (onError) {
let onErrorResult = undefined;
// Capture rejectCallback to ensure it cannot be null.
const reject = onError;
mapReject = (error) => asyncMapValue(error, reject).then(iteratorResult, abruptClose);
mapReject = (error) => {
if (onErrorResult) {
return onErrorResult;
}
return (onErrorResult = asyncMapValue(error, reject).then(iteratorResult, abruptClose));
};
}

@@ -43,0 +53,0 @@ return {

@@ -14,5 +14,9 @@ import { isPromise } from './jsutils.js';

if (onEnd) {
let onEndWithValueResult /** R in onEndWithValue */ = undefined;
onEndWithValue = value => {
if (onEndWithValueResult) {
return onEndWithValueResult;
}
const onEnd$ = onEnd();
return isPromise(onEnd$) ? onEnd$.then(() => value) : value;
return (onEndWithValueResult = isPromise(onEnd$) ? onEnd$.then(() => value) : value);
};

@@ -35,5 +39,11 @@ }

if (onError) {
let onErrorResult = undefined;
// Capture rejectCallback to ensure it cannot be null.
const reject = onError;
mapReject = (error) => asyncMapValue(error, reject).then(iteratorResult, abruptClose);
mapReject = (error) => {
if (onErrorResult) {
return onErrorResult;
}
return (onErrorResult = asyncMapValue(error, reject).then(iteratorResult, abruptClose));
};
}

@@ -40,0 +50,0 @@ return {

2

package.json
{
"name": "@graphql-tools/utils",
"version": "10.5.5",
"version": "10.5.6-alpha-20241113141809-caf6b82b08c54dee5ebe372ee73e76efc1d0f7d6",
"description": "Common package containing utils and types for GraphQL tools",

@@ -5,0 +5,0 @@ "sideEffects": false,

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