Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@block65/custom-error

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@block65/custom-error - npm Package Compare versions

Comparing version
11.0.1
to
12.0.0
+2
-2
dist/lib/custom-error.d.ts

@@ -1,2 +0,2 @@

declare type DebugData = Record<string, unknown>;
type DebugData = Record<string, unknown>;
export declare enum Status {

@@ -54,3 +54,3 @@ OK = 0,

}
export declare type ErrorDetail = ErrorInfo | RetryInfo | QuotaFailure | BadRequest | LocalisedMessage | Help;
export type ErrorDetail = ErrorInfo | RetryInfo | QuotaFailure | BadRequest | LocalisedMessage | Help;
export interface CustomErrorSerialized {

@@ -57,0 +57,0 @@ code: Status;

@@ -25,3 +25,2 @@ import { serializeError as serialize } from 'serialize-error';

}
// isNativeError for compat inside jest
if (err instanceof Error) {

@@ -28,0 +27,0 @@ const { name, message, stack, cause, code, ...debug } = serialize(err);

{
"name": "@block65/custom-error",
"version": "11.0.1",
"version": "12.0.0",
"private": false,

@@ -17,31 +17,28 @@ "license": "UNLICENSED",

],
"scripts": {
"build": "tsc",
"build:clean": "rimraf dist/**",
"prepare": "yarn build:clean && yarn test && yarn build",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"dependencies": {
"serialize-error": "^11.0.0"
"serialize-error": "^11.0.1"
},
"devDependencies": {
"@babel/core": "^7.18.13",
"@babel/preset-env": "^7.18.10",
"@babel/preset-typescript": "^7.18.6",
"@block65/eslint-config": "^8.0.0",
"@types/jest": "^29.0.0",
"@types/node": "^18.7.14",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"eslint": "^8.23.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.0.1",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"typescript": "^4.8.2"
"@babel/core": "^7.22.10",
"@babel/preset-env": "^7.22.10",
"@babel/preset-typescript": "^7.22.5",
"@block65/eslint-config": "^11.0.0",
"@types/jest": "^29.5.3",
"@types/node": "^18",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"eslint": "^8.46.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.2",
"prettier": "^3.0.1",
"rimraf": "^5.0.1",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"scripts": {
"preversion": "make clean && make test && make"
}
}
}