zalo-js-bridge
Advanced tools
Comparing version 1.12.2 to 1.12.3
# Base Library Update Logs | ||
## 1.12.3 (2021-08-20) | ||
### Bug Fixes | ||
* can not parse json 740cf12 | ||
## 1.12.2 (2021-08-17) | ||
@@ -4,0 +11,0 @@ |
@@ -107,4 +107,5 @@ "use strict"; | ||
exports.parseJSON = (str) => { | ||
const formattedStr = str.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t"); | ||
if (exports.isObject(JSON) && JSON.parse && exports.isString(str)) { | ||
return JSON.parse(str, (key, value) => { | ||
return JSON.parse(formattedStr, (key, value) => { | ||
return value; | ||
@@ -111,0 +112,0 @@ }); |
{ | ||
"name": "zalo-js-bridge", | ||
"description": "A Javascript Framework for WebApp", | ||
"version": "1.12.2", | ||
"version": "1.12.3", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
91081
2264