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.3.0 to 0.4.0

1

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

4

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

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