biz9-logic 4.8.166 → 4.8.168

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.8'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -1505,8 +1505,8 @@ class Url{
1505
1505
  let action_url= "main/crud/get/"+data_type + "/" + key;
1506
1506
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
1507
1507
  };
1508
- static get_parent_top = (biz9_config,data_type,id,parent_data_type,parent_id,top_data_type,top_id) => {
1509
- let action_url = "main/crud/get_parent_top/"+data_type+"/"+id+"/"+parent_data_type+ "/"+parent_id+"/"+top_data_type+ "/"+top_id;
1508
+ static get_parent_top = (biz9_config,data_type,id) => {
1509
+ let action_url = "main/crud/get_parent_top/"+data_type+"/"+id;
1510
1510
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
1511
1511
  };
1512
1512
  static search = (biz9_config,data_type) => {
@@ -1829,9 +1829,7 @@ class Schedule {
1829
1829
  };
1830
1830
  class Storage {
1831
1831
  static get = (window,key) => {
1832
- return 0;
1833
- /*
1834
- if(window){
1832
+ if(!Obj.check_is_empty(window)){
1835
1833
  if(Str.check_is_null(window.localStorage.getItem(key))){
1836
1834
  return null;
1837
1835
  }else{
@@ -1840,37 +1838,27 @@ class Storage {
1840
1838
  }else{
1841
1839
  return null;
1842
1840
  }
1843
- */
1844
1841
  }
1845
1842
  static set = (window,key,obj) => {
1846
- return 1;
1847
- /*
1848
- if(window){
1843
+ if(!Obj.check_is_empty(window)){
1849
1844
  if(window.localStorage){
1850
1845
  window.localStorage.setItem(key,JSON.stringify(obj));
1851
1846
  }
1852
1847
  }
1853
- */
1854
1848
  }
1855
1849
  static remove = (window,key) =>{
1856
- return 2;
1857
- /*
1858
- if(window){
1850
+ if(!Obj.check_is_empty(window)){
1859
1851
  if(window.localStorage){
1860
1852
  window.localStorage.removeItem(key);
1861
1853
  }
1862
1854
  }
1863
- */
1864
1855
  }
1865
1856
  static clear = (window) =>{
1866
- return 3;
1867
- /*
1868
- ifwindow){
1857
+ if(!Obj.check_is_empty(window)){
1869
1858
  if(window.localStorage){
1870
1859
  window.localStorage.clear();
1871
1860
  }
1872
1861
  }
1873
- */
1874
1862
  }
1875
1863
  }
1876
1864
  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.168",
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