jsoneditor
Advanced tools
Comparing version
@@ -5,2 +5,7 @@ # JSON Editor - History | ||
## 2025-03-28, version 10.2.0 | ||
- Feat: stringify integer numbers bigger than max safe integer (#1646). | ||
Thanks @pawfrolow. | ||
## 2025-02-17, version 10.1.3 | ||
@@ -7,0 +12,0 @@ |
{ | ||
"name": "jsoneditor", | ||
"version": "10.1.3", | ||
"version": "10.2.0", | ||
"main": "./dist/jsoneditor.min.js", | ||
@@ -41,6 +41,6 @@ "description": "A web-based tool to view, edit, format, and validate JSON", | ||
"devDependencies": { | ||
"@babel/core": "7.26.9", | ||
"@babel/core": "7.26.10", | ||
"@babel/preset-env": "7.26.9", | ||
"@babel/register": "7.25.9", | ||
"babel-loader": "9.2.1", | ||
"babel-loader": "10.0.0", | ||
"btoa": "1.2.1", | ||
@@ -52,3 +52,3 @@ "date-format": "4.0.14", | ||
"gulp-concat-css": "3.1.0", | ||
"gulp-sass": "6.0.0", | ||
"gulp-sass": "6.0.1", | ||
"jsdom": "26.0.0", | ||
@@ -58,3 +58,3 @@ "json-loader": "0.5.7", | ||
"mocha": "11.1.0", | ||
"sass": "1.85.0", | ||
"sass": "1.86.0", | ||
"source-map-loader": "5.0.0", | ||
@@ -61,0 +61,0 @@ "standard": "17.1.2", |
@@ -1147,3 +1147,6 @@ 'use strict' | ||
const numFloat = parseFloat(str) // will nicely fail with ' ' | ||
if (!isNaN(num) && !isNaN(numFloat)) { | ||
const isFiniteNumber = !isNaN(num) && !isNaN(numFloat) && isFinite(num) | ||
const isInSafeRange = num <= Number.MAX_SAFE_INTEGER && num >= Number.MIN_SAFE_INTEGER | ||
const isInteger = /^\d+$/.test(str) | ||
if (isFiniteNumber && (isInSafeRange || !isInteger)) { | ||
return num | ||
@@ -1150,0 +1153,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
8094766
0.02%130909
0.01%