@sap/async-xsjs 1.0.7 → 2.0.0

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,27 @@ 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.0.0"></a>
9
+ ## 2.0.0 - 2023-12-08
10
+
11
+ ### Added
12
+ - Added Node.js 20.x support.
13
+
14
+ ### Updated
15
+ - Dependent node module versions updated to latest versions to support Node 20.
16
+ - Updated axios version to 1.6.2 to fix the security vulnerability.
17
+
18
+ ### Removed
19
+ - Removed support Node.js 16.x
20
+ - Removed text-mining and text-analysis features.
21
+
22
+ <a name="1.0.8"></a>
23
+ ## 1.0.8 - 2023-10-20
24
+
25
+ ### Fixed
26
+ - Fixed Sql script job runner for xsjob procedure
27
+
28
+
8
29
  <a name="1.0.7"></a>
9
30
  ## 1.0.7 - 2023-10-03
10
31
 
@@ -19,7 +19,7 @@ SqlScriptJobRunner.prototype.run = async function (job, inputParams) {
19
19
  client.setAutoCommit(true);
20
20
 
21
21
  try {
22
- await this._execProc(client, hanaOptions.schema, job.action, inputParams);
22
+ await this._execProc(client, hanaOptions.schema, this._defineSqlProcName(job.action), inputParams);
23
23
  } finally {
24
24
  client && client.close(function () {
25
25
  });
@@ -27,6 +27,10 @@ SqlScriptJobRunner.prototype.run = async function (job, inputParams) {
27
27
  };
28
28
 
29
29
  SqlScriptJobRunner.prototype._execProc = function (client, schema, procName, inputParams) {
30
+ if (typeof(procName) != 'string'){
31
+ throw new Error("procName must be of type String")
32
+ }
33
+ inputParams = Object.values(inputParams);
30
34
  return new Promise((resolve, reject) => {
31
35
  hdbext.loadProcedurePromise(client, schema, procName)
32
36
  .then((procedure) => {
package/lib/logging.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var logging = require('@sap/logging');
4
4
 
5
5
  var CATEGORY = '/CompatibilityLayer';
6
- var appContext = logging.createAppContext({ csnComponent: 'BC-XS-JS' });
6
+ var appContext = logging.createAppContext({ csnComponent: 'BC-XS-ASYNCJS' });
7
7
  var logContext = appContext.createLogContext({ id: '' });
8
8
  var logger = logContext.getLogger(CATEGORY);
9
9
  logger.warn = logger.warning;
package/lib/runtime.js CHANGED
@@ -318,7 +318,6 @@ Runtime.prototype.createBaseContext = function (req, locale, traceOptions) {
318
318
  var dbReqOptions = hanaDbOptions.forRequest(req, locale);
319
319
  context.db = new xs.db.DB(dbReqOptions);
320
320
  context.hdb = new xs.db.HDB(dbReqOptions, traceObject._tracer);
321
- context.text = xs.text.create(context.db);
322
321
  }
323
322
 
324
323
  var secStoreDbOptions = this.get('secureStoreDbOptions');
package/lib/xsjs/index.js CHANGED
@@ -10,4 +10,3 @@ exports.security = require('./security');
10
10
  exports.trace = require('./trace/trace');
11
11
  exports.util = require('./util');
12
12
  exports.require = require('./require');
13
- exports.text = require('./text');