biz9-logic 4.0.37 → 4.0.38

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +11 -1
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='4.3.7'
1
+ VERSION='4.3.8'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -80,7 +80,16 @@ class Product{
80
80
  }
81
81
  return product;
82
82
  };
83
-
83
+ static get_test_list=(option)=>{
84
+ if(!option){
85
+ option={product_count:10};
86
+ }
87
+ let item_list=[];
88
+ for(let a=0;a<option.product_count;a++){
89
+ item_list.push(Product.get_test(option));
90
+ }
91
+ return item_list;
92
+ };
84
93
  static get_test_list_by_category = (option) =>{
85
94
  let product_list = [];
86
95
  let category_count = 9;
@@ -108,6 +117,7 @@ class Product{
108
117
  }
109
118
  return [category_list,product_list]
110
119
  };
120
+
111
121
  }
112
122
  class Service{
113
123
  static get_test = (option) =>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.0.37",
3
+ "version": "4.0.38",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"