stimulsoft-data-adapter 2022.3.1 → 2022.3.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.
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2022.3.1
4
- Build date: 2022.06.17
3
+ Version: 2022.3.4
4
+ Build date: 2022.08.02
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 = "2022.3.1";
11
+ result.adapterVersion = "2022.3.4";
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: 2022.3.1
4
- Build date: 2022.06.17
3
+ Version: 2022.3.4
4
+ Build date: 2022.08.02
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 = "2022.3.1";
11
+ result.adapterVersion = "2022.3.4";
12
12
  onResult(result);
13
13
  }
14
14
  catch (e) {
package/MySQLAdapter.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2022.3.1
4
- Build date: 2022.06.17
3
+ Version: 2022.3.4
4
+ Build date: 2022.08.02
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
@@ -10,7 +10,7 @@ exports.process = function (command, onResult) {
10
10
  if (connection) {
11
11
  connection.end();
12
12
  }
13
- result.adapterVersion = "2022.3.1";
13
+ result.adapterVersion = "2022.3.4";
14
14
  onResult(result);
15
15
  }
16
16
  catch (e) {
@@ -122,9 +122,14 @@ exports.process = function (command, onResult) {
122
122
  }
123
123
 
124
124
  if (recordset[recordIndex][columnName] != null && typeof recordset[recordIndex][columnName].toISOString === "function") {
125
- var dateTime = new Date(recordset[recordIndex][columnName].getTime() - (recordset[recordIndex][columnName].getTimezoneOffset() * 60000)).toISOString();
126
- recordset[recordIndex][columnName] = dateTime.replace("Z", "");
125
+ var time = recordset[recordIndex][columnName].getTime();
127
126
  types[columnIndex] = "datetime";
127
+ if (isNaN(time)) {
128
+ recordset[recordIndex][columnName] = null;
129
+ } else {
130
+ var dateTime = new Date(time - (recordset[recordIndex][columnName].getTimezoneOffset() * 60000)).toISOString();
131
+ recordset[recordIndex][columnName] = dateTime.replace("Z", "");
132
+ }
128
133
  }
129
134
 
130
135
  row[columnIndex] = recordset[recordIndex][columnName];
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2022.3.1
4
- Build date: 2022.06.17
3
+ Version: 2022.3.4
4
+ Build date: 2022.08.02
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 = "2022.3.1";
11
+ result.adapterVersion = "2022.3.4";
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: 2022.3.1
4
- Build date: 2022.06.17
3
+ Version: 2022.3.4
4
+ Build date: 2022.08.02
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
 
@@ -100,13 +100,13 @@ function getResponse(result) {
100
100
  return result
101
101
  }
102
102
  function onProcess(onResult, encryptData, result) {
103
- result.handlerVersion = "2022.3.1";
103
+ result.handlerVersion = "2022.3.4";
104
104
  result.checkVersion = true;
105
105
  result.encryptData = encryptData;
106
106
  onResult(result);
107
107
  }
108
108
 
109
- module.exports = { getCommand, process };
109
+ module.exports = { getCommand, process, getResponse };
110
110
 
111
111
  if (require.main === module) {
112
112
  var http = require('http');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stimulsoft-data-adapter",
3
- "version": "2022.3.1",
3
+ "version": "2022.3.4",
4
4
  "description": "Nodejs data adapter for Stimulsoft Reports.JS",
5
5
  "main": "index.js",
6
6
  "scripts": {