@xliic/preserving-json-yaml-parser
Advanced tools
Comparing version 1.9.4 to 1.10.0
@@ -1,1 +0,1 @@ | ||
export declare function simpleClone<T>(orig: T): T; | ||
export declare function simpleClone<T>(orig: T, replacer?: (value: unknown) => unknown): T; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const preserve_1 = require("./preserve"); | ||
function simpleClone(orig) { | ||
function simpleClone(orig, replacer) { | ||
let container = {}; | ||
@@ -32,3 +32,3 @@ const stack = [container]; | ||
onValue: (parent, key, value, preserved) => { | ||
container[key] = value; | ||
container[key] = replacer ? replacer(value) : value; | ||
}, | ||
@@ -35,0 +35,0 @@ }); |
{ | ||
"name": "@xliic/preserving-json-yaml-parser", | ||
"version": "1.9.4", | ||
"version": "1.10.0", | ||
"description": "YAML/JSON parser and serializer that preserves formatting of the original numerical values (i.e. 1.0 vs 1) and handles integers bigger than MAX_SAFE_INTEGER", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
88040