@openfn/logger
Advanced tools
Comparing version 1.0.0 to 1.0.1
# @openfn/logger | ||
## 1.0.1 | ||
### Patch Changes | ||
- 2fde0ad: Don't blow up if an object with a null prototype is sent through | ||
## 1.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -68,2 +68,5 @@ // src/logger.ts | ||
const maybeStringify = (o) => options.stringify === false ? o : stringify(o, void 0, 2); | ||
if (/^(number|string|boolean)$/.exec(typeof item)) { | ||
return item; | ||
} | ||
if (isError(item)) { | ||
@@ -81,3 +84,5 @@ if (options.serializeErrors) { | ||
return scrubbers[options.policy](item); | ||
} else if (Array.isArray(item) || isNaN(item) && item && typeof item !== "string") { | ||
} else if (Array.isArray(item)) { | ||
return maybeStringify(item); | ||
} else if (item) { | ||
const obj = item; | ||
@@ -84,0 +89,0 @@ if (obj && obj.configuration) { |
{ | ||
"name": "@openfn/logger", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Cross-package logging utility", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
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
19112
509