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

lossless-json

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lossless-json - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

lib/esm/parse.js

@@ -49,2 +49,3 @@ import { parseLosslessNumber } from './numberParsers.js';

throwObjectKeyExpected();
return; // To make TS happy
}

@@ -56,2 +57,3 @@ skipWhitespace();

throwObjectValueExpected();
return; // To make TS happy
}

@@ -58,0 +60,0 @@

5

lib/esm/parse.test.js

@@ -214,3 +214,4 @@ import { describe, test, expect } from 'vitest';

function toRegularJSON(json) {
return JSON.parse(stringify(json));
const str = stringify(json);
return str !== undefined ? JSON.parse(str) : undefined;
}

@@ -234,2 +235,4 @@ function reviver(key, value) {

logsActual.push({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
context: toRegularJSON(this),

@@ -236,0 +239,0 @@ key,

@@ -10,2 +10,4 @@ import { test, expect } from 'vitest';

expect(stringify(undefined)).toEqual(undefined);
expect(stringify(function () {})).toEqual(undefined);
expect(stringify(Symbol('test'))).toEqual(undefined);
expect(stringify(null)).toEqual('null');

@@ -205,2 +207,4 @@ expect(stringify(true)).toEqual('true');

stringify(json, function (key, value) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
logs.push({

@@ -207,0 +211,0 @@ context: this,

@@ -86,3 +86,3 @@ /**

if (config?.approx === true ? unsafeReason && unsafeReason !== UnsafeNumberReason.truncate_float : unsafeReason) {
const unsafeReasonText = unsafeReason.replace(/_\w+$/, '');
const unsafeReasonText = unsafeReason?.replace(/_\w+$/, '');
throw new Error('Cannot safely convert to number: ' + `the value '${value}' would ${unsafeReasonText} and become ${number}`);

@@ -89,0 +89,0 @@ }

@@ -24,3 +24,3 @@ import type { NumberParser, Reviver } from './types';

*/
export declare function parse(text: string, reviver?: Reviver, parseNumber?: NumberParser): unknown;
export declare function parse(text: string, reviver?: Reviver | null, parseNumber?: NumberParser): unknown;
export declare function isValidStringCharacter(code: number): boolean;

@@ -27,0 +27,0 @@ export declare function isDeepEqual(a: unknown, b: unknown): boolean;

@@ -36,3 +36,3 @@ import type { NumberStringifier, Replacer } from './types';

*/
export declare function stringify(value: unknown, replacer?: Replacer, space?: number | string, numberStringifiers?: NumberStringifier[]): string | undefined;
export declare function stringify(value: unknown, replacer?: Replacer | null, space?: number | string, numberStringifiers?: NumberStringifier[]): string | undefined;
//# sourceMappingURL=stringify.d.ts.map

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).LosslessJSON={})}(this,(function(t){"use strict";function e(t){return r.test(t)}const r=/^-?[0-9]+$/;function n(t){return o.test(t)}const o=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function i(t,r){const n=parseFloat(t),o=String(n),i=a(t),c=a(o);if(i===c)return!0;if(!0===r?.approx){const r=14;if(!e(t)&&c.length>=r&&i.startsWith(c.substring(0,r)))return!0}return!1}let c=function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t}({});function u(t){if(i(t,{approx:!1}))return;if(e(t))return c.truncate_integer;const r=parseFloat(t);return isFinite(r)?0===r?c.underflow:c.truncate_float:c.overflow}function a(t){return t.replace(f,"").replace(l,"").replace(d,"").replace(s,"")}const f=/[eE][+-]?\d+$/,s=/^-?(0*)?/,l=/\./,d=/0+$/;class h{isLosslessNumber=!0;constructor(t){if(!n(t))throw new Error('Invalid number (value: "'+t+'")');this.value=t}valueOf(){const t=u(this.value);if(void 0===t||t===c.truncate_float)return parseFloat(this.value);if(e(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${parseFloat(this.value)}`)}toString(){return this.value}}function p(t){return t&&"object"==typeof t&&!0===t.isLosslessNumber||!1}function y(t){return new h(t)}function w(t,e,r,n){return Array.isArray(r)?n.call(t,e,function(t,e){for(let r=0;r<t.length;r++)t[r]=w(t,r+"",t[r],e);return t}(r,n)):r&&"object"==typeof r&&!p(r)?n.call(t,e,function(t,e){return Object.keys(t).forEach((r=>{const n=w(t,r,t[r],e);void 0!==n?t[r]=n:delete t[r]})),t}(r,n)):n.call(t,e,r)}function b(t){return t>=J&&t<=B||t>=Q&&t<=Z||t>=U&&t<=q}function g(t){return t>=J&&t<=B}function v(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,r)=>v(t,e[r])));if(A(t)&&A(e)){return[...new Set([...Object.keys(t),...Object.keys(e)])].every((r=>v(t[r],e[r])))}return!1}function A(t){return"object"==typeof t&&null!==t}const m={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},C=92,$=123,S=125,x=91,E=93,N=32,O=10,I=9,j=13,k=34,_=43,F=45,J=48,L=49,B=57,D=44,T=46,R=58,Q=65,U=97,P=69,W=101,Z=70,q=102;const z=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;t.LosslessNumber=h,t.UnsafeNumberReason=c,t.config=function(t){throw new Error("config is deprecated, support for circularRefs is removed from the library. If you encounter circular references in your data structures, please rethink your datastructures: better prevent circular references in the first place.")},t.getUnsafeNumberReason=u,t.isInteger=e,t.isLosslessNumber=p,t.isNumber=n,t.isSafeNumber=i,t.parse=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y,n=0;const o=u();return function(t){if(void 0===t)throw new SyntaxError(`JSON value expected ${H()}`)}(o),function(){if(n<t.length)throw new SyntaxError(`Expected end of input ${H()}`)}(),e?function(t,e){return w({"":t},"",t,e)}(o,e):o;function i(){if(t.charCodeAt(n)===$){n++,f();const e={};let r=!0;for(;n<t.length&&t.charCodeAt(n)!==S;){r?r=!1:(l(),f());const t=n,o=s();void 0===o&&A(),f(),d();const i=u();void 0===i&&q(),Object.prototype.hasOwnProperty.call(e,o)&&!v(i,e[o])&&Q(o,t+1),e[o]=i}return t.charCodeAt(n)!==S&&function(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${H()}`)}(),n++,e}}function c(){if(t.charCodeAt(n)===x){n++,f();const e=[];let r=!0;for(;n<t.length&&t.charCodeAt(n)!==E;){r?r=!1:l();const t=u();h(t),e.push(t)}return t.charCodeAt(n)!==E&&function(){throw new SyntaxError(`Array item or end of array ']' expected ${H()}`)}(),n++,e}}function u(){f();const e=s()??function(){const e=n;t.charCodeAt(n)===F&&(n++,p(e));if(t.charCodeAt(n)===J)n++;else if(o=t.charCodeAt(n),o>=L&&o<=B)for(n++;g(t.charCodeAt(n));)n++;var o;if(t.charCodeAt(n)===T)for(n++,p(e);g(t.charCodeAt(n));)n++;if(t.charCodeAt(n)===W||t.charCodeAt(n)===P)for(n++,t.charCodeAt(n)!==F&&t.charCodeAt(n)!==_||n++,p(e);g(t.charCodeAt(n));)n++;if(n>e)return r(t.slice(e,n))}()??i()??c()??a("true",!0)??a("false",!1)??a("null",null);return f(),e}function a(e,r){if(t.slice(n,n+e.length)===e)return n+=e.length,r}function f(){for(;(e=t.charCodeAt(n))===N||e===O||e===I||e===j;)n++;var e}function s(){if(t.charCodeAt(n)===k){n++;let r="";for(;n<t.length&&t.charCodeAt(n)!==k;){if(t.charCodeAt(n)===C){const e=t[n+1],o=m[e];void 0!==o?(r+=o,n++):"u"===e?b(t.charCodeAt(n+2))&&b(t.charCodeAt(n+3))&&b(t.charCodeAt(n+4))&&b(t.charCodeAt(n+5))?(r+=String.fromCharCode(parseInt(t.slice(n+2,n+6),16)),n+=5):z(n):Z(n)}else(e=t.charCodeAt(n))>=32&&e<=1114111?r+=t[n]:U(t[n]);n++}return function(){if(t.charCodeAt(n)!==k)throw new SyntaxError(`End of string '"' expected ${H()}`)}(),n++,r}var e}function l(){if(t.charCodeAt(n)!==D)throw new SyntaxError(`Comma ',' expected after value ${H()}`);n++}function d(){if(t.charCodeAt(n)!==R)throw new SyntaxError(`Colon ':' expected after property name ${H()}`);n++}function h(t){if(void 0===t)throw new SyntaxError(`Array item expected ${H()}`)}function p(e){if(!g(t.charCodeAt(n))){const r=t.slice(e,n);throw new SyntaxError(`Invalid number '${r}', expecting a digit ${H()}`)}}function A(){throw new SyntaxError(`Quoted object key expected ${H()}`)}function Q(t,e){throw new SyntaxError(`Duplicate key '${t}' encountered at position ${e}`)}function U(t){throw new SyntaxError(`Invalid character '${t}' ${G()}`)}function Z(e){const r=t.slice(e,e+2);throw new SyntaxError(`Invalid escape character '${r}' ${G()}`)}function q(){throw new SyntaxError(`Object value expected after ':' ${G()}`)}function z(e){const r=t.slice(e,e+6);throw new SyntaxError(`Invalid unicode character '${r}' ${G()}`)}function G(){return`at position ${n}`}function H(){return(n<t.length?`but got '${t[n]}'`:"but reached end of input")+" "+G()}},t.parseLosslessNumber=y,t.parseNumberAndBigInt=function(t){return e(t)?BigInt(t):parseFloat(t)},t.reviveDate=function(t,e){return"string"==typeof e&&z.test(e)?new Date(e):e},t.stringify=function t(e,r,o,i){const c=function(t){if("number"==typeof t)return" ".repeat(t);if("string"==typeof t&&""!==t)return t;return}(o);return u("function"==typeof r?r.call({"":e},"",e):e,"");function u(e,a){if(Array.isArray(i)){const t=i.find((t=>t.test(e)));if(t){const r=t.stringify(e);if("string"!=typeof r||!n(r))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${r})`);return r}}return"boolean"==typeof e||"number"==typeof e||"string"==typeof e||null===e||e instanceof Date||e instanceof Boolean||e instanceof Number||e instanceof String?JSON.stringify(e):e&&e.isLosslessNumber||"bigint"==typeof e?e.toString():Array.isArray(e)?function(t,e){if(0===t.length)return"[]";const n=c?e+c:void 0;let o=c?"[\n":"[";for(let e=0;e<t.length;e++){const i="function"==typeof r?r.call(t,String(e),t[e]):t[e];c&&(o+=n),o+=void 0!==i&&"function"!=typeof i?u(i,n):"null",e<t.length-1&&(o+=c?",\n":",")}return o+=c?"\n"+e+"]":"]",o}(e,a):e&&"object"==typeof e?function(e,n){if("function"==typeof e.toJSON)return t(e.toJSON(),r,o,void 0);const i=Array.isArray(r)?r.map(String):Object.keys(e);if(0===i.length)return"{}";const a=c?n+c:void 0;let f=!0,s=c?"{\n":"{";return i.forEach((t=>{const n="function"==typeof r?r.call(e,t,e[t]):e[t];if(function(t,e){return void 0!==e&&"function"!=typeof e&&"symbol"!=typeof e}(0,n)){f?f=!1:s+=c?",\n":",";const e=JSON.stringify(t);s+=c?a+e+": ":e+":",s+=u(n,a)}})),s+=c?"\n"+n+"}":"}",s}(e,a):void 0}},t.toLosslessNumber=function(t){if(a(t+"").length>15)throw new Error(`Invalid number: contains more than 15 digits and is most likely truncated and unsafe by itself (value: ${t})`);if(isNaN(t))throw new Error("Invalid number: NaN");if(!isFinite(t))throw new Error("Invalid number: "+t);return new h(String(t))},t.toSafeNumberOrThrow=function(t,e){const r=parseFloat(t),n=u(t);if(!0===e?.approx?n&&n!==c.truncate_float:n){const e=n.replace(/_\w+$/,"");throw new Error(`Cannot safely convert to number: the value '${t}' would ${e} and become ${r}`)}return r}}));//# sourceMappingURL=lossless-json.js.map
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).LosslessJSON={})}(this,(function(t){"use strict";function e(t){return r.test(t)}const r=/^-?[0-9]+$/;function n(t){return o.test(t)}const o=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function i(t,r){const n=parseFloat(t),o=String(n),i=a(t),c=a(o);if(i===c)return!0;if(!0===r?.approx){const r=14;if(!e(t)&&c.length>=r&&i.startsWith(c.substring(0,r)))return!0}return!1}let c=function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t}({});function u(t){if(i(t,{approx:!1}))return;if(e(t))return c.truncate_integer;const r=parseFloat(t);return isFinite(r)?0===r?c.underflow:c.truncate_float:c.overflow}function a(t){return t.replace(f,"").replace(l,"").replace(d,"").replace(s,"")}const f=/[eE][+-]?\d+$/,s=/^-?(0*)?/,l=/\./,d=/0+$/;class h{isLosslessNumber=!0;constructor(t){if(!n(t))throw new Error('Invalid number (value: "'+t+'")');this.value=t}valueOf(){const t=u(this.value);if(void 0===t||t===c.truncate_float)return parseFloat(this.value);if(e(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${parseFloat(this.value)}`)}toString(){return this.value}}function p(t){return t&&"object"==typeof t&&!0===t.isLosslessNumber||!1}function y(t){return new h(t)}function w(t,e,r,n){return Array.isArray(r)?n.call(t,e,function(t,e){for(let r=0;r<t.length;r++)t[r]=w(t,r+"",t[r],e);return t}(r,n)):r&&"object"==typeof r&&!p(r)?n.call(t,e,function(t,e){return Object.keys(t).forEach((r=>{const n=w(t,r,t[r],e);void 0!==n?t[r]=n:delete t[r]})),t}(r,n)):n.call(t,e,r)}function b(t){return t>=J&&t<=B||t>=Q&&t<=Z||t>=U&&t<=q}function g(t){return t>=J&&t<=B}function v(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,r)=>v(t,e[r])));if(A(t)&&A(e)){return[...new Set([...Object.keys(t),...Object.keys(e)])].every((r=>v(t[r],e[r])))}return!1}function A(t){return"object"==typeof t&&null!==t}const m={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},C=92,$=123,S=125,x=91,E=93,N=32,O=10,I=9,j=13,k=34,_=43,F=45,J=48,L=49,B=57,D=44,T=46,R=58,Q=65,U=97,P=69,W=101,Z=70,q=102;const z=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;t.LosslessNumber=h,t.UnsafeNumberReason=c,t.config=function(t){throw new Error("config is deprecated, support for circularRefs is removed from the library. If you encounter circular references in your data structures, please rethink your datastructures: better prevent circular references in the first place.")},t.getUnsafeNumberReason=u,t.isInteger=e,t.isLosslessNumber=p,t.isNumber=n,t.isSafeNumber=i,t.parse=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y,n=0;const o=u();return function(t){if(void 0===t)throw new SyntaxError(`JSON value expected ${H()}`)}(o),function(){if(n<t.length)throw new SyntaxError(`Expected end of input ${H()}`)}(),e?function(t,e){return w({"":t},"",t,e)}(o,e):o;function i(){if(t.charCodeAt(n)===$){n++,f();const e={};let r=!0;for(;n<t.length&&t.charCodeAt(n)!==S;){r?r=!1:(l(),f());const t=n,o=s();if(void 0===o)return void A();f(),d();const i=u();if(void 0===i)return void q();Object.prototype.hasOwnProperty.call(e,o)&&!v(i,e[o])&&Q(o,t+1),e[o]=i}return t.charCodeAt(n)!==S&&function(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${H()}`)}(),n++,e}}function c(){if(t.charCodeAt(n)===x){n++,f();const e=[];let r=!0;for(;n<t.length&&t.charCodeAt(n)!==E;){r?r=!1:l();const t=u();h(t),e.push(t)}return t.charCodeAt(n)!==E&&function(){throw new SyntaxError(`Array item or end of array ']' expected ${H()}`)}(),n++,e}}function u(){f();const e=s()??function(){const e=n;t.charCodeAt(n)===F&&(n++,p(e));if(t.charCodeAt(n)===J)n++;else if(o=t.charCodeAt(n),o>=L&&o<=B)for(n++;g(t.charCodeAt(n));)n++;var o;if(t.charCodeAt(n)===T)for(n++,p(e);g(t.charCodeAt(n));)n++;if(t.charCodeAt(n)===W||t.charCodeAt(n)===P)for(n++,t.charCodeAt(n)!==F&&t.charCodeAt(n)!==_||n++,p(e);g(t.charCodeAt(n));)n++;if(n>e)return r(t.slice(e,n))}()??i()??c()??a("true",!0)??a("false",!1)??a("null",null);return f(),e}function a(e,r){if(t.slice(n,n+e.length)===e)return n+=e.length,r}function f(){for(;(e=t.charCodeAt(n))===N||e===O||e===I||e===j;)n++;var e}function s(){if(t.charCodeAt(n)===k){n++;let r="";for(;n<t.length&&t.charCodeAt(n)!==k;){if(t.charCodeAt(n)===C){const e=t[n+1],o=m[e];void 0!==o?(r+=o,n++):"u"===e?b(t.charCodeAt(n+2))&&b(t.charCodeAt(n+3))&&b(t.charCodeAt(n+4))&&b(t.charCodeAt(n+5))?(r+=String.fromCharCode(parseInt(t.slice(n+2,n+6),16)),n+=5):z(n):Z(n)}else(e=t.charCodeAt(n))>=32&&e<=1114111?r+=t[n]:U(t[n]);n++}return function(){if(t.charCodeAt(n)!==k)throw new SyntaxError(`End of string '"' expected ${H()}`)}(),n++,r}var e}function l(){if(t.charCodeAt(n)!==D)throw new SyntaxError(`Comma ',' expected after value ${H()}`);n++}function d(){if(t.charCodeAt(n)!==R)throw new SyntaxError(`Colon ':' expected after property name ${H()}`);n++}function h(t){if(void 0===t)throw new SyntaxError(`Array item expected ${H()}`)}function p(e){if(!g(t.charCodeAt(n))){const r=t.slice(e,n);throw new SyntaxError(`Invalid number '${r}', expecting a digit ${H()}`)}}function A(){throw new SyntaxError(`Quoted object key expected ${H()}`)}function Q(t,e){throw new SyntaxError(`Duplicate key '${t}' encountered at position ${e}`)}function U(t){throw new SyntaxError(`Invalid character '${t}' ${G()}`)}function Z(e){const r=t.slice(e,e+2);throw new SyntaxError(`Invalid escape character '${r}' ${G()}`)}function q(){throw new SyntaxError(`Object value expected after ':' ${G()}`)}function z(e){const r=t.slice(e,e+6);throw new SyntaxError(`Invalid unicode character '${r}' ${G()}`)}function G(){return`at position ${n}`}function H(){return(n<t.length?`but got '${t[n]}'`:"but reached end of input")+" "+G()}},t.parseLosslessNumber=y,t.parseNumberAndBigInt=function(t){return e(t)?BigInt(t):parseFloat(t)},t.reviveDate=function(t,e){return"string"==typeof e&&z.test(e)?new Date(e):e},t.stringify=function t(e,r,o,i){const c=function(t){if("number"==typeof t)return" ".repeat(t);if("string"==typeof t&&""!==t)return t;return}(o);return u("function"==typeof r?r.call({"":e},"",e):e,"");function u(e,a){if(Array.isArray(i)){const t=i.find((t=>t.test(e)));if(t){const r=t.stringify(e);if("string"!=typeof r||!n(r))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${r})`);return r}}return"boolean"==typeof e||"number"==typeof e||"string"==typeof e||null===e||e instanceof Date||e instanceof Boolean||e instanceof Number||e instanceof String?JSON.stringify(e):e&&e.isLosslessNumber||"bigint"==typeof e?e.toString():Array.isArray(e)?function(t,e){if(0===t.length)return"[]";const n=c?e+c:void 0;let o=c?"[\n":"[";for(let e=0;e<t.length;e++){const i="function"==typeof r?r.call(t,String(e),t[e]):t[e];c&&(o+=n),o+=void 0!==i&&"function"!=typeof i?u(i,n):"null",e<t.length-1&&(o+=c?",\n":",")}return o+=c?"\n"+e+"]":"]",o}(e,a):e&&"object"==typeof e?function(e,n){if("function"==typeof e.toJSON)return t(e.toJSON(),r,o,void 0);const i=Array.isArray(r)?r.map(String):Object.keys(e);if(0===i.length)return"{}";const a=c?n+c:void 0;let f=!0,s=c?"{\n":"{";return i.forEach((t=>{const n="function"==typeof r?r.call(e,t,e[t]):e[t];if(function(t,e){return void 0!==e&&"function"!=typeof e&&"symbol"!=typeof e}(0,n)){f?f=!1:s+=c?",\n":",";const e=JSON.stringify(t);s+=c?a+e+": ":e+":",s+=u(n,a)}})),s+=c?"\n"+n+"}":"}",s}(e,a):void 0}},t.toLosslessNumber=function(t){if(a(t+"").length>15)throw new Error(`Invalid number: contains more than 15 digits and is most likely truncated and unsafe by itself (value: ${t})`);if(isNaN(t))throw new Error("Invalid number: NaN");if(!isFinite(t))throw new Error("Invalid number: "+t);return new h(String(t))},t.toSafeNumberOrThrow=function(t,e){const r=parseFloat(t),n=u(t);if(!0===e?.approx?n&&n!==c.truncate_float:n){const e=n?.replace(/_\w+$/,"");throw new Error(`Cannot safely convert to number: the value '${t}' would ${e} and become ${r}`)}return r}}));//# sourceMappingURL=lossless-json.js.map
{
"name": "lossless-json",
"version": "4.0.0",
"version": "4.0.1",
"description": "Parse JSON without risk of losing numeric information",

@@ -5,0 +5,0 @@ "main": "lib/umd/lossless-json.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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