Skip to content

Commit 55c4c91

Browse files
committed
Publish v5.32.1
1 parent 4c5b19e commit 55c4c91

9 files changed

+69
-34
lines changed

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
https://github.com/josdejong/jsoneditor
44

55

6-
## not yet published, version 5.32.1
6+
## 2018-03-28, version 5.32.1
77

88
- Fixed a regression in parsing JSON paths: numbers where parsed as strings
99
instead of a numeric value. See #679. Thanks @AdamVig.

dist/jsoneditor-minimalist.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
2525
*
2626
* @author Jos de Jong, <wjosdejong@gmail.com>
27-
* @version 5.32.0
28-
* @date 2019-03-20
27+
* @version 5.32.1
28+
* @date 2019-03-28
2929
*/
3030
(function webpackUniversalModuleDefinition(root, factory) {
3131
if(typeof exports === 'object' && typeof module === 'object')
@@ -5421,6 +5421,8 @@ return /******/ (function(modules) { // webpackBootstrap
54215421
if (index.length === 0) {
54225422
throw new Error('Invalid JSON path: array value expected at index ' + i)
54235423
}
5424+
// Coerce numeric indices to numbers, but ignore star
5425+
index = index === '*' ? index : JSON.parse(index);
54245426
path.push(index);
54255427
}
54265428

@@ -5445,7 +5447,13 @@ return /******/ (function(modules) { // webpackBootstrap
54455447
exports.stringifyPath = function stringifyPath(path) {
54465448
return path
54475449
.map(function (p) {
5448-
return typeof p === 'number' ? ('[' + p + ']') : ('.' + p);
5450+
if (typeof p === 'number'){
5451+
return ('[' + p + ']');
5452+
} else if(typeof p === 'string' && p.match(/^[A-Za-z0-9_$]+$/)) {
5453+
return '.' + p;
5454+
} else {
5455+
return '["' + p + '"]';
5456+
}
54495457
})
54505458
.join('');
54515459
};

dist/jsoneditor-minimalist.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor-minimalist.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
2525
*
2626
* @author Jos de Jong, <wjosdejong@gmail.com>
27-
* @version 5.32.0
28-
* @date 2019-03-20
27+
* @version 5.32.1
28+
* @date 2019-03-28
2929
*/
3030
(function webpackUniversalModuleDefinition(root, factory) {
3131
if(typeof exports === 'object' && typeof module === 'object')
@@ -34063,6 +34063,8 @@ return /******/ (function(modules) { // webpackBootstrap
3406334063
if (index.length === 0) {
3406434064
throw new Error('Invalid JSON path: array value expected at index ' + i)
3406534065
}
34066+
// Coerce numeric indices to numbers, but ignore star
34067+
index = index === '*' ? index : JSON.parse(index);
3406634068
path.push(index);
3406734069
}
3406834070

@@ -34087,7 +34089,13 @@ return /******/ (function(modules) { // webpackBootstrap
3408734089
exports.stringifyPath = function stringifyPath(path) {
3408834090
return path
3408934091
.map(function (p) {
34090-
return typeof p === 'number' ? ('[' + p + ']') : ('.' + p);
34092+
if (typeof p === 'number'){
34093+
return ('[' + p + ']');
34094+
} else if(typeof p === 'string' && p.match(/^[A-Za-z0-9_$]+$/)) {
34095+
return '.' + p;
34096+
} else {
34097+
return '["' + p + '"]';
34098+
}
3409134099
})
3409234100
.join('');
3409334101
};

dist/jsoneditor.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 31 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsoneditor",
3-
"version": "5.32.0",
3+
"version": "5.32.1",
44
"main": "./index",
55
"description": "A web-based tool to view, edit, format, and validate JSON",
66
"tags": [

0 commit comments

Comments
 (0)