@async-generators/iterable
Advanced tools
Comparing version 0.4.0 to 0.4.1
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9153
57