@naturalcycles/js-lib 14.107.0 → 14.107.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.
@@ -36,4 +36,4 @@ export declare function _isErrorObject(o: any): o is ErrorObject;
36
36
  * })
37
37
  * }
38
38
  */
39
- export declare function _errorDataAppend(err: Error, data: ErrorData): void;
39
+ export declare function _errorDataAppend(err: any, data: ErrorData): void;
@@ -121,7 +121,6 @@ exports._isErrorObject = _isErrorObject;
121
121
  * }
122
122
  */
123
123
  function _errorDataAppend(err, data) {
124
- ;
125
124
  err.data = {
126
125
  ...err.data,
127
126
  ...data,
@@ -109,6 +109,5 @@ export function _isErrorObject(o) {
109
109
  * }
110
110
  */
111
111
  export function _errorDataAppend(err, data) {
112
- ;
113
112
  err.data = Object.assign(Object.assign({}, err.data), data);
114
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.107.0",
3
+ "version": "14.107.1",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "build-prod": "build-prod-esm-cjs",
@@ -158,9 +158,9 @@ export function _isErrorObject(o: any): o is ErrorObject {
158
158
  * })
159
159
  * }
160
160
  */
161
- export function _errorDataAppend(err: Error, data: ErrorData): void {
162
- ;(err as any).data = {
163
- ...(err as any).data,
161
+ export function _errorDataAppend(err: any, data: ErrorData): void {
162
+ err.data = {
163
+ ...err.data,
164
164
  ...data,
165
165
  }
166
166
  }