@grimen/mybad
Advanced tools
Comparing version 0.2.6 to 0.2.7
{ | ||
"name": "@grimen/mybad", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "My friendly error base class - for Node/JavaScript.", | ||
@@ -43,3 +43,2 @@ "keywords": [ | ||
"es6-error": "^4.1.1", | ||
"private-parts": "^0.4.1", | ||
"util-inspect": "^0.1.8" | ||
@@ -46,0 +45,0 @@ }, |
@@ -7,3 +7,2 @@ | ||
const ExtendableError = require('es6-error') | ||
const privateParts = require('private-parts') | ||
const color = require('chalk') | ||
@@ -31,3 +30,2 @@ | ||
const _ = privateParts.createKey() | ||
@@ -40,9 +38,8 @@ /* ========================================= | ||
// ECMASCRIPT stage-3 | ||
// #error = undefined | ||
// #id = undefined | ||
// #key = undefined | ||
// #code = undefined | ||
// #message = undefined | ||
// #details = undefined | ||
#error = undefined | ||
#id = undefined | ||
#key = undefined | ||
#code = undefined | ||
#message = undefined | ||
#details = undefined | ||
@@ -110,56 +107,56 @@ constructor (...args) { | ||
_(this).error = error | ||
_(this).id = id | ||
_(this).key = key | ||
_(this).code = code | ||
_(this).message = message | ||
_(this).details = details | ||
this.#error = error | ||
this.#id = id | ||
this.#key = key | ||
this.#code = code | ||
this.#message = message | ||
this.#details = details | ||
} | ||
get error () { | ||
return _(this).error | ||
return this.#error | ||
} | ||
set error (value) { | ||
_(this).error = value | ||
this.#error = value | ||
} | ||
get id () { | ||
return _(this).id | ||
return this.#id | ||
} | ||
set id (value) { | ||
_(this).id = value | ||
this.#id = value | ||
} | ||
get key () { | ||
return _(this).key | ||
return this.#key | ||
} | ||
set key (value) { | ||
_(this).key = value | ||
this.#key = value | ||
} | ||
get code () { | ||
return _(this).code | ||
return this.#code | ||
} | ||
set code (value) { | ||
_(this).code = value | ||
this.#code = value | ||
} | ||
get message () { | ||
return _(this).message | ||
return this.#message | ||
} | ||
set message (value) { | ||
_(this).message = value | ||
this.#message = value | ||
} | ||
get details () { | ||
return _(this).details || {} | ||
return this.#details || {} | ||
} | ||
set details (value) { | ||
_(this).details = value | ||
this.#details = value | ||
} | ||
@@ -166,0 +163,0 @@ |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
3
41838
783
16
- Removedprivate-parts@^0.4.1
- Removedprivate-parts@0.4.1(transitive)