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
10.0.0
to
10.0.1
+1
-2
dist/lib/serialize.js

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

import { isNativeError } from 'node:util/types';
import { serializeError as serialize } from 'serialize-error';

@@ -27,3 +26,3 @@ import { CustomError } from './custom-error.js';

// isNativeError for compat inside jest
if (err instanceof Error || isNativeError(err)) {
if (err instanceof Error) {
const { name, message, stack, cause, code, ...debug } = serialize(err);

@@ -30,0 +29,0 @@ return {

{
"name": "@block65/custom-error",
"version": "10.0.0",
"version": "10.0.1",
"private": false,

@@ -5,0 +5,0 @@ "license": "UNLICENSED",