stimulsoft-data-adapter 2024.2.5 → 2024.3.1

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.
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2024.2.5
4
- Build date: 2024.05.06
3
+ Version: 2024.3.1
4
+ Build date: 2024.06.13
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
8
8
  var end = function (result) {
9
9
  try {
10
10
  if (db) db.detach();
11
- result.adapterVersion = "2024.2.5";
11
+ result.adapterVersion = "2024.3.1";
12
12
  onResult(result);
13
13
  }
14
14
  catch (e) {
package/MSSQLAdapter.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2024.2.5
4
- Build date: 2024.05.06
3
+ Version: 2024.3.1
4
+ Build date: 2024.06.13
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
8
8
  var end = function (result) {
9
9
  try {
10
10
  if (connection) connection.close();
11
- result.adapterVersion = "2024.2.5";
11
+ result.adapterVersion = "2024.3.1";
12
12
  onResult(result);
13
13
  }
14
14
  catch (e) {
package/MongoDBAdapter.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2024.2.5
4
- Build date: 2024.05.06
3
+ Version: 2024.3.1
4
+ Build date: 2024.06.13
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
@@ -126,7 +126,7 @@ exports.process = function (command, onResult) {
126
126
  }
127
127
 
128
128
  client.close();
129
- result.adapterVersion = "2024.2.5";
129
+ result.adapterVersion = "2024.3.1";
130
130
  onResult(result);
131
131
  });
132
132
  }
package/MySQLAdapter.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2024.2.5
4
- Build date: 2024.05.06
3
+ Version: 2024.3.1
4
+ Build date: 2024.06.13
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
@@ -13,7 +13,7 @@ exports.process = function (command, onResult) {
13
13
  catch (e) {
14
14
  }
15
15
  finally {
16
- result.adapterVersion = "2024.2.5";
16
+ result.adapterVersion = "2024.3.1";
17
17
  onResult(result);
18
18
  }
19
19
  }
package/OracleAdapter.js CHANGED
@@ -150,10 +150,10 @@ exports.process = function (command, onResult) {
150
150
  var parameters = null;
151
151
  var result = "";
152
152
 
153
- if (baseSqlCommand != null && baseSqlCommand.indexOf("@") > -1) {
154
- while (baseSqlCommand.indexOf("@") >= 0 && baseParameters != null && baseParameters.length > 0) {
155
- result += baseSqlCommand.substring(0, baseSqlCommand.indexOf("@"));
156
- baseSqlCommand = baseSqlCommand.substring(baseSqlCommand.indexOf("@") + 1);
153
+ if (baseSqlCommand != null && baseSqlCommand.indexOf(":") > -1) {
154
+ while (baseSqlCommand.indexOf(":") >= 0 && baseParameters != null && baseParameters.length > 0) {
155
+ result += baseSqlCommand.substring(0, baseSqlCommand.indexOf(":"));
156
+ baseSqlCommand = baseSqlCommand.substring(baseSqlCommand.indexOf(":") + 1);
157
157
 
158
158
  var parameterName = "";
159
159
 
@@ -172,13 +172,13 @@ exports.process = function (command, onResult) {
172
172
  var parameterValue = parameter.value;
173
173
  if (parameter.typeGroup == "number") parameterValue = +parameter.value;
174
174
  else if (parameter.typeGroup == "datetime") parameterValue = new Date(parameter.value);
175
- if (parameters == null) parameter = {};
175
+ else if (parameter.typeGroup == "date") parameterValue = new Date(parameter.value);
176
+ else if (parameter.typeGroup == "time") parameterValue = new Date(parameter.value);
177
+ if (parameters == null) parameters = {};
176
178
  parameters[parameter.name] = parameterValue;
177
179
  }
178
- result += ':' + parameter.name;
179
180
  }
180
- else
181
- result += "@" + parameterName;
181
+ result += ':' + parameter.name;
182
182
  }
183
183
  }
184
184
 
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2024.2.5
4
- Build date: 2024.05.06
3
+ Version: 2024.3.1
4
+ Build date: 2024.06.13
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
8
8
  var end = function (result) {
9
9
  try {
10
10
  if (client) client.end();
11
- result.adapterVersion = "2024.2.5";
11
+ result.adapterVersion = "2024.3.1";
12
12
  onResult(result);
13
13
  }
14
14
  catch (e) {
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2024.2.5
4
- Build date: 2024.05.06
3
+ Version: 2024.3.1
4
+ Build date: 2024.06.13
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
 
@@ -75,7 +75,7 @@ function getResponse(result) {
75
75
  return result
76
76
  }
77
77
  function onProcess(onResult, encryptData, result) {
78
- result.handlerVersion = "2024.2.5";
78
+ result.handlerVersion = "2024.3.1";
79
79
  result.checkVersion = true;
80
80
  result.encryptData = encryptData;
81
81
  onResult(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stimulsoft-data-adapter",
3
- "version": "2024.2.5",
3
+ "version": "2024.3.1",
4
4
  "description": "Nodejs data adapter for Stimulsoft Reports.JS",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,12 +11,12 @@
11
11
  "url": "https://github.com/stimulsoft/DataAdapters.JS/tree/main/NodejsDataAdapters"
12
12
  },
13
13
  "dependencies": {
14
- "mongodb": "^6.3.0",
14
+ "mongodb": "^6.7.0",
15
15
  "mssql": "^6.2.1",
16
- "mysql2": "^3.9.1",
16
+ "mysql2": "^3.10.0",
17
17
  "node-firebird": "^1.1.8",
18
- "oracledb": "^6.3.0",
19
- "pg": "^8.11.3",
18
+ "oracledb": "^6.5.1",
19
+ "pg": "^8.12.0",
20
20
  "tzdata": "^1.0.40"
21
21
  },
22
22
  "files": [