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

it-length

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-length - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

dist/index.d.ts

6

index.js
'use strict'
/**
* Consumes the passed iterator and returns the number of items it contained.
*
* @param {AsyncIterable<object>} iterator
* @returns {Promise<number>}
*/
const length = async (iterator) => {

@@ -4,0 +10,0 @@ let count = 0

16

package.json
{
"name": "it-length",
"version": "0.0.2",
"version": "1.0.0",
"description": "Counts the number of items in an async iterable",

@@ -13,3 +13,6 @@ "main": "index.js",

"coverage": "nyc --reporter html --reporter lcov ava",
"clean": "rm -rf .nyc_output coverage"
"clean": "rm -rf .nyc_output coverage",
"check": "tsc --noEmit",
"build": "npm run build:types",
"build:types": "tsc --emitDeclarationOnly --declarationDir dist"
},

@@ -19,7 +22,8 @@ "author": "Alex Potsides <alex@achingbrain.net>",

"devDependencies": {
"ava": "^2.4.0",
"nyc": "^14.0.0",
"standard": "^14.3.1"
"ava": "^3.12.1",
"nyc": "^15.1.0",
"standard": "^14.3.1",
"typescript": "^4.0.2"
},
"gitHead": "f9aa3496210abc28938acd3e6e854e1c36e64bca"
"gitHead": "61b1da83cade51bd7bf217966a3eddaf35d2a76b"
}

@@ -1,3 +0,3 @@

import length from './'
import test from 'ava'
const length = require('./')
const test = require('ava')

@@ -4,0 +4,0 @@ test('Should count the items in an async iterator', async (t) => {

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