Socket
Socket
Sign inDemoInstall

@grimen/mybad

Package Overview
Dependencies
15
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.6 to 0.2.7

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc