@sap/async-xsjs 2.2.0 → 2.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,29 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
7
7
 
8
+ <a name="2.3.1"></a>
9
+ ## 2.3.1 - 2026-06-15
10
+
11
+ ### Updated
12
+ - Update nodemailer to 8.0.11
13
+ - update yauzl to 3.4.0
14
+ - update @sap/hdbext to 8.1.13
15
+ - pinned @sap/xsodata version to 8.3.0
16
+ - Updated @sap/instance-manager to 5.2.3
17
+ - update lodash version to 4.18.1
18
+ - pinned @sap/jobs-client version to 1.8.5
19
+ - Added node 18 support & tests
20
+
21
+ <a name="2.3.0"></a>
22
+ ## 2.3.0 - 2026-06-02
23
+
24
+ ### Updated
25
+ - update @sap/node-jwt version to 1.6.29
26
+ - update @sap/jobs-client to 1.9.1
27
+ - update yauzl version to 3.3.2
28
+ ### Added
29
+ - Added node 24 support & tests.
30
+
8
31
  <a name="2.2.0"></a>
9
32
  ## 2.2.0 - 2026-05-18
10
33
 
package/lib/routes.js CHANGED
@@ -95,6 +95,8 @@ exports.error = function (err, req, res, next) { // eslint-disable-line no-unuse
95
95
  if (process.env.NODE_ENV === 'development') {
96
96
  title = status + ' ' + err.message;
97
97
  stacktrace = err.stack || '';
98
+ } else if (status >= 400 && status < 500 && err.message) {
99
+ title = status + ' ' + err.message;
98
100
  } else {
99
101
  // do not reveal internal details to the client
100
102
  title = status + ' ' + http.STATUS_CODES[status];
@@ -396,7 +396,7 @@ Statement.prototype.setText = Statement.prototype.setClob;
396
396
  Statement.prototype.setDate = function (columnIndex, value, format) {
397
397
  argumentsUtil.validateSetterArgs(arguments, 2);
398
398
  argumentsUtil.validateDateTime(value);
399
- if (!util.isDate(value)) {
399
+ if (!util.types.isDate(value)) {
400
400
  value = parser.parseDateTime(value, format);
401
401
  }
402
402
  switch (this._parameterInfo[columnIndex - 1].nativeType) {
@@ -435,7 +435,7 @@ Statement.prototype.setDate = function (columnIndex, value, format) {
435
435
  Statement.prototype.setTime = function (columnIndex, value, format) {
436
436
  argumentsUtil.validateSetterArgs(arguments, 2);
437
437
  argumentsUtil.validateDateTime(value);
438
- if (!util.isDate(value)) {
438
+ if (!util.types.isDate(value)) {
439
439
  value = parser.parseDateTime(value, format);
440
440
  }
441
441
  switch (this._parameterInfo[columnIndex - 1].nativeType) {
@@ -471,7 +471,7 @@ Statement.prototype.setTime = function (columnIndex, value, format) {
471
471
  Statement.prototype.setTimestamp = function (columnIndex, value, format) {
472
472
  argumentsUtil.validateSetterArgs(arguments, 2);
473
473
  argumentsUtil.validateDateTime(value);
474
- if (!util.isDate(value)) {
474
+ if (!util.types.isDate(value)) {
475
475
  value = parser.parseDateTime(value, format);
476
476
  }
477
477
  switch (this._parameterInfo[columnIndex - 1].nativeType) {
@@ -133,10 +133,10 @@ async function configure(config) {
133
133
  }
134
134
 
135
135
  // for now we accept only Date objects until we implement date parsing compatible to XS1
136
- if (!util.isDate(startTime)) {
136
+ if (!util.types.isDate(startTime)) {
137
137
  throw new Error('Job.configure: startTime object parameter required');
138
138
  }
139
- if (!util.isDate(endTime)) {
139
+ if (!util.types.isDate(endTime)) {
140
140
  throw new Error('Job.configure: endTime object parameter required');
141
141
  }
142
142
 
@@ -171,7 +171,7 @@ function convertTime(time, propName) {
171
171
  if (time === null) {
172
172
  return null;
173
173
  }
174
- if (util.isDate(time)) {
174
+ if (util.types.isDate(time)) {
175
175
  return {
176
176
  date: time.toISOString()
177
177
  };
@@ -225,4 +225,4 @@ function updateJobSchedulePromise(scheduler, req) {
225
225
  resolve(result);
226
226
  });
227
227
  });
228
- }
228
+ }