jsharmony 1.27.0 → 1.27.2

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/AppSrvTask.js CHANGED
@@ -146,9 +146,10 @@ AppSrvTask.prototype.getParamTypes = function(params){
146
146
  return rslt;
147
147
  };
148
148
 
149
- AppSrvTask.prototype.addParam = function(params, fields, key, value){
149
+ AppSrvTask.prototype.addParam = function(params, fields, key, value, keySource){
150
+ keySource = keySource || key;
150
151
  if(key in params) throw new Error('Parameter already defined: ' + key);
151
- params[key] = { name: key, value: value, type: this.getParamType(fields, key, value) };
152
+ params[key] = { name: key, value: value, type: this.getParamType(fields, keySource, value) };
152
153
  };
153
154
 
154
155
  AppSrvTask.prototype.logParams = function(model, params){
@@ -377,7 +378,7 @@ AppSrvTask.prototype.exec_sql = function(model, command, params, options, comman
377
378
  //Add to parameters
378
379
  var rowparams = _.extend({}, params);
379
380
  for(var key in row){
380
- _this.addParam(rowparams, command.fields, command.into + '.' + key, row[key]);
381
+ _this.addParam(rowparams, command.fields, command.into + '.' + key, row[key], key);
381
382
  }
382
383
 
383
384
  //Add null for empty columns
@@ -1022,7 +1023,7 @@ AppSrvTask.prototype.exec_read_csv = function(model, command, params, options, c
1022
1023
  //Add to parameters
1023
1024
  var rowparams = _.extend({}, params);
1024
1025
  for(var key in row){
1025
- _this.addParam(rowparams, command.fields, command.into + '.' + key, row[key]);
1026
+ _this.addParam(rowparams, command.fields, command.into + '.' + key, row[key], key);
1026
1027
  }
1027
1028
  //Add null for empty columns
1028
1029
  _.each(command.fields, function(field){
@@ -1118,7 +1119,7 @@ AppSrvTask.prototype.exec_js = function(model, command, params, options, command
1118
1119
  //Add to parameters
1119
1120
  var rowparams = _.extend({}, params);
1120
1121
  for(var key in row){
1121
- _this.addParam(rowparams, [], command.into + '.' + key, row[key]);
1122
+ _this.addParam(rowparams, [], command.into + '.' + key, row[key], key);
1122
1123
  }
1123
1124
 
1124
1125
  //Execute Commands
package/lib/async.js ADDED
@@ -0,0 +1,19 @@
1
+ /*
2
+ Copyright 2023 apHarmony
3
+
4
+ This file is part of jsHarmony.
5
+
6
+ jsHarmony is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ jsHarmony is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with this package. If not, see <http://www.gnu.org/licenses/>.
18
+ */
19
+ exports = module.exports = require('async');
package/lib/lodash.js ADDED
@@ -0,0 +1,19 @@
1
+ /*
2
+ Copyright 2023 apHarmony
3
+
4
+ This file is part of jsHarmony.
5
+
6
+ jsHarmony is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ jsHarmony is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public License
17
+ along with this package. If not, see <http://www.gnu.org/licenses/>.
18
+ */
19
+ exports = module.exports = require('lodash');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsharmony",
3
- "version": "1.27.0",
3
+ "version": "1.27.2",
4
4
  "description": "Rapid Application Development (RAD) Platform for Node.js Database Application Development",
5
5
  "main": "index.js",
6
6
  "scripts": {