biz9-logic 4.0.34 → 4.0.35

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='4.3.4'
1
+ VERSION='4.3.5'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -139,11 +139,11 @@ class Service{
139
139
  };
140
140
  static get_test_list=(option)=>{
141
141
  if(!option){
142
- option={service_count:19};
142
+ option={service_count:10};
143
143
  }
144
144
  let item_list=[];
145
145
  for(let a=0;a<option.service_count;a++){
146
- item_list.push(Service.get_test());
146
+ item_list.push(Service.get_test(option));
147
147
  }
148
148
  return item_list;
149
149
  };
@@ -208,11 +208,11 @@ class Event{
208
208
  };
209
209
  static get_test_list=(option)=>{
210
210
  if(!option){
211
- option={event_count:19};
211
+ option={service_count:10};
212
212
  }
213
213
  let item_list=[];
214
214
  for(let a=0;a<option.event_count;a++){
215
- item_list.push(Event.get_test());
215
+ item_list.push(Event.get_test(option));
216
216
  }
217
217
  return item_list;
218
218
  };
@@ -417,6 +417,16 @@ class Blog_Post{
417
417
  }
418
418
  return blog_post;
419
419
  };
420
+ static get_test_list=(option)=>{
421
+ if(!option){
422
+ option = {blog_post_count:10,get_value:false,get_item:false};
423
+ }
424
+ let item_list=[];
425
+ for(let a=0;a<option.blog_post_count;a++){
426
+ item_list.push(Blog_Post.get_test(option));
427
+ }
428
+ return item_list;
429
+ };
420
430
  static get_test_list_by_category = (option) =>{
421
431
  let blog_post_list = [];
422
432
  let category_count = 9;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.0.34",
3
+ "version": "4.0.35",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -49,13 +49,13 @@ describe("connect", () => {
49
49
  /* --PAGE--END */
50
50
 
51
51
  /* --BLOG_POST--START */
52
- let [category_list,blog_post_list]=Blog_Post.get_test_list_by_category({category_count:5,blog_post_count:9});
53
- Log.w('blog_post_list',blog_post_list);
52
+ //let blog_post_list=Blog_Post.get_test_list({category_count:5,blog_post_count:9,get_value:false,get_item:false});
53
+ //let [category_list,blog_post_list]=Blog_Post.get_test_list_by_category({category_count:5,blog_post_count:9});
54
+ //Log.w('blog_post_list',blog_post_list);
54
55
  //Log.w('category_list',category_list);
55
56
 
56
57
  //let blog_post = Blog_Post.get_test({item_count:9,blog_post_count:19,get_item:true,get_value:true})
57
58
  //let blog_post = Blog_Post.get_test()
58
- //let blog_post_list=Blog_Post.get_test_list({category_count:5,blog_post_count:9,get_value:true,get_item:true});
59
59
  //Log.w('blog_post_list',blog_post_list);
60
60
  //Log.w("Blog_Post",blog_post);
61
61
  //Log.w("BLog_Post_section_1",blog_post.section_1);
@@ -75,12 +75,14 @@ describe("connect", () => {
75
75
  /* --PRODUCT--END */
76
76
 
77
77
  /* --EVENT--START */
78
+ let event_list=Event.get_test_list({category_count:5,event_count:9,get_value:false,get_item:false});
78
79
  //let [category_list,event_list]=Event.get_test_list_by_category({category_count:5,event_count:9});
79
- //Log.w('event_list',event_list);
80
+ Log.w('event_list',event_list);
80
81
  //Log.w('category_list',category_list);
81
82
  /* --EVENT--END */
82
83
 
83
84
  /* --SERVICE--START */
85
+ //let service_list=Service.get_test_list({category_count:5,service_count:9,get_value:false,get_item:false});
84
86
  //let [category_list,service_list]=Service.get_test_list_by_category({category_count:5,service_count:9});
85
87
  //Log.w('service_list',service_list);
86
88
  //Log.w('category_list',category_list);