biz9-logic 4.8.215 → 4.8.219

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.9.5'
1
+ VERSION='6.9.9'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -1491,7 +1491,7 @@ class Favorite_Url {
1491
1491
  }
1492
1492
  class Item_Url {
1493
1493
  static post_cms = (app_id,url,data_type,id,params) => {
1494
- let action_url = "item/post_cms_item/"+data_type+"/"+id;
1494
+ let action_url = "item/post_cms/"+data_type+"/"+id;
1495
1495
  return get_cloud_url_main(app_id,url,action_url,params);
1496
1496
  };
1497
1497
  }
@@ -1930,6 +1930,12 @@ class User_Logic {
1930
1930
  }
1931
1931
  return country_state_city;
1932
1932
  }
1933
+ static get_full_name(first_name,last_name){
1934
+ let str_first_name = !Str.check_is_null(first_name) ? first_name : "";
1935
+ let str_last_name = !Str.check_is_null(last_name) ? last_name : "";
1936
+ return !Str.check_is_null(String(str_first_name + " " + str_last_name)) ? String(str_first_name + " " + str_last_name).trim() : "N/A";
1937
+
1938
+ }
1933
1939
  static get_guest(){
1934
1940
  return DataItem.get_new(DataType.USER,0,{is_guest:true,title_url:'guest',first_name:'Guest',last_name:'User',email:'guest@email.com',title:"Guest",country:"United States"});
1935
1941
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.215",
3
+ "version": "4.8.219",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -31,9 +31,11 @@ describe("connect", () => {
31
31
  series([
32
32
 
33
33
  function(call) {
34
- console.log('USER-START');
35
- console.log(User_Logic.get_guest());
36
- console.log('USER-END');
34
+ console.log('FULL-NAME-START');
35
+ console.log(User_Logic.get_full_name('',''));
36
+
37
+ console.log('FULL-NAME-END');
38
+
37
39
 
38
40
  //console.log('PRODUCT-URL-START');
39
41
  //console.log(Product_Url.search('cool','google.com'));