Publish v5.26.3
This commit is contained in:
parent
6551701153
commit
72ab51002c
|
@ -3,7 +3,7 @@
|
||||||
https://github.com/josdejong/jsoneditor
|
https://github.com/josdejong/jsoneditor
|
||||||
|
|
||||||
|
|
||||||
## not yet released, version 5.26.3
|
## 2018-12-06, version 5.26.3
|
||||||
|
|
||||||
- Fixed #610: JSON Repair now removes trailing commas.
|
- Fixed #610: JSON Repair now removes trailing commas.
|
||||||
- Upgraded devDependency `gulp` to v4. Thanks @maestr0.
|
- Upgraded devDependency `gulp` to v4. Thanks @maestr0.
|
||||||
|
|
2
NOTICE
2
NOTICE
|
@ -1,7 +1,7 @@
|
||||||
JSON Editor
|
JSON Editor
|
||||||
https://github.com/josdejong/jsoneditor
|
https://github.com/josdejong/jsoneditor
|
||||||
|
|
||||||
Copyright (C) 2011-2017 Jos de Jong
|
Copyright (C) 2011-2018 Jos de Jong
|
||||||
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|
|
@ -21,11 +21,11 @@
|
||||||
* License for the specific language governing permissions and limitations under
|
* License for the specific language governing permissions and limitations under
|
||||||
* the License.
|
* the License.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
* Copyright (c) 2011-2018 Jos de Jong, http://jsoneditoronline.org
|
||||||
*
|
*
|
||||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||||
* @version 5.26.2
|
* @version 5.26.3
|
||||||
* @date 2018-11-13
|
* @date 2018-12-06
|
||||||
*/
|
*/
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -4658,13 +4658,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
function next() { return jsString.charAt(i + 1); }
|
function next() { return jsString.charAt(i + 1); }
|
||||||
function prev() { return jsString.charAt(i - 1); }
|
function prev() { return jsString.charAt(i - 1); }
|
||||||
|
|
||||||
|
function isWhiteSpace(c) {
|
||||||
|
return c === ' ' || c === '\n' || c === '\r' || c === '\t';
|
||||||
|
}
|
||||||
|
|
||||||
// get the last parsed non-whitespace character
|
// get the last parsed non-whitespace character
|
||||||
function lastNonWhitespace () {
|
function lastNonWhitespace () {
|
||||||
var p = chars.length - 1;
|
var p = chars.length - 1;
|
||||||
|
|
||||||
while (p >= 0) {
|
while (p >= 0) {
|
||||||
var pp = chars[p];
|
var pp = chars[p];
|
||||||
if (pp !== ' ' && pp !== '\n' && pp !== '\r' && pp !== '\t') { // non whitespace
|
if (!isWhiteSpace(pp)) {
|
||||||
return pp;
|
return pp;
|
||||||
}
|
}
|
||||||
p--;
|
p--;
|
||||||
|
@ -4673,6 +4677,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get at the first next non-white space character
|
||||||
|
function nextNonWhiteSpace() {
|
||||||
|
var iNext = i + 1;
|
||||||
|
while (iNext < jsString.length && isWhiteSpace(jsString[iNext])) {
|
||||||
|
iNext++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return jsString[iNext];
|
||||||
|
}
|
||||||
|
|
||||||
// skip a block comment '/* ... */'
|
// skip a block comment '/* ... */'
|
||||||
function skipBlockComment () {
|
function skipBlockComment () {
|
||||||
i += 2;
|
i += 2;
|
||||||
|
@ -4759,7 +4773,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
}
|
}
|
||||||
else if (c === '\u00A0' || (c >= '\u2000' && c <= '\u200A') || c === '\u202F' || c === '\u205F' || c === '\u3000') {
|
else if (c === '\u00A0' || (c >= '\u2000' && c <= '\u200A') || c === '\u202F' || c === '\u205F' || c === '\u3000') {
|
||||||
// special white spaces (like non breaking space)
|
// special white spaces (like non breaking space)
|
||||||
chars.push(' ')
|
chars.push(' ');
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
else if (c === quote) {
|
else if (c === quote) {
|
||||||
|
@ -4777,6 +4791,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
else if (c === quoteDblLeft) {
|
else if (c === quoteDblLeft) {
|
||||||
parseString(quoteDblRight);
|
parseString(quoteDblRight);
|
||||||
}
|
}
|
||||||
|
else if (c === ',' && [']', '}'].indexOf(nextNonWhiteSpace()) !== -1) {
|
||||||
|
// skip trailing commas
|
||||||
|
i++;
|
||||||
|
}
|
||||||
else if (/[a-zA-Z_$]/.test(c) && ['{', ','].indexOf(lastNonWhitespace()) !== -1) {
|
else if (/[a-zA-Z_$]/.test(c) && ['{', ','].indexOf(lastNonWhitespace()) !== -1) {
|
||||||
// an unquoted object key (like a in '{a:2}')
|
// an unquoted object key (like a in '{a:2}')
|
||||||
parseKey();
|
parseKey();
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -21,11 +21,11 @@
|
||||||
* License for the specific language governing permissions and limitations under
|
* License for the specific language governing permissions and limitations under
|
||||||
* the License.
|
* the License.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
* Copyright (c) 2011-2018 Jos de Jong, http://jsoneditoronline.org
|
||||||
*
|
*
|
||||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||||
* @version 5.26.2
|
* @version 5.26.3
|
||||||
* @date 2018-11-13
|
* @date 2018-12-06
|
||||||
*/
|
*/
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -33300,13 +33300,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
function next() { return jsString.charAt(i + 1); }
|
function next() { return jsString.charAt(i + 1); }
|
||||||
function prev() { return jsString.charAt(i - 1); }
|
function prev() { return jsString.charAt(i - 1); }
|
||||||
|
|
||||||
|
function isWhiteSpace(c) {
|
||||||
|
return c === ' ' || c === '\n' || c === '\r' || c === '\t';
|
||||||
|
}
|
||||||
|
|
||||||
// get the last parsed non-whitespace character
|
// get the last parsed non-whitespace character
|
||||||
function lastNonWhitespace () {
|
function lastNonWhitespace () {
|
||||||
var p = chars.length - 1;
|
var p = chars.length - 1;
|
||||||
|
|
||||||
while (p >= 0) {
|
while (p >= 0) {
|
||||||
var pp = chars[p];
|
var pp = chars[p];
|
||||||
if (pp !== ' ' && pp !== '\n' && pp !== '\r' && pp !== '\t') { // non whitespace
|
if (!isWhiteSpace(pp)) {
|
||||||
return pp;
|
return pp;
|
||||||
}
|
}
|
||||||
p--;
|
p--;
|
||||||
|
@ -33315,6 +33319,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get at the first next non-white space character
|
||||||
|
function nextNonWhiteSpace() {
|
||||||
|
var iNext = i + 1;
|
||||||
|
while (iNext < jsString.length && isWhiteSpace(jsString[iNext])) {
|
||||||
|
iNext++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return jsString[iNext];
|
||||||
|
}
|
||||||
|
|
||||||
// skip a block comment '/* ... */'
|
// skip a block comment '/* ... */'
|
||||||
function skipBlockComment () {
|
function skipBlockComment () {
|
||||||
i += 2;
|
i += 2;
|
||||||
|
@ -33401,7 +33415,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
}
|
}
|
||||||
else if (c === '\u00A0' || (c >= '\u2000' && c <= '\u200A') || c === '\u202F' || c === '\u205F' || c === '\u3000') {
|
else if (c === '\u00A0' || (c >= '\u2000' && c <= '\u200A') || c === '\u202F' || c === '\u205F' || c === '\u3000') {
|
||||||
// special white spaces (like non breaking space)
|
// special white spaces (like non breaking space)
|
||||||
chars.push(' ')
|
chars.push(' ');
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
else if (c === quote) {
|
else if (c === quote) {
|
||||||
|
@ -33419,6 +33433,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
else if (c === quoteDblLeft) {
|
else if (c === quoteDblLeft) {
|
||||||
parseString(quoteDblRight);
|
parseString(quoteDblRight);
|
||||||
}
|
}
|
||||||
|
else if (c === ',' && [']', '}'].indexOf(nextNonWhiteSpace()) !== -1) {
|
||||||
|
// skip trailing commas
|
||||||
|
i++;
|
||||||
|
}
|
||||||
else if (/[a-zA-Z_$]/.test(c) && ['{', ','].indexOf(lastNonWhitespace()) !== -1) {
|
else if (/[a-zA-Z_$]/.test(c) && ['{', ','].indexOf(lastNonWhitespace()) !== -1) {
|
||||||
// an unquoted object key (like a in '{a:2}')
|
// an unquoted object key (like a in '{a:2}')
|
||||||
parseKey();
|
parseKey();
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jsoneditor",
|
"name": "jsoneditor",
|
||||||
"version": "5.26.2",
|
"version": "5.26.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jsoneditor",
|
"name": "jsoneditor",
|
||||||
"version": "5.26.2",
|
"version": "5.26.3",
|
||||||
"main": "./index",
|
"main": "./index",
|
||||||
"description": "A web-based tool to view, edit, format, and validate JSON",
|
"description": "A web-based tool to view, edit, format, and validate JSON",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* License for the specific language governing permissions and limitations under
|
* License for the specific language governing permissions and limitations under
|
||||||
* the License.
|
* the License.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
* Copyright (c) 2011-2018 Jos de Jong, http://jsoneditoronline.org
|
||||||
*
|
*
|
||||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||||
* @version @@version
|
* @version @@version
|
||||||
|
|
Loading…
Reference in New Issue