Comparing version 0.0.1 to 1.0.0
18
index.js
@@ -1,3 +0,15 @@ | ||
export default function aiConcat() { | ||
return 42; | ||
} | ||
const reduce = accumulator => async iterable => { | ||
let result = accumulator; | ||
for await (const chunk of iterable) { | ||
result = result.concat(chunk); | ||
} | ||
return result; | ||
}; | ||
const concat = reduce(""); | ||
concat.obj = reduce([]); | ||
concat.buff = iterable => concat.obj(iterable).then(Buffer.concat); | ||
export default concat; |
{ | ||
"name": "ai-concat", | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"description": "Concat an async iterable into a promise", | ||
@@ -13,3 +13,3 @@ "repository": "parro-it/ai-concat", | ||
"scripts": { | ||
"test": "node --harmony_async_iteration -r @std/esm test.js | tap-prettify - && linterjs .", | ||
"test": "node --harmony_async_iteration -r @std/esm test.js | tap-colorize - && linterjs .", | ||
"doc": "documentation readme index.js --section=API" | ||
@@ -28,7 +28,9 @@ }, | ||
"@std/esm": "^0.16.0", | ||
"ai-from-stream": "^1.0.0", | ||
"asynciterable": "^1.0.0", | ||
"documentation": "^5.3.3", | ||
"linterjs": "^1.11.0", | ||
"tap-prettify": "0.0.2", | ||
"tap-colorize": "^1.2.0", | ||
"tape-async": "^2.3.0" | ||
} | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
3210
13
1
0
7