Comparing version 0.0.2 to 1.0.0
'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 |
{ | ||
"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) => { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2738
7
35
0
4