biz9-logic 4.8.82 → 4.8.84

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +9 -6
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='5.6.2'
1
+ VERSION='5.6.4'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -1472,14 +1472,17 @@ class Schedule {
1472
1472
  };
1473
1473
  class Storage {
1474
1474
  static get = (window,key) => {
1475
- console.log('aaaaaaaa');
1476
- console.log(window);
1477
- console.log(key);
1478
- console.log(window.localStorage.getItem(key));
1479
- console.log('bbbbbbbbb');
1475
+ console.log('aaaaaaa');
1480
1476
  if(window){
1481
- return Obj.check_is_empty(JSON.parse(window.localStorage.getItem(key))) ? window.localStorage.getItem(key) : null;
1477
+ console.log('bbbbbb');
1478
+ if(Str.check_is_null(window.localStorage.getItem(key))){
1479
+ console.log('cccccc');
1480
+ return null;
1481
+ }else{
1482
+ console.log('dddddd');
1483
+ return JSON.parse(window.localStorage.getItem(key));
1482
1484
  }else{
1485
+ console.log('eeeeeee');
1483
1486
  return null;
1484
1487
  }
1485
1488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.82",
3
+ "version": "4.8.84",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"