@naturalcycles/js-lib 14.56.0 → 14.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,7 @@ class AppError extends Error {
19
19
  });
20
20
  Object.defineProperty(this, 'data', {
21
21
  value: data,
22
+ writable: true,
22
23
  configurable: true,
23
24
  enumerable: false,
24
25
  });
@@ -28,6 +29,7 @@ class AppError extends Error {
28
29
  else {
29
30
  Object.defineProperty(this, 'stack', {
30
31
  value: new Error().stack,
32
+ writable: true,
31
33
  configurable: true,
32
34
  });
33
35
  }
@@ -30,6 +30,7 @@ class AggregatedError extends Error {
30
30
  else {
31
31
  Object.defineProperty(this, 'stack', {
32
32
  value: new Error().stack,
33
+ writable: true,
33
34
  configurable: true,
34
35
  });
35
36
  }
@@ -16,6 +16,7 @@ export class AppError extends Error {
16
16
  });
17
17
  Object.defineProperty(this, 'data', {
18
18
  value: data,
19
+ writable: true,
19
20
  configurable: true,
20
21
  enumerable: false,
21
22
  });
@@ -25,6 +26,7 @@ export class AppError extends Error {
25
26
  else {
26
27
  Object.defineProperty(this, 'stack', {
27
28
  value: new Error().stack,
29
+ writable: true,
28
30
  configurable: true,
29
31
  });
30
32
  }
@@ -27,6 +27,7 @@ export class AggregatedError extends Error {
27
27
  else {
28
28
  Object.defineProperty(this, 'stack', {
29
29
  value: new Error().stack,
30
+ writable: true,
30
31
  configurable: true,
31
32
  });
32
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.56.0",
3
+ "version": "14.56.1",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "build-prod": "build-prod-esm-cjs",
@@ -22,6 +22,7 @@ export class AppError<DATA_TYPE extends ErrorData = ErrorData> extends Error {
22
22
 
23
23
  Object.defineProperty(this, 'data', {
24
24
  value: data,
25
+ writable: true,
25
26
  configurable: true,
26
27
  enumerable: false,
27
28
  })
@@ -31,6 +32,7 @@ export class AppError<DATA_TYPE extends ErrorData = ErrorData> extends Error {
31
32
  } else {
32
33
  Object.defineProperty(this, 'stack', {
33
34
  value: new Error().stack, // eslint-disable-line unicorn/error-message
35
+ writable: true,
34
36
  configurable: true,
35
37
  })
36
38
  }
@@ -33,6 +33,7 @@ export class AggregatedError<RESULT = any> extends Error {
33
33
  } else {
34
34
  Object.defineProperty(this, 'stack', {
35
35
  value: new Error().stack, // eslint-disable-line unicorn/error-message
36
+ writable: true,
36
37
  configurable: true,
37
38
  })
38
39
  }