biz9-logic 4.8.164 → 4.8.167

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/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.4.4'
1
+ VERSION='6.4.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -1829,7 +1829,8 @@ class Schedule {
1829
1829
  };
1830
1830
  class Storage {
1831
1831
  static get = (window,key) => {
1832
- if(window){
1832
+ console.log('Storage.GET');
1833
+ if(!Obj.check_is_empty(window)){
1833
1834
  if(Str.check_is_null(window.localStorage.getItem(key))){
1834
1835
  return null;
1835
1836
  }else{
@@ -1840,21 +1841,24 @@ class Storage {
1840
1841
  }
1841
1842
  }
1842
1843
  static set = (window,key,obj) => {
1843
- if(window){
1844
+ console.log('Storage.SET');
1845
+ if(!Obj.check_is_empty(window)){
1844
1846
  if(window.localStorage){
1845
1847
  window.localStorage.setItem(key,JSON.stringify(obj));
1846
1848
  }
1847
1849
  }
1848
1850
  }
1849
1851
  static remove = (window,key) =>{
1850
- if(window){
1852
+ console.log('Storage.REMOVE');
1853
+ if(!Obj.check_is_empty(window)){
1851
1854
  if(window.localStorage){
1852
1855
  window.localStorage.removeItem(key);
1853
1856
  }
1854
1857
  }
1855
1858
  }
1856
1859
  static clear = (window) =>{
1857
- if(window){
1860
+ console.log('Storage.CLEAR');
1861
+ if(!Obj.check_is_empty(window)){
1858
1862
  if(window.localStorage){
1859
1863
  window.localStorage.clear();
1860
1864
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.164",
3
+ "version": "4.8.167",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -430,9 +430,9 @@ describe("connect", () => {
430
430
 
431
431
 
432
432
  function(call) {
433
- console.log('GET_START_STORAGE-START');
434
- Log.w('storage-start',Storage.set(Num.get_id()));
435
- console.log('GET_START_STORAGE-END');
433
+ //console.log('GET_START_STORAGE-START');
434
+ //Log.w('storage-start',Storage.set(Num.get_id()));
435
+ //console.log('GET_START_STORAGE-END');
436
436
  //call();
437
437
  },
438
438