@common.js/serialize-error 11.0.2 → 11.0.3
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.
- package/README.md +1 -1
- package/index.js +1 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
The [serialize-error](https://www.npmjs.com/package/serialize-error) package exported as CommonJS modules.
|
|
4
4
|
|
|
5
|
-
Exported from [serialize-error@11.0.
|
|
5
|
+
Exported from [serialize-error@11.0.3](https://www.npmjs.com/package/serialize-error/v/11.0.3) using https://github.com/etienne-martin/common.js.
|
package/index.js
CHANGED
|
@@ -344,8 +344,7 @@ var destroyCircular = function(param) {
|
|
|
344
344
|
try {
|
|
345
345
|
for(var _iterator = Object.entries(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
346
346
|
var _value = _slicedToArray(_step.value, 2), key = _value[0], value = _value[1];
|
|
347
|
-
|
|
348
|
-
if (typeof Buffer === "function" && Buffer.isBuffer(value)) {
|
|
347
|
+
if (value && _instanceof(value, Uint8Array) && value.constructor.name === "Buffer") {
|
|
349
348
|
to[key] = "[object Buffer]";
|
|
350
349
|
continue;
|
|
351
350
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common.js/serialize-error",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.3",
|
|
4
4
|
"description": "serialize-error package exported as CommonJS modules",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "etienne-martin/common.js",
|
|
7
7
|
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
8
|
"type": "commonjs",
|
|
9
|
+
"sideEffects": false,
|
|
9
10
|
"engines": {
|
|
10
11
|
"node": ">=14.16"
|
|
11
12
|
},
|