biz9-logic 4.8.166 → 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.6'
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,9 +1829,8 @@ class Schedule {
1829
1829
  };
1830
1830
  class Storage {
1831
1831
  static get = (window,key) => {
1832
- return 0;
1833
- /*
1834
- if(window){
1832
+ console.log('Storage.GET');
1833
+ if(!Obj.check_is_empty(window)){
1835
1834
  if(Str.check_is_null(window.localStorage.getItem(key))){
1836
1835
  return null;
1837
1836
  }else{
@@ -1840,37 +1839,30 @@ class Storage {
1840
1839
  }else{
1841
1840
  return null;
1842
1841
  }
1843
- */
1844
1842
  }
1845
1843
  static set = (window,key,obj) => {
1846
- return 1;
1847
- /*
1848
- if(window){
1844
+ console.log('Storage.SET');
1845
+ if(!Obj.check_is_empty(window)){
1849
1846
  if(window.localStorage){
1850
1847
  window.localStorage.setItem(key,JSON.stringify(obj));
1851
1848
  }
1852
1849
  }
1853
- */
1854
1850
  }
1855
1851
  static remove = (window,key) =>{
1856
- return 2;
1857
- /*
1858
- if(window){
1852
+ console.log('Storage.REMOVE');
1853
+ if(!Obj.check_is_empty(window)){
1859
1854
  if(window.localStorage){
1860
1855
  window.localStorage.removeItem(key);
1861
1856
  }
1862
1857
  }
1863
- */
1864
1858
  }
1865
1859
  static clear = (window) =>{
1866
- return 3;
1867
- /*
1868
- ifwindow){
1860
+ console.log('Storage.CLEAR');
1861
+ if(!Obj.check_is_empty(window)){
1869
1862
  if(window.localStorage){
1870
1863
  window.localStorage.clear();
1871
1864
  }
1872
1865
  }
1873
- */
1874
1866
  }
1875
1867
  }
1876
1868
  class User_Logic {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.166",
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