Comparing version 1.0.32 to 1.0.33
@@ -1628,2 +1628,28 @@ /* | ||
} | ||
base64en(_strdata, _json = true) { | ||
let rv = null; | ||
try { | ||
if (_json) { | ||
_strdata = JSON.stringify(_strdata); | ||
} | ||
rv = btoa(unescape(encodeURIComponent(_strdata))); | ||
} catch (e) { | ||
} | ||
return rv; | ||
} | ||
base64de(_cryptStr, _json = true) { | ||
let rv = null; | ||
try { | ||
rv = decodeURIComponent(escape(atob(_cryptStr))); | ||
if (_json) { | ||
rv = JSON.parse(rv); | ||
} | ||
} catch (e) { | ||
} | ||
return rv; | ||
} | ||
} |
{ | ||
"name": "px-core", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "px-core offers many short uses to make javascript easy to use. For example, it includes ajax, crypto, search, insert, delete and sort in json, Array and String prototypes, input - replace and focus events, and many utilities.", | ||
@@ -5,0 +5,0 @@ "main": "core.js", |
123204
2855