biz9-logic 3.0.17 → 3.0.20

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='3.1.7'
1
+ VERSION='3.2.0'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -8,7 +8,7 @@ const { get_new_item_main,get_data_config_main,get_cloud_url_main,get_biz_item_m
8
8
  const {Log,Test,Str} = require('biz9-utility');
9
9
 
10
10
  class DataType {
11
- static get_data_type_title = (data_type) => {
11
+ static get_title = (data_type) => {
12
12
  if(!data_type){
13
13
  return "";
14
14
  }else{
@@ -52,7 +52,7 @@ class DataType {
52
52
  static DT_USER='user_biz';
53
53
  static DT_VIDEO='video_biz';
54
54
  }
55
- class Item {
55
+ class DataItem {
56
56
  static get_new = (data_type,id) => {
57
57
  return get_new_item_main(data_type,id);
58
58
  };
@@ -116,7 +116,7 @@ class Obj {
116
116
  };
117
117
  module.exports = {
118
118
  DataType,
119
- Item,
119
+ DataItem,
120
120
  Url,
121
121
  Obj
122
122
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.0.17",
3
+ "version": "3.0.20",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const path = require('path');
2
2
  const series = require('async-series');
3
- const { Item,DataType,Url,Obj } = require('./');
3
+ const { DataItem,DataType,Url,Obj } = require('./');
4
4
  const {Log,Test} = require('biz9-utility');
5
5
  const { Scriptz }= require('biz9-scriptz');
6
6
 
@@ -28,7 +28,6 @@ const biz9_config ={
28
28
  describe("connect", () => {
29
29
  it("_connect", () => {
30
30
  series([
31
- /*
32
31
  function(call) {
33
32
  console.log('GET-BIZ9-GET-DATA-TYPE-START');
34
33
  console.log(DataType.get_data_type_title(DataType.DT_CART_ITEM));
@@ -37,6 +36,7 @@ describe("connect", () => {
37
36
  console.log('GET-BIZ9-GET-DATA-TYPE-END');
38
37
  call();
39
38
  },
39
+ /*
40
40
  function(call) {
41
41
  console.log('GET-BIZ9-CONFIG-FILE-START');
42
42
  let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});
@@ -140,7 +140,7 @@ describe("connect", () => {
140
140
  },
141
141
  function(call) {
142
142
  console.log('GET-NEW-ITEM-START');
143
- var new_item = Item.get_new(DATA_TYPE,0);
143
+ var new_item = DataItem.get_new(DATA_TYPE,0);
144
144
  console.log(new_item);
145
145
  console.log('GET-NEW-ITEM-SUCCESS');
146
146
  call()
@@ -155,7 +155,7 @@ describe("connect", () => {
155
155
  item_test.value_2 = 'my_value_2';
156
156
  item_test.field_3 = 'my_field_3';
157
157
  item_test.value_3 = 'my_value_3';
158
- let item_biz = Item.get_biz(biz9_config,item_test,{get_date:true,get_count:true,get_biz_map:true});
158
+ let item_biz = DataItem.get_biz(biz9_config,item_test,{get_date:true,get_count:true,get_biz_map:true});
159
159
  console.log(item_biz);
160
160
  console.log('SET-ITEM-BIZ-SUCCESS');
161
161
  call();