biz9-logic 3.0.1 → 3.0.4

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,8 +1,7 @@
1
- VERSION='3.0.1'
1
+ VERSION='3.0.4'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
5
5
  APP_TITLE_ID='test_app_title_id';
6
- CLOUD_URL="http://localhost";
7
- CLOUD_PORT_ID="1901";
6
+ URL="http://localhost";
8
7
 
package/main.js CHANGED
@@ -5,15 +5,12 @@ License GNU General Public License v3.0
5
5
  Description: BiZ9 Framework: Logic - Main
6
6
  */
7
7
 
8
- const moment = require('moment');
9
8
  const { DateTime } = require('biz9-utility');
10
- const fs = require('fs');
11
9
  const biz9_config_local=__dirname+"/../../"+"biz9_config";
12
10
 
13
11
  const get_cloud_filter_obj_main = (data_type,filter,sort_by,page_current,page_size) => {
14
12
  return {data_type:data_type,filter:filter,sort_by:sort_by,page_current:page_current,page_size:page_size};
15
13
  }
16
-
17
14
  const get_new_item_main = (data_type,id) => {
18
15
  if(!id){
19
16
  id=0;
@@ -74,8 +71,8 @@ const get_biz_item_main=(biz9_config,item,options) =>{
74
71
  if(options.get_date){
75
72
  let no_date_str='';
76
73
  if(!item.date_create){
77
- item.date_create= new moment().toISOString();
78
- item.date_save= new moment().toISOString();
74
+ item.date_create = DateTime.get_new_date();
75
+ item.date_save = DateTime.get_new_date();
79
76
  }
80
77
  item.date_obj={
81
78
  pretty_create: (item.date_create) ? DateTime.get_pretty(item.date_create) : no_date_str,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.0.1",
3
+ "version": "3.0.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -9,8 +9,8 @@
9
9
  "license": "MIT",
10
10
  "dependencies": {
11
11
  "async-series": "^0.0.1",
12
- "biz9-scriptz": "^5.5.3",
13
- "biz9-utility": "^2.0.24",
12
+ "biz9-scriptz": "^5.5.4",
13
+ "biz9-utility": "^2.0.27",
14
14
  "jest": "^29.7.0"
15
15
  },
16
16
  "repository": {
package/test.js CHANGED
@@ -9,8 +9,7 @@ const { Scriptz }= require('biz9-scriptz');
9
9
  const ID='f23c2372-df8e-4c09-a919-677fe32ba0bb';
10
10
  const APP_TITLE_ID='cool_bean';
11
11
  const DATA_TYPE='dt_blank';
12
- const PORT_ID="1901";
13
- const URL="http://localhost:"+PORT_ID;
12
+ const URL="http://localhost:1901";
14
13
  const biz9_config ={
15
14
  SERVICE_HOST_TYPE:'multiple',
16
15
  APP_TITLE_ID:APP_TITLE_ID,