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

@async-generators/terminator

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/terminator - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

1

dist/commonjs/index.js
"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]) {

6

package.json
{
"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

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