secure-ls2 2.1.7 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage/clover.xml +6 -9
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +10 -10
- package/coverage/lcov.info +6 -9
- package/dist/secure-ls2.esm.js +5498 -0
- package/dist/secure-ls2.esm.js.map +1 -0
- package/dist/secure-ls2.esm.min.js +33 -0
- package/dist/secure-ls2.esm.min.js.map +1 -0
- package/dist/secure-ls2.js +11 -10
- package/dist/secure-ls2.js.map +1 -1
- package/dist/secure-ls2.min.js +2 -2
- package/dist/secure-ls2.min.js.map +1 -1
- package/package.json +21 -14
package/dist/secure-ls2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* secure-ls2 - v2.1.
|
|
2
|
+
* secure-ls2 - v2.1.9
|
|
3
3
|
* URL - https://github.com/softvar/secure-ls
|
|
4
4
|
*
|
|
5
5
|
* The MIT License (MIT)
|
|
@@ -128,7 +128,8 @@ const Base64 = {
|
|
|
128
128
|
let t = '';
|
|
129
129
|
let n = 0;
|
|
130
130
|
let r, c2, c3;
|
|
131
|
-
|
|
131
|
+
|
|
132
|
+
// r = c2 = 0;
|
|
132
133
|
while (n < e.length) {
|
|
133
134
|
r = e.charCodeAt(n);
|
|
134
135
|
if (r < 128) {
|
|
@@ -346,7 +347,7 @@ class SecureLS {
|
|
|
346
347
|
return _utils__WEBPACK_IMPORTED_MODULE_2__["default"].extractKeyNames(data) || [];
|
|
347
348
|
}
|
|
348
349
|
get(key, isAllKeysData) {
|
|
349
|
-
let decodedData
|
|
350
|
+
let decodedData;
|
|
350
351
|
let jsonData = '';
|
|
351
352
|
if (!_utils__WEBPACK_IMPORTED_MODULE_2__["default"].is(key)) {
|
|
352
353
|
_utils__WEBPACK_IMPORTED_MODULE_2__["default"].warn(_constants__WEBPACK_IMPORTED_MODULE_0__["default"].WarningEnum.KEY_NOT_PROVIDED);
|
|
@@ -383,7 +384,7 @@ class SecureLS {
|
|
|
383
384
|
return jsonData;
|
|
384
385
|
}
|
|
385
386
|
set(key, data) {
|
|
386
|
-
let dataToStore
|
|
387
|
+
let dataToStore;
|
|
387
388
|
if (!_utils__WEBPACK_IMPORTED_MODULE_2__["default"].is(key)) {
|
|
388
389
|
_utils__WEBPACK_IMPORTED_MODULE_2__["default"].warn(_constants__WEBPACK_IMPORTED_MODULE_0__["default"].WarningEnum.KEY_NOT_PROVIDED);
|
|
389
390
|
return;
|
|
@@ -5423,12 +5424,6 @@ if (true) {
|
|
|
5423
5424
|
/******/ if (cachedModule !== undefined) {
|
|
5424
5425
|
/******/ return cachedModule.exports;
|
|
5425
5426
|
/******/ }
|
|
5426
|
-
/******/ // Check if module exists (development only)
|
|
5427
|
-
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
5428
|
-
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
5429
|
-
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
5430
|
-
/******/ throw e;
|
|
5431
|
-
/******/ }
|
|
5432
5427
|
/******/ // Create a new module (and put it into the cache)
|
|
5433
5428
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
5434
5429
|
/******/ // no module.id needed
|
|
@@ -5437,6 +5432,12 @@ if (true) {
|
|
|
5437
5432
|
/******/ };
|
|
5438
5433
|
/******/
|
|
5439
5434
|
/******/ // Execute the module function
|
|
5435
|
+
/******/ if (!(moduleId in __webpack_modules__)) {
|
|
5436
|
+
/******/ delete __webpack_module_cache__[moduleId];
|
|
5437
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
5438
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
5439
|
+
/******/ throw e;
|
|
5440
|
+
/******/ }
|
|
5440
5441
|
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
5441
5442
|
/******/
|
|
5442
5443
|
/******/ // Return the exports of the module
|