arrayify-stream
Advanced tools
Comparing version 2.0.1 to 3.0.0
/// <reference types="node" /> | ||
import type { EventEmitter } from 'events'; | ||
export default function arrayifyStream<T = any>(stream: EventEmitter): Promise<T[]>; | ||
export declare function arrayifyStream<T = any>(stream: EventEmitter): Promise<T[]>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.arrayifyStream = void 0; | ||
function promisifyEventEmitter(event, result) { | ||
@@ -13,3 +14,3 @@ return new Promise((resolve, reject) => { | ||
} | ||
exports.default = arrayifyStream; | ||
exports.arrayifyStream = arrayifyStream; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "arrayify-stream", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Converts a Node readable stream into an array", | ||
@@ -11,3 +11,18 @@ "keywords": [ | ||
"main": "index.js", | ||
"module": "esm/index.js", | ||
"types": "index.d.ts", | ||
"typings": "index", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"require": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"import": { | ||
"types": "./esm/index.d.ts", | ||
"default": "./esm/index.js" | ||
} | ||
} | ||
}, | ||
"repository": "git@github.com:rubensworks/arrayify-stream.js.git", | ||
@@ -23,3 +38,6 @@ "author": "Ruben Taelman <rubensworks@gmail.com>", | ||
"index.js", | ||
"index.js.map" | ||
"index.js.map", | ||
"esm/index.d.ts", | ||
"esm/index.js", | ||
"esm/index.js.map" | ||
], | ||
@@ -31,3 +49,3 @@ "pre-commit": [ | ||
"devDependencies": { | ||
"@types/jest": "^27.4.0", | ||
"@types/jest": "^29.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.12.0", | ||
@@ -50,7 +68,7 @@ "@typescript-eslint/parser": "^5.12.0", | ||
"eslint-plugin-unused-imports": "^2.0.0", | ||
"jest": "^27.5.1", | ||
"jest": "^29.0.0", | ||
"manual-git-changelog": "^1.0.0", | ||
"pre-commit": "^1.2.2", | ||
"ts-jest": "^27.1.3", | ||
"typescript": "^4.5.5" | ||
"ts-jest": "^29.0.0", | ||
"typescript": "^5.0.0" | ||
}, | ||
@@ -83,3 +101,5 @@ "jest": { | ||
"lint": "eslint index.ts test/**.ts ", | ||
"build": "tsc", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"build:cjs": "tsc", | ||
"build:esm": "tsc -d --module es2015 --moduleResolution nodenext --outDir esm", | ||
"prepare": "npm run build", | ||
@@ -86,0 +106,0 @@ "version": "manual-git-changelog onversion" |
@@ -14,3 +14,3 @@ # Arrayify Stream | ||
```javascript | ||
const arrayifyStream = require('arrayify-stream'); | ||
import { arrayifyStream } from 'arrayify-stream'; | ||
... | ||
@@ -17,0 +17,0 @@ let myArray = await arrayifyStream(myStream); |
Sorry, the diff of this file is not supported yet
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
8085
9
30