biz9-logic 4.9.2 → 4.9.3

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 +13 -13
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='8.7.2'
1
+ VERSION='8.7.3'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -55,7 +55,7 @@ class Item_Logic {
55
55
  static get_test_list = (data_type,option) =>{
56
56
  option = Field_Logic.get_option(data_type,option?option:{});
57
57
  let item_list = [];
58
- for(let a=0;a<option.item_count+1;a++){
58
+ for(let a=0;a<parseInt(option.item_count)+1;a++){
59
59
  item_list.push(Item_Logic.get_test("Item " +String(parseInt(a+1)),data_type,option));
60
60
  }
61
61
  return item_list;
@@ -131,7 +131,7 @@ class Demo_Logic {
131
131
  if(option.categorys){
132
132
  category_title_list = option.categorys.split(',');
133
133
  }else{
134
- for(let a = 1;a<option.category_count+1;a++){
134
+ for(let a = 1;a<parseInt(option.category_count)+1;a++){
135
135
  category_title_list.push(title + " Category " +a);
136
136
  }
137
137
  }
@@ -144,7 +144,7 @@ class Demo_Logic {
144
144
  if(option.items){
145
145
  item_title_list = option.items.split(',');
146
146
  }else{
147
- for(let b = 1;b<option.item_count+1;b++){
147
+ for(let b = 1;b<parseInt(option.item_count)+1;b++){
148
148
  item_title_list.push(title+" " +Type.get_title(item.categorys[Num.get_id(item.categorys.length)].category)+" "+ b);
149
149
  }
150
150
  }
@@ -442,7 +442,7 @@ class Page_Logic {
442
442
  static get_test_list = (option) =>{
443
443
  option = Field_Logic.get_option(DataType.PAGE,option?option:{});
444
444
  let item_list = [];
445
- for(let a=0;a<option.page_count+1;a++){
445
+ for(let a=0;a<parseInt(option.page_count)+1;a++){
446
446
  item_list.push(Page_Logic.get_test( "Page " +parseInt(a+1)? !option.get_blank : "",option));
447
447
  }
448
448
  return item_list;
@@ -652,7 +652,7 @@ class Service_Logic {
652
652
  static get_test_list = (option) =>{
653
653
  option = Field_Logic.get_option(DataType.SERVICE,option?option:{});
654
654
  let item_list = [];
655
- for(let a=0;a<option.service_count+1;a++){
655
+ for(let a=0;a<parseInt(option.service_count)+1;a++){
656
656
  item_list.push(Service_Logic.get_test("Service "+String(parseInt(a+1)),option));
657
657
  }
658
658
  return item_list;
@@ -663,7 +663,7 @@ class Service_Logic {
663
663
  let category_list = Category_Logic.get_type_category_list(DataType.SERVICE,option.category_count);
664
664
  let item_count = 0;
665
665
  for(let a=0;a<category_list.length;a++){
666
- for(let b=0;b<option.service_count;b++){
666
+ for(let b=0;b<parseInt(option.service_count);b++){
667
667
  item_count++;
668
668
  let service = Service_Logic.get_test("Service "+String(parseInt(b+1)),option);
669
669
  service.category = category_list[Num.get_id(category_list.length+1)].title;
@@ -689,7 +689,7 @@ class Content_Logic {
689
689
  static get_test_list = (option) =>{
690
690
  option = Field_Logic.get_option(DataType.CONTENT,option?option:{});
691
691
  let item_list = [];
692
- for(let a=0;a<option.content_count+1;a++){
692
+ for(let a=0;a<parseInt(option.content_count)+1;a++){
693
693
  item_list.push(Content_Logic.get_test("Content " +String(parseInt(a+1)),option));
694
694
  }
695
695
  return item_list;
@@ -700,7 +700,7 @@ class Content_Logic {
700
700
  let category_list = Category_Logic.get_type_category_list(DataType.CONTENT,option.category_count);
701
701
  let item_count = 0;
702
702
  for(let a=0;a<category_list.length;a++){
703
- for(let b=0;b<option.content_count;b++){
703
+ for(let b=0;b<parseInt(option.content_count);b++){
704
704
  item_count++;
705
705
  let content = Content_Logic.get_test("Content "+String(parseInt(b+1)),option);
706
706
  content.category = category_list[Num.get_id(category_list.length+1)].title;
@@ -738,7 +738,7 @@ class Blog_Post_Logic {
738
738
  static get_test_list = (option) =>{
739
739
  option = Field_Logic.get_option(DataType.BLOG_POST,option?option:{});
740
740
  let item_list = [];
741
- for(let a=0;a<option.blog_post_count+1;a++){
741
+ for(let a=0;a<parseInt(option.blog_post_count)+1;a++){
742
742
  item_list.push(Blog_Post_Logic.get_test("Blog Post " +String(parseInt(a+1)),option));
743
743
  }
744
744
  return item_list;
@@ -749,7 +749,7 @@ class Blog_Post_Logic {
749
749
  let category_list = Category_Logic.get_type_category_list(DataType.BLOG_POST,option.category_count);
750
750
  let item_count = 0;
751
751
  for(let a=0;a<category_list.length;a++){
752
- for(let b=0;b<option.blog_post_count;b++){
752
+ for(let b=0;b<parseInt(option.blog_post_count);b++){
753
753
  item_count++;
754
754
  let blog_post = Blog_Post_Logic.get_test("Blog Post "+String(parseInt(b+1)),option);
755
755
  blog_post.category = category_list[Num.get_id(category_list.length+1)].title;
@@ -840,7 +840,7 @@ class Event_Logic {
840
840
  static get_test_list = (option) =>{
841
841
  option = Field_Logic.get_option(DataType.EVENT,option?option:{});
842
842
  let item_list = [];
843
- for(let a=0;a<option.event_count+1;a++){
843
+ for(let a=0;a<parseInt(option.event_count)+1;a++){
844
844
  item_list.push(Event_Logic.get_test("Event "+String(parseInt(a+1)),option));
845
845
  }
846
846
  return item_list;
@@ -851,7 +851,7 @@ class Event_Logic {
851
851
  let category_list = Category_Logic.get_type_category_list(DataType.EVENT,option.category_count);
852
852
  let item_count = 0;
853
853
  for(let a=0;a<category_list.length;a++){
854
- for(let b=0;b<option.event_count;b++){
854
+ for(let b=0;b<parseInt(option.event_count);b++){
855
855
  item_count++;
856
856
  let event = Event_Logic.get_test("Event "+String(parseInt(b+1)),option);
857
857
  event.category = category_list[Num.get_id(category_list.length+1)].title;
@@ -967,7 +967,7 @@ class Field_Logic {
967
967
  return item;
968
968
  }
969
969
  static get_value_list(item,option){
970
- for(let b=0;b<option.value_count;b++){
970
+ for(let b=0;b<parseInt(option.value_count);b++){
971
971
  if(option.get_blank == false){
972
972
  item['value_'+String(b+1)] = 'value ' + String(b+1);
973
973
  item['field_'+String(b+1)] = Str.get_title_url(item['value_'+String(b+1)]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.9.2",
3
+ "version": "4.9.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"