@async-generators/iterable
Advanced tools
Comparing version 0.3.0 to 0.4.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
Symbol["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator"); | ||
function iterable(source, errmsg = "source parameter is not iterable") { | ||
@@ -4,0 +5,0 @@ if (source == undefined) { |
@@ -0,1 +1,2 @@ | ||
Symbol["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator"); | ||
export default function iterable(source, errmsg = "source parameter is not iterable") { | ||
@@ -2,0 +3,0 @@ if (source == undefined) { |
{ | ||
"name": "@async-generators/iterable", | ||
"description": "wrap async/sync Iterable as an asyncIterable", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"author": { | ||
@@ -41,3 +41,3 @@ "name": "Meirion Hughes", | ||
"scripts": { | ||
"test": "nyc node_modules/mocha/bin/mocha --harmony-async-iteration --require source-map-support/register --compilers ts:ts-node/register test/*.ts", | ||
"test": "nyc node_modules/mocha/bin/mocha --require source-map-support/register --compilers ts:ts-node/register test/*.ts", | ||
"build": "npm run build:commonjs && npm run build:es2015", | ||
@@ -44,0 +44,0 @@ "build:commonjs": "tsc --project tsconfig.build.json --rootDir src/ --outDir ./dist/commonjs", |
@@ -0,1 +1,3 @@ | ||
(<any>Symbol)["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator"); | ||
export default function iterable<T>( | ||
@@ -2,0 +4,0 @@ source: AsyncIterable<T> | Iterable<T> | (() => AsyncIterable<T> | 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
9010
55