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

ai-concat

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-concat - npm Package Compare versions

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;

8

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