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

@async-generators/iterable

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@async-generators/iterable - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

3

dist/commonjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Symbol["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator");
if (Symbol["asyncIterator"] === undefined)
(Symbol["asyncIterator"]) = Symbol.for("asyncIterator");
function iterable(source, errmsg = "source parameter is not iterable") {

@@ -5,0 +6,0 @@ if (source == undefined) {

@@ -1,2 +0,3 @@

Symbol["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator");
if (Symbol["asyncIterator"] === undefined)
(Symbol["asyncIterator"]) = Symbol.for("asyncIterator");
export default function iterable(source, errmsg = "source parameter is not iterable") {

@@ -3,0 +4,0 @@ if (source == undefined) {

{
"name": "@async-generators/iterable",
"description": "wrap async/sync Iterable as an asyncIterable",
"version": "0.4.0",
"version": "0.4.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Meirion Hughes",

@@ -1,2 +0,2 @@

(<any>Symbol)["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator");
if(Symbol["asyncIterator"] === undefined) ((<any>Symbol)["asyncIterator"]) = Symbol.for("asyncIterator");

@@ -3,0 +3,0 @@ export default function iterable<T>(

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