@naturalcycles/js-lib
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -0,1 +1,8 @@ | ||
## [2.2.1](https://github.com/NaturalCycles/js-lib/compare/v2.2.0...v2.2.1) (2019-02-22) | ||
### Bug Fixes | ||
* fixing error.name for AppError, HttpError ([a2094e2](https://github.com/NaturalCycles/js-lib/commit/a2094e2)) | ||
# [2.2.0](https://github.com/NaturalCycles/js-lib/compare/v2.1.0...v2.2.0) (2019-02-22) | ||
@@ -2,0 +9,0 @@ |
@@ -13,3 +13,5 @@ /** | ||
Object.defineProperty(this, 'name', { | ||
value: this.constructor.name, | ||
// value: this.constructor.name, | ||
value: 'AppError', | ||
configurable: true, | ||
}); | ||
@@ -16,0 +18,0 @@ if (Error.captureStackTrace) { |
@@ -9,3 +9,5 @@ import { AppError } from './app.error'; | ||
Object.defineProperty(this, 'name', { | ||
value: this.constructor.name, | ||
// value: this.constructor.name, | ||
value: 'HttpError', | ||
configurable: true, | ||
}); | ||
@@ -12,0 +14,0 @@ if (Error.captureStackTrace) { |
@@ -15,3 +15,5 @@ "use strict"; | ||
Object.defineProperty(this, 'name', { | ||
value: this.constructor.name, | ||
// value: this.constructor.name, | ||
value: 'AppError', | ||
configurable: true, | ||
}); | ||
@@ -18,0 +20,0 @@ if (Error.captureStackTrace) { |
@@ -11,3 +11,5 @@ "use strict"; | ||
Object.defineProperty(this, 'name', { | ||
value: this.constructor.name, | ||
// value: this.constructor.name, | ||
value: 'HttpError', | ||
configurable: true, | ||
}); | ||
@@ -14,0 +16,0 @@ if (Error.captureStackTrace) { |
{ | ||
"name": "@naturalcycles/js-lib", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "del ./dist && tsc", |
@@ -15,3 +15,5 @@ import { ErrorData } from './error.model' | ||
Object.defineProperty(this, 'name', { | ||
value: this.constructor.name, | ||
// value: this.constructor.name, | ||
value: 'AppError', | ||
configurable: true, | ||
}) | ||
@@ -18,0 +20,0 @@ |
@@ -15,3 +15,5 @@ import { AppError } from './app.error' | ||
Object.defineProperty(this, 'name', { | ||
value: this.constructor.name, | ||
// value: this.constructor.name, | ||
value: 'HttpError', | ||
configurable: true, // otherwise throws with "TypeError: Cannot redefine property: name" | ||
}) | ||
@@ -18,0 +20,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102847
1836