🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

set-error-class

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

set-error-class - npm Package Compare versions

Comparing version
1.3.0
to
1.4.0
+5
-5
build/src/prototype.js

@@ -42,7 +42,7 @@ import{setNonEnumProp}from"./enum.js";

const getClassName=function(prototype){var _ref,_getPrototypeName;
return(_ref=(_getPrototypeName=
getPrototypeName(prototype))!==null&&_getPrototypeName!==void 0?_getPrototypeName:
getConstructorName(prototype))!==null&&_ref!==void 0?_ref:
getClassName(Object.getPrototypeOf(prototype));
const getClassName=function(prototype){
return(
getPrototypeName(prototype)??
getConstructorName(prototype)??
getClassName(Object.getPrototypeOf(prototype)));

@@ -49,0 +49,0 @@ };

{
"name": "set-error-class",
"version": "1.3.0",
"version": "1.4.0",
"type": "module",

@@ -15,2 +15,3 @@ "exports": {

],
"sideEffects": false,
"scripts": {

@@ -33,6 +34,6 @@ "test": "gulp test"

"dependencies": {
"normalize-exception": "^2.10.0"
"normalize-exception": "^2.11.0"
},
"devDependencies": {
"@ehmicky/dev-tasks": "^1.0.99",
"@ehmicky/dev-tasks": "^1.0.102",
"test-each": "^5.5.0"

@@ -39,0 +40,0 @@ },

@@ -43,4 +43,5 @@ [![Node](https://img.shields.io/badge/-Node.js-808080?logo=node.js&colorA=404040&logoColor=66cc33)](https://www.npmjs.com/package/set-error-class)

This package works in both Node.js >=14.18.0 and browsers. It is an ES module
and must be loaded using
This package works in both Node.js >=14.18.0 and
[browsers](https://raw.githubusercontent.com/ehmicky/dev-tasks/main/src/tasks/build/browserslist).
It is an ES module and must be loaded using
[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c),

@@ -47,0 +48,0 @@ not `require()`.