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
1304
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.3.3 to 10.3.4-alpha-20240807152423-200dbd3752cf6ffce464f6da92cdb9894ab8e5e4

3

cjs/mapAsyncIterator.js

@@ -10,2 +10,5 @@ "use strict";

function mapAsyncIterator(iterator, onNext, onError, onEnd) {
if (Symbol.asyncIterator in iterator) {
iterator = iterator[Symbol.asyncIterator]();
}
let $return;

@@ -12,0 +15,0 @@ let abruptClose;

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

export function mapAsyncIterator(iterator, onNext, onError, onEnd) {
if (Symbol.asyncIterator in iterator) {
iterator = iterator[Symbol.asyncIterator]();
}
let $return;

@@ -9,0 +12,0 @@ let abruptClose;

2

package.json
{
"name": "@graphql-tools/utils",
"version": "10.3.3",
"version": "10.3.4-alpha-20240807152423-200dbd3752cf6ffce464f6da92cdb9894ab8e5e4",
"description": "Common package containing utils and types for GraphQL tools",

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

@@ -6,2 +6,2 @@ import type { MaybePromise } from './executor.js';

*/
export declare function mapAsyncIterator<T, U>(iterator: AsyncIterator<T>, onNext: (value: T) => MaybePromise<U>, onError?: any, onEnd?: () => MaybePromise<void>): AsyncIterableIterator<U>;
export declare function mapAsyncIterator<T, U>(iterator: AsyncIterable<T> | AsyncIterator<T>, onNext: (value: T) => MaybePromise<U>, onError?: any, onEnd?: () => MaybePromise<void>): AsyncIterableIterator<U>;

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