@async-generators/terminator
Advanced tools
Comparing version 0.2.0 to 0.3.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
Symbol["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator"); | ||
function default_1(source) { | ||
@@ -4,0 +5,0 @@ if (source[Symbol.asyncIterator]) { |
@@ -0,1 +1,2 @@ | ||
Symbol["asyncIterator"] = Symbol["asyncIterator"] || Symbol.for("asyncIterator"); | ||
export default function (source) { | ||
@@ -2,0 +3,0 @@ if (source[Symbol.asyncIterator]) { |
{ | ||
"name": "@async-generators/terminator", | ||
"description": "inform an iterator when it is prematurely terminated by the consumer.", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"author": { | ||
@@ -30,3 +30,3 @@ "name": "Meirion Hughes", | ||
"devDependencies": { | ||
"@async-generators/equal": "^0.2.1", | ||
"@async-generators/equal": "^0.6.0", | ||
"@types/chai": "^4.0.4", | ||
@@ -44,3 +44,3 @@ "@types/mocha": "^2.2.43", | ||
"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", | ||
@@ -47,0 +47,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 <T>(source: Iterable<T>): Iterable<T>; | ||
@@ -2,0 +4,0 @@ export default function <T>(source: AsyncIterable<T>): AsyncIterable<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
11677
99