🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

yqueue

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yqueue - npm Package Compare versions

Comparing version

to
1.0.1

2

dist/y-batch.d.ts

@@ -9,5 +9,7 @@ import { EnqueueOptions, Task } from './y-queue';

constructor(errors: unknown[]);
toString(): string;
}
export declare class YBatch {
readonly options: YBatchOptions;
static isYBatchError(e: unknown): e is YBatchErrors;
readonly maxQueueLength: number;

@@ -14,0 +16,0 @@ private readonly queue;

@@ -10,6 +10,21 @@ "use strict";

constructor(errors) {
var _a;
super(`Batch failed with ${errors.length} errors.`);
this.errors = errors;
this.name = new.target.name;
let s = (_a = this.stack) !== null && _a !== void 0 ? _a : super.toString();
s += '\nwrapped errors:';
this.errors.forEach((e, i) => {
s += `\n#${i}\n${e.stack}`;
});
this.stack = s;
}
toString() {
let s = super.toString();
s += '\nwrapped errors:';
for (const e of this.errors) {
s += '\n\t' + e.toString();
}
return s;
}
}

@@ -32,2 +47,5 @@ exports.YBatchErrors = YBatchErrors;

}
static isYBatchError(e) {
return e instanceof YBatchErrors;
}
async add(fn, options) {

@@ -34,0 +52,0 @@ this.running++;

28

package.json

@@ -16,3 +16,3 @@ {

"license": "MIT",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/index.js",

@@ -44,22 +44,22 @@ "types": "dist/index.d.ts",

"@types/cls-hooked": "^4.3.3",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.36",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"cls-hooked": "^4.2.2",
"concurrently": "^7.0.0",
"eslint": "^8.10.0",
"concurrently": "^7.2.1",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.5",
"prettier": "^2.5.1",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^12.4.2",
"prettier": "^2.6.2",
"prettier-plugin-organize-imports": "^2.3.4",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.3",
"ts-jest": "^28.0.3",
"tsetse": "^0.0.3",
"typescript": "^4.6.2"
"typescript": "^4.7.2"
}
}

Sorry, the diff of this file is not supported yet