stimulsoft-data-adapter 2025.1.5 → 2025.1.6

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,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2025.1.5
4
- Build date: 2025.02.11
3
+ Version: 2025.1.6
4
+ Build date: 2025.02.28
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
@@ -11,7 +11,7 @@ exports.process = function (command, onResult) {
11
11
  var end = function (result) {
12
12
  try {
13
13
  if (db) db.detach();
14
- result.adapterVersion = "2025.1.5";
14
+ result.adapterVersion = "2025.1.6";
15
15
  onResult(result);
16
16
  }
17
17
  catch (e) {
package/MSSQLAdapter.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2025.1.5
4
- Build date: 2025.02.11
3
+ Version: 2025.1.6
4
+ Build date: 2025.02.28
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 = "2025.1.5";
11
+ result.adapterVersion = "2025.1.6";
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: 2025.1.5
4
- Build date: 2025.02.11
3
+ Version: 2025.1.6
4
+ Build date: 2025.02.28
5
5
  License: https://www.stimulsoft.com/en/licensing/reports
6
6
  */
7
7
  exports.process = function (command, onResult) {
@@ -127,7 +127,7 @@ exports.process = function (command, onResult) {
127
127
  }
128
128
 
129
129
  client.close();
130
- result.adapterVersion = "2025.1.5";
130
+ result.adapterVersion = "2025.1.6";
131
131
  onResult(result);
132
132
  });
133
133
  }
package/MySQLAdapter.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2025.1.5
4
- Build date: 2025.02.11
3
+ Version: 2025.1.6
4
+ Build date: 2025.02.28
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 = "2025.1.5";
16
+ result.adapterVersion = "2025.1.6";
17
17
  onResult(result);
18
18
  }
19
19
  }
package/OracleAdapter.js CHANGED
@@ -86,8 +86,9 @@ exports.process = function (command, onResult) {
86
86
 
87
87
  for (var columnIndex in record) {
88
88
  var value = record[columnIndex];
89
- if (value instanceof Uint8Array) value = Buffer.from(result.rows[recordIndex][columnIndex]).toString('base64');
90
- if (value instanceof Date) value = new Date(value.getTime() - (value.getTimezoneOffset() * 60000)).toISOString();;
89
+ if (value instanceof Uint8Array) value = Buffer.from(value).toString('base64');
90
+ else if (value instanceof Date) value = new Date(value.getTime() - (value.getTimezoneOffset() * 60000)).toISOString();
91
+ else if (value != null && typeof value == "object") value = value.toString();
91
92
 
92
93
  row.push(value);
93
94
  }
@@ -189,7 +190,9 @@ exports.process = function (command, onResult) {
189
190
  command.connectionStringInfo = getConnectionStringInfo(command.connectionString);
190
191
  var oracledb = require('oracledb');
191
192
  try {
192
- oracledb.initOracleClient();
193
+ var settings = require("oracledb/lib/settings");
194
+ if (settings.thinDriverInitialized == false)
195
+ oracledb.initOracleClient();
193
196
  }
194
197
  catch (e) {
195
198
  var utils = require("oracledb/lib/thin/util.js");
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  Stimulsoft.Reports.JS
3
- Version: 2025.1.5
4
- Build date: 2025.02.11
3
+ Version: 2025.1.6
4
+ Build date: 2025.02.28
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 = "2025.1.5";
11
+ result.adapterVersion = "2025.1.6";
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: 2025.1.5
4
- Build date: 2025.02.11
3
+ Version: 2025.1.6
4
+ Build date: 2025.02.28
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 = "2025.1.5";
78
+ result.handlerVersion = "2025.1.6";
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": "2025.1.5",
3
+ "version": "2025.1.6",
4
4
  "description": "Nodejs data adapter for Stimulsoft Reports.JS",
5
5
  "main": "index.js",
6
6
  "scripts": {