Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@naturalcycles/js-lib

Package Overview
Dependencies
Maintainers
3
Versions
525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/js-lib - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

7

CHANGELOG.md

@@ -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 @@

4

dist-esm/error/app.error.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc