Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xliic/preserving-json-yaml-parser

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xliic/preserving-json-yaml-parser - npm Package Compare versions

Comparing version 1.9.4 to 1.10.0

2

lib/clone.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc