@sap/async-xsjs 1.0.4 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ 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="1.0.6"></a>
9
+ ## 1.0.6 - 2023-06-23
10
+
11
+ ### Updated
12
+ - Updated hana-client to v2.17.14
13
+ - Updated hdbext to v7.7.5
14
+
15
+ <a name="1.0.5"></a>
16
+ ## 1.0.5 - 2023-06-08
17
+
18
+ ### Fixed
19
+ - Replace deprecated _request_ with _axios_ v1.3.5
20
+
21
+
8
22
  <a name="1.0.4"></a>
9
23
  ## 1.0.4 - 2023-03-28
10
24
 
@@ -2,12 +2,15 @@
2
2
 
3
3
  var util = require('util');
4
4
  var qs = require('querystring');
5
- var requestLib = require('request');
5
+ var axios = require('axios');
6
6
  var _ = require('lodash');
7
7
  var SAPPassport = require('@sap/e2e-trace').Passport;
8
8
  var WebResponse = require('../../web/WebResponse');
9
+ var CRLF = require('../../constants').WEB.MESSAGES.LINE_BREAK;
9
10
  var MultipartResponseBuilder = require('../../web/utils/MultipartResponseBuilder');
10
11
  var contentTypeParser = require('content-type');
12
+ var stream = require('stream');
13
+ var URL = require('url').URL;
11
14
 
12
15
  var methodMapping = {
13
16
  // -1: 'INVALID',
@@ -65,15 +68,19 @@ Client.prototype.request = function (arg0, arg1, proxyOpt) {
65
68
  if (this._timeoutInMilliseconds) {
66
69
  options.timeout = this._timeoutInMilliseconds;
67
70
  }
68
- this._response = new Promise ((resolve, reject) => {
69
- requestLib(options, function(err, response) {
70
- if (err) {
71
- reject(err);
72
- return;
73
- }
74
- resolve(response);
75
- });
76
- });
71
+
72
+ options.validateStatus = function (status) {
73
+ // succesfully resolve the promise for all status codes,
74
+ // otherwise an error is thrown which is incompatible with the current WebResponse logic
75
+ return status > 0;
76
+ };
77
+ this._response = axios.request(options)
78
+ .then(response => {
79
+ return response;
80
+ })
81
+ .catch(error => {
82
+ throw error;
83
+ });
77
84
  return this;
78
85
  };
79
86
 
@@ -134,19 +141,46 @@ function handleEntities(options, webRequest) {
134
141
  }
135
142
 
136
143
  if (multiPartHeader.indexOf('related') > -1) {
137
- options.multipart = [];
138
- webRequest.entities.forEach(entity => {
139
- options.multipart.push({
140
- 'content-type': entity.contentType,
141
- body: entity.body._content
142
- });
143
- });
144
+
145
+ options.data = buildMultipartRelatedData(webRequest, boundary);
144
146
  } else {
145
147
  throw new Error('Multipart/form-data and Multi-part/mixed are not supported!');
146
148
  }
147
149
  }
148
150
  }
149
151
 
152
+ function buildMultipartRelatedData(webRequest, boundary) {
153
+ const finale = `--${boundary}--`;
154
+ const dataStream = new stream.PassThrough();
155
+ let isStream = false;
156
+ webRequest.entities.forEach(entity => {
157
+ const preamble = `--${boundary}${CRLF}`;
158
+ dataStream.push(preamble);
159
+ if (entity.contentType) {
160
+ dataStream.push(`content-type: ${entity.contentType}${CRLF}`);
161
+ }
162
+ dataStream.push(CRLF);
163
+ let body = entity.body._content;
164
+ if (body instanceof stream.Stream) {
165
+ isStream = true;
166
+ body.pipe(dataStream, {end: false});
167
+ body.on('end', () => {
168
+ dataStream.push(CRLF);
169
+ dataStream.push(finale);
170
+ dataStream.push(null);
171
+ });
172
+ } else {
173
+ dataStream.push(body);
174
+ dataStream.push(CRLF);
175
+ }
176
+ });
177
+ if (!isStream) {
178
+ dataStream.push(finale);
179
+ dataStream.push(null);
180
+ }
181
+ return dataStream;
182
+ }
183
+
150
184
  function addPath(options, webRequest) {
151
185
  if (webRequest.path) {
152
186
  if (options.url.charAt(options.url.length - 1) !== '/' && webRequest.path.charAt(0) !== '/') {
@@ -181,14 +215,15 @@ function addCookies(options, webRequest) {
181
215
 
182
216
  function addBody(options, webRequest) {
183
217
  if (options.method === 'POST' || options.method === 'PUT' || options.method === 'PATCH') {
184
- options.body = webRequest.body._content;
185
- options.json = false;
218
+ options.data = options.data || webRequest.body._content;
219
+ options.responseType = 'text';
186
220
  }
187
221
  }
188
222
 
223
+
189
224
  function setProxy(options, proxyOpt) {
190
225
  if (proxyOpt) {
191
- options.proxy = proxyOpt;
226
+ options.proxy = new URL(proxyOpt);
192
227
  }
193
228
  }
194
229
 
@@ -203,7 +238,7 @@ function addPathPrefix(options, destination) {
203
238
 
204
239
  function setProxyFromDestination(options, destination) {
205
240
  if (destination.useProxy === true) {
206
- return options.proxy = 'http://' + destination.proxyHost + ':' + destination.proxyPort;
241
+ return options.proxy = new URL('http://' + destination.proxyHost + ':' + destination.proxyPort);
207
242
  }
208
243
  // explicitly disable proxy
209
244
  if (destination.useProxy === false) {
@@ -213,7 +248,7 @@ function setProxyFromDestination(options, destination) {
213
248
 
214
249
  function setBasicAuthFromDestination(options, destination) {
215
250
  if (destination.authType === 'basic') {
216
- options.auth = { user: destination.username, pass: destination.password };
251
+ options.auth = { username: destination.username, password: destination.password };
217
252
  }
218
253
  }
219
254
 
@@ -19,7 +19,6 @@ module.exports = WebResponse;
19
19
 
20
20
  function WebResponse(res, followUpContext) {
21
21
  WebEntityResponse.call(this, res);
22
-
23
22
  if (!res) {
24
23
  this.cookies = new CookiesTupelList();
25
24
  this.status = 200;
@@ -28,9 +27,12 @@ function WebResponse(res, followUpContext) {
28
27
  setBodyOrEntities(this, res);
29
28
  this.cookies = new CookiesTupelList();
30
29
  this.cookies._addData(extractCookies(res));
31
- this.status = res.statusCode;
32
- this.statusMessage = status[res.statusCode];
33
- this._httpVersion = 'HTTP/' + res.httpVersion;
30
+ var statusCode = res.statusCode || res.status;
31
+ this.status = statusCode;
32
+ this.statusMessage = status[statusCode];
33
+ var httpVersion = (res.req && res.req.httpVersion) || (res.request &&
34
+ ((res.request.res && res.request.res.httpVersion) || (res.request.response && res.request.response.httpVersion)));
35
+ this._httpVersion = 'HTTP/' + httpVersion;
34
36
  }
35
37
 
36
38
  if (followUpContext) {
@@ -75,10 +77,10 @@ function normalizeResponseHeaders(webResponse) {
75
77
  function setBodyOrEntities(webResponse, internalResponse) {
76
78
  var boundary = extractBoundaryOfMultipartResponse(webResponse);
77
79
  if (boundary) {
78
- MultipartParser.parseFromBuffer(internalResponse.body, boundary, webResponse, MESSAGE_TYPE.RESPONSE);
80
+ MultipartParser.parseFromBuffer(internalResponse.data, boundary, webResponse, MESSAGE_TYPE.RESPONSE);
79
81
  webResponse.body = undefined;
80
82
  } else {
81
- internalResponse.body && webResponse.setBody(internalResponse.body);
83
+ internalResponse.data && webResponse.setBody(internalResponse.data);
82
84
  }
83
85
  }
84
86
 
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@sap/async-xsjs",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sap/async-xsjs",
9
- "version": "1.0.4",
9
+ "version": "1.0.6",
10
10
  "license": "SEE LICENSE IN LICENSE file",
11
11
  "dependencies": {
12
12
  "@sap/audit-logging": "^5.7.0",
13
13
  "@sap/e2e-trace": "^3.2.0",
14
- "@sap/hana-client": "2.16.21",
15
- "@sap/hdbext": "^7.7.3",
14
+ "@sap/hana-client": "2.17.14",
15
+ "@sap/hdbext": "^7.7.5",
16
16
  "@sap/instance-manager": "^3.5.3",
17
17
  "@sap/jobs-client": "^1.7.43",
18
18
  "@sap/logging": "^6.2.0",
@@ -26,6 +26,7 @@
26
26
  "@sap/xss-secure": "^4.1.0",
27
27
  "@sap/xssec": "^3.2.17",
28
28
  "accept-language": "2.0.16",
29
+ "axios": "^1.3.5",
29
30
  "big.js": "5.0.2",
30
31
  "body-parser": "1.19.2",
31
32
  "callsite": "1.0.0",
@@ -41,7 +42,6 @@
41
42
  "nodemailer": "6.6.1",
42
43
  "passport": "0.6.0",
43
44
  "passport-strategy": "1.0.0",
44
- "request": "2.88.2",
45
45
  "sax": "1.2.4",
46
46
  "statuses": "1.2.1",
47
47
  "verror": "1.10.0",
@@ -75,7 +75,7 @@
75
75
  }
76
76
  },
77
77
  "node_modules/@sap/hana-client": {
78
- "version": "2.16.21",
78
+ "version": "2.17.14",
79
79
  "hasInstallScript": true,
80
80
  "dependencies": {
81
81
  "debug": "3.1.0"
@@ -94,10 +94,10 @@
94
94
  "version": "2.0.0"
95
95
  },
96
96
  "node_modules/@sap/hdbext": {
97
- "version": "7.7.3",
97
+ "version": "7.7.5",
98
98
  "dependencies": {
99
99
  "@sap/e2e-trace": "^3.1.0",
100
- "@sap/hana-client": "2.16.21",
100
+ "@sap/hana-client": "2.17.14",
101
101
  "accept-language": "2.0.16",
102
102
  "async": "3.2.2",
103
103
  "debug": "4.3.1",
@@ -105,7 +105,7 @@
105
105
  "verror": "1.10.0"
106
106
  },
107
107
  "engines": {
108
- "node": "^8.0.0 || ^10.0.0 || ^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0"
108
+ "node": "^10.0.0 || ^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0"
109
109
  }
110
110
  },
111
111
  "node_modules/@sap/hdbext/node_modules/debug": {
@@ -137,12 +137,12 @@
137
137
  }
138
138
  },
139
139
  "node_modules/@sap/jobs-client": {
140
- "version": "1.7.43",
140
+ "version": "1.7.47",
141
141
  "dependencies": {
142
142
  "@sap/xsenv": "3.4.0"
143
143
  },
144
144
  "engines": {
145
- "node": "^12 || ^14 || ^16"
145
+ "node": "^14 || ^16 || ^18"
146
146
  }
147
147
  },
148
148
  "node_modules/@sap/logging": {
@@ -157,14 +157,14 @@
157
157
  }
158
158
  },
159
159
  "node_modules/@sap/node-jwt": {
160
- "version": "1.6.19",
160
+ "version": "1.6.20",
161
161
  "hasInstallScript": true,
162
162
  "engines": {
163
163
  "node": "<19.0.0"
164
164
  }
165
165
  },
166
166
  "node_modules/@sap/node-vsi": {
167
- "version": "1.4.23",
167
+ "version": "1.4.24",
168
168
  "hasInstallScript": true,
169
169
  "engines": {
170
170
  "node": "<19.0.0"
@@ -350,6 +350,12 @@
350
350
  "node": ">=12.0.0"
351
351
  }
352
352
  },
353
+ "node_modules/@sap/xssec/node_modules/axios": {
354
+ "version": "0.26.1",
355
+ "dependencies": {
356
+ "follow-redirects": "^1.14.8"
357
+ }
358
+ },
353
359
  "node_modules/@sap/xssec/node_modules/lru-cache": {
354
360
  "version": "6.0.0",
355
361
  "dependencies": {
@@ -378,15 +384,6 @@
378
384
  "node": ">= 0.6"
379
385
  }
380
386
  },
381
- "node_modules/ajv": {
382
- "version": "6.12.6",
383
- "dependencies": {
384
- "fast-deep-equal": "^3.1.1",
385
- "fast-json-stable-stringify": "^2.0.0",
386
- "json-schema-traverse": "^0.4.1",
387
- "uri-js": "^4.2.2"
388
- }
389
- },
390
387
  "node_modules/array-flatten": {
391
388
  "version": "1.1.1"
392
389
  },
@@ -408,19 +405,12 @@
408
405
  "node_modules/asynckit": {
409
406
  "version": "0.4.0"
410
407
  },
411
- "node_modules/aws-sign2": {
412
- "version": "0.7.0",
413
- "engines": {
414
- "node": "*"
415
- }
416
- },
417
- "node_modules/aws4": {
418
- "version": "1.12.0"
419
- },
420
408
  "node_modules/axios": {
421
- "version": "0.26.1",
409
+ "version": "1.4.0",
422
410
  "dependencies": {
423
- "follow-redirects": "^1.14.8"
411
+ "follow-redirects": "^1.15.0",
412
+ "form-data": "^4.0.0",
413
+ "proxy-from-env": "^1.1.0"
424
414
  }
425
415
  },
426
416
  "node_modules/bcp47": {
@@ -429,12 +419,6 @@
429
419
  "node": ">=0.10"
430
420
  }
431
421
  },
432
- "node_modules/bcrypt-pbkdf": {
433
- "version": "1.0.2",
434
- "dependencies": {
435
- "tweetnacl": "^0.14.3"
436
- }
437
- },
438
422
  "node_modules/big.js": {
439
423
  "version": "5.0.2",
440
424
  "engines": {
@@ -502,9 +486,6 @@
502
486
  "node": "*"
503
487
  }
504
488
  },
505
- "node_modules/caseless": {
506
- "version": "0.12.0"
507
- },
508
489
  "node_modules/clone": {
509
490
  "version": "2.1.1",
510
491
  "engines": {
@@ -605,15 +586,6 @@
605
586
  "node_modules/core-util-is": {
606
587
  "version": "1.0.2"
607
588
  },
608
- "node_modules/dashdash": {
609
- "version": "1.14.1",
610
- "dependencies": {
611
- "assert-plus": "^1.0.0"
612
- },
613
- "engines": {
614
- "node": ">=0.10"
615
- }
616
- },
617
589
  "node_modules/debug": {
618
590
  "version": "4.3.3",
619
591
  "dependencies": {
@@ -647,13 +619,6 @@
647
619
  "npm": "1.2.8000 || >= 1.4.16"
648
620
  }
649
621
  },
650
- "node_modules/ecc-jsbn": {
651
- "version": "0.1.2",
652
- "dependencies": {
653
- "jsbn": "~0.1.0",
654
- "safer-buffer": "^2.1.0"
655
- }
656
- },
657
622
  "node_modules/ecdsa-sig-formatter": {
658
623
  "version": "1.0.11",
659
624
  "dependencies": {
@@ -817,21 +782,12 @@
817
782
  "node": ">= 0.8"
818
783
  }
819
784
  },
820
- "node_modules/extend": {
821
- "version": "3.0.2"
822
- },
823
785
  "node_modules/extsprintf": {
824
- "version": "1.3.0",
786
+ "version": "1.4.1",
825
787
  "engines": [
826
788
  "node >=0.6.0"
827
789
  ]
828
790
  },
829
- "node_modules/fast-deep-equal": {
830
- "version": "3.1.3"
831
- },
832
- "node_modules/fast-json-stable-stringify": {
833
- "version": "2.1.0"
834
- },
835
791
  "node_modules/fd-slicer": {
836
792
  "version": "1.0.1",
837
793
  "dependencies": {
@@ -891,21 +847,15 @@
891
847
  }
892
848
  }
893
849
  },
894
- "node_modules/forever-agent": {
895
- "version": "0.6.1",
896
- "engines": {
897
- "node": "*"
898
- }
899
- },
900
850
  "node_modules/form-data": {
901
- "version": "2.3.3",
851
+ "version": "4.0.0",
902
852
  "dependencies": {
903
853
  "asynckit": "^0.4.0",
904
- "combined-stream": "^1.0.6",
854
+ "combined-stream": "^1.0.8",
905
855
  "mime-types": "^2.1.12"
906
856
  },
907
857
  "engines": {
908
- "node": ">= 0.12"
858
+ "node": ">= 6"
909
859
  }
910
860
  },
911
861
  "node_modules/forwarded": {
@@ -924,36 +874,14 @@
924
874
  "version": "1.1.1"
925
875
  },
926
876
  "node_modules/get-intrinsic": {
927
- "version": "1.2.0",
877
+ "version": "1.2.1",
928
878
  "dependencies": {
929
879
  "function-bind": "^1.1.1",
930
880
  "has": "^1.0.3",
881
+ "has-proto": "^1.0.1",
931
882
  "has-symbols": "^1.0.3"
932
883
  }
933
884
  },
934
- "node_modules/getpass": {
935
- "version": "0.1.7",
936
- "dependencies": {
937
- "assert-plus": "^1.0.0"
938
- }
939
- },
940
- "node_modules/har-schema": {
941
- "version": "2.0.0",
942
- "engines": {
943
- "node": ">=4"
944
- }
945
- },
946
- "node_modules/har-validator": {
947
- "version": "5.1.5",
948
- "deprecated": "this library is no longer supported",
949
- "dependencies": {
950
- "ajv": "^6.12.3",
951
- "har-schema": "^2.0.0"
952
- },
953
- "engines": {
954
- "node": ">=6"
955
- }
956
- },
957
885
  "node_modules/has": {
958
886
  "version": "1.0.3",
959
887
  "dependencies": {
@@ -963,6 +891,12 @@
963
891
  "node": ">= 0.4.0"
964
892
  }
965
893
  },
894
+ "node_modules/has-proto": {
895
+ "version": "1.0.1",
896
+ "engines": {
897
+ "node": ">= 0.4"
898
+ }
899
+ },
966
900
  "node_modules/has-symbols": {
967
901
  "version": "1.0.3",
968
902
  "engines": {
@@ -1003,18 +937,6 @@
1003
937
  "next-line": "^1.1.0"
1004
938
  }
1005
939
  },
1006
- "node_modules/http-signature": {
1007
- "version": "1.2.0",
1008
- "dependencies": {
1009
- "assert-plus": "^1.0.0",
1010
- "jsprim": "^1.2.2",
1011
- "sshpk": "^1.7.0"
1012
- },
1013
- "engines": {
1014
- "node": ">=0.8",
1015
- "npm": ">=1.3.7"
1016
- }
1017
- },
1018
940
  "node_modules/iconv-lite": {
1019
941
  "version": "0.4.24",
1020
942
  "dependencies": {
@@ -1033,24 +955,6 @@
1033
955
  "node": ">= 0.10"
1034
956
  }
1035
957
  },
1036
- "node_modules/is-typedarray": {
1037
- "version": "1.0.0"
1038
- },
1039
- "node_modules/isstream": {
1040
- "version": "0.1.2"
1041
- },
1042
- "node_modules/jsbn": {
1043
- "version": "0.1.1"
1044
- },
1045
- "node_modules/json-schema": {
1046
- "version": "0.4.0"
1047
- },
1048
- "node_modules/json-schema-traverse": {
1049
- "version": "0.4.1"
1050
- },
1051
- "node_modules/json-stringify-safe": {
1052
- "version": "5.0.1"
1053
- },
1054
958
  "node_modules/jsonwebtoken": {
1055
959
  "version": "9.0.0",
1056
960
  "dependencies": {
@@ -1064,18 +968,6 @@
1064
968
  "npm": ">=6"
1065
969
  }
1066
970
  },
1067
- "node_modules/jsprim": {
1068
- "version": "1.4.2",
1069
- "dependencies": {
1070
- "assert-plus": "1.0.0",
1071
- "extsprintf": "1.3.0",
1072
- "json-schema": "0.4.0",
1073
- "verror": "1.10.0"
1074
- },
1075
- "engines": {
1076
- "node": ">=0.6.0"
1077
- }
1078
- },
1079
971
  "node_modules/jwa": {
1080
972
  "version": "1.4.1",
1081
973
  "dependencies": {
@@ -1210,12 +1102,6 @@
1210
1102
  "node": ">=6.0.0"
1211
1103
  }
1212
1104
  },
1213
- "node_modules/oauth-sign": {
1214
- "version": "0.9.0",
1215
- "engines": {
1216
- "node": "*"
1217
- }
1218
- },
1219
1105
  "node_modules/object-inspect": {
1220
1106
  "version": "1.12.3"
1221
1107
  },
@@ -1272,9 +1158,6 @@
1272
1158
  "node_modules/pend": {
1273
1159
  "version": "1.2.0"
1274
1160
  },
1275
- "node_modules/performance-now": {
1276
- "version": "2.1.0"
1277
- },
1278
1161
  "node_modules/proxy-addr": {
1279
1162
  "version": "2.0.7",
1280
1163
  "dependencies": {
@@ -1285,18 +1168,12 @@
1285
1168
  "node": ">= 0.10"
1286
1169
  }
1287
1170
  },
1171
+ "node_modules/proxy-from-env": {
1172
+ "version": "1.1.0"
1173
+ },
1288
1174
  "node_modules/pseudomap": {
1289
1175
  "version": "1.0.2"
1290
1176
  },
1291
- "node_modules/psl": {
1292
- "version": "1.9.0"
1293
- },
1294
- "node_modules/punycode": {
1295
- "version": "2.3.0",
1296
- "engines": {
1297
- "node": ">=6"
1298
- }
1299
- },
1300
1177
  "node_modules/qs": {
1301
1178
  "version": "6.9.7",
1302
1179
  "engines": {
@@ -1327,35 +1204,6 @@
1327
1204
  "node": ">= 0.8"
1328
1205
  }
1329
1206
  },
1330
- "node_modules/request": {
1331
- "version": "2.88.2",
1332
- "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142",
1333
- "dependencies": {
1334
- "aws-sign2": "~0.7.0",
1335
- "aws4": "^1.8.0",
1336
- "caseless": "~0.12.0",
1337
- "combined-stream": "~1.0.6",
1338
- "extend": "~3.0.2",
1339
- "forever-agent": "~0.6.1",
1340
- "form-data": "~2.3.2",
1341
- "har-validator": "~5.1.3",
1342
- "http-signature": "~1.2.0",
1343
- "is-typedarray": "~1.0.0",
1344
- "isstream": "~0.1.2",
1345
- "json-stringify-safe": "~5.0.1",
1346
- "mime-types": "~2.1.19",
1347
- "oauth-sign": "~0.9.0",
1348
- "performance-now": "^2.1.0",
1349
- "qs": "~6.5.2",
1350
- "safe-buffer": "^5.1.2",
1351
- "tough-cookie": "~2.5.0",
1352
- "tunnel-agent": "^0.6.0",
1353
- "uuid": "^3.3.2"
1354
- },
1355
- "engines": {
1356
- "node": ">= 6"
1357
- }
1358
- },
1359
1207
  "node_modules/request-stats": {
1360
1208
  "version": "3.0.0",
1361
1209
  "dependencies": {
@@ -1366,22 +1214,6 @@
1366
1214
  "node": ">=0.12"
1367
1215
  }
1368
1216
  },
1369
- "node_modules/request/node_modules/qs": {
1370
- "version": "6.5.3",
1371
- "engines": {
1372
- "node": ">=0.6"
1373
- }
1374
- },
1375
- "node_modules/request/node_modules/safe-buffer": {
1376
- "version": "5.2.1"
1377
- },
1378
- "node_modules/request/node_modules/uuid": {
1379
- "version": "3.4.0",
1380
- "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
1381
- "bin": {
1382
- "uuid": "bin/uuid"
1383
- }
1384
- },
1385
1217
  "node_modules/rwlock": {
1386
1218
  "version": "5.0.0"
1387
1219
  },
@@ -1395,7 +1227,7 @@
1395
1227
  "version": "1.2.4"
1396
1228
  },
1397
1229
  "node_modules/semver": {
1398
- "version": "7.3.8",
1230
+ "version": "7.5.3",
1399
1231
  "dependencies": {
1400
1232
  "lru-cache": "^6.0.0"
1401
1233
  },
@@ -1508,28 +1340,6 @@
1508
1340
  "object-inspect": "^1.9.0"
1509
1341
  }
1510
1342
  },
1511
- "node_modules/sshpk": {
1512
- "version": "1.17.0",
1513
- "dependencies": {
1514
- "asn1": "~0.2.3",
1515
- "assert-plus": "^1.0.0",
1516
- "bcrypt-pbkdf": "^1.0.0",
1517
- "dashdash": "^1.12.0",
1518
- "ecc-jsbn": "~0.1.1",
1519
- "getpass": "^0.1.1",
1520
- "jsbn": "~0.1.0",
1521
- "safer-buffer": "^2.0.2",
1522
- "tweetnacl": "~0.14.0"
1523
- },
1524
- "bin": {
1525
- "sshpk-conv": "bin/sshpk-conv",
1526
- "sshpk-sign": "bin/sshpk-sign",
1527
- "sshpk-verify": "bin/sshpk-verify"
1528
- },
1529
- "engines": {
1530
- "node": ">=0.10.0"
1531
- }
1532
- },
1533
1343
  "node_modules/statuses": {
1534
1344
  "version": "1.2.1"
1535
1345
  },
@@ -1539,31 +1349,9 @@
1539
1349
  "node": ">=0.6"
1540
1350
  }
1541
1351
  },
1542
- "node_modules/tough-cookie": {
1543
- "version": "2.5.0",
1544
- "dependencies": {
1545
- "psl": "^1.1.28",
1546
- "punycode": "^2.1.1"
1547
- },
1548
- "engines": {
1549
- "node": ">=0.8"
1550
- }
1551
- },
1552
1352
  "node_modules/tr46": {
1553
1353
  "version": "0.0.3"
1554
1354
  },
1555
- "node_modules/tunnel-agent": {
1556
- "version": "0.6.0",
1557
- "dependencies": {
1558
- "safe-buffer": "^5.0.1"
1559
- },
1560
- "engines": {
1561
- "node": "*"
1562
- }
1563
- },
1564
- "node_modules/tweetnacl": {
1565
- "version": "0.14.5"
1566
- },
1567
1355
  "node_modules/type-is": {
1568
1356
  "version": "1.6.18",
1569
1357
  "dependencies": {
@@ -1589,12 +1377,6 @@
1589
1377
  "node": ">= 0.8"
1590
1378
  }
1591
1379
  },
1592
- "node_modules/uri-js": {
1593
- "version": "4.4.1",
1594
- "dependencies": {
1595
- "punycode": "^2.1.0"
1596
- }
1597
- },
1598
1380
  "node_modules/utils-merge": {
1599
1381
  "version": "1.0.1",
1600
1382
  "engines": {
@@ -1681,7 +1463,7 @@
1681
1463
  }
1682
1464
  },
1683
1465
  "@sap/hana-client": {
1684
- "version": "2.16.21",
1466
+ "version": "2.17.14",
1685
1467
  "requires": {
1686
1468
  "debug": "3.1.0"
1687
1469
  },
@@ -1698,10 +1480,10 @@
1698
1480
  }
1699
1481
  },
1700
1482
  "@sap/hdbext": {
1701
- "version": "7.7.3",
1483
+ "version": "7.7.5",
1702
1484
  "requires": {
1703
1485
  "@sap/e2e-trace": "^3.1.0",
1704
- "@sap/hana-client": "2.16.21",
1486
+ "@sap/hana-client": "2.17.14",
1705
1487
  "accept-language": "2.0.16",
1706
1488
  "async": "3.2.2",
1707
1489
  "debug": "4.3.1",
@@ -1729,7 +1511,7 @@
1729
1511
  }
1730
1512
  },
1731
1513
  "@sap/jobs-client": {
1732
- "version": "1.7.43",
1514
+ "version": "1.7.47",
1733
1515
  "requires": {
1734
1516
  "@sap/xsenv": "3.4.0"
1735
1517
  }
@@ -1743,10 +1525,10 @@
1743
1525
  }
1744
1526
  },
1745
1527
  "@sap/node-jwt": {
1746
- "version": "1.6.19"
1528
+ "version": "1.6.20"
1747
1529
  },
1748
1530
  "@sap/node-vsi": {
1749
- "version": "1.4.23"
1531
+ "version": "1.4.24"
1750
1532
  },
1751
1533
  "@sap/textanalysis": {
1752
1534
  "version": "1.1.0"
@@ -1877,6 +1659,12 @@
1877
1659
  "valid-url": "1.0.9"
1878
1660
  },
1879
1661
  "dependencies": {
1662
+ "axios": {
1663
+ "version": "0.26.1",
1664
+ "requires": {
1665
+ "follow-redirects": "^1.14.8"
1666
+ }
1667
+ },
1880
1668
  "lru-cache": {
1881
1669
  "version": "6.0.0",
1882
1670
  "requires": {
@@ -1901,15 +1689,6 @@
1901
1689
  "negotiator": "0.6.3"
1902
1690
  }
1903
1691
  },
1904
- "ajv": {
1905
- "version": "6.12.6",
1906
- "requires": {
1907
- "fast-deep-equal": "^3.1.1",
1908
- "fast-json-stable-stringify": "^2.0.0",
1909
- "json-schema-traverse": "^0.4.1",
1910
- "uri-js": "^4.2.2"
1911
- }
1912
- },
1913
1692
  "array-flatten": {
1914
1693
  "version": "1.1.1"
1915
1694
  },
@@ -1928,27 +1707,17 @@
1928
1707
  "asynckit": {
1929
1708
  "version": "0.4.0"
1930
1709
  },
1931
- "aws-sign2": {
1932
- "version": "0.7.0"
1933
- },
1934
- "aws4": {
1935
- "version": "1.12.0"
1936
- },
1937
1710
  "axios": {
1938
- "version": "0.26.1",
1711
+ "version": "1.4.0",
1939
1712
  "requires": {
1940
- "follow-redirects": "^1.14.8"
1713
+ "follow-redirects": "^1.15.0",
1714
+ "form-data": "^4.0.0",
1715
+ "proxy-from-env": "^1.1.0"
1941
1716
  }
1942
1717
  },
1943
1718
  "bcp47": {
1944
1719
  "version": "1.1.2"
1945
1720
  },
1946
- "bcrypt-pbkdf": {
1947
- "version": "1.0.2",
1948
- "requires": {
1949
- "tweetnacl": "^0.14.3"
1950
- }
1951
- },
1952
1721
  "big.js": {
1953
1722
  "version": "5.0.2"
1954
1723
  },
@@ -2000,9 +1769,6 @@
2000
1769
  "callsite": {
2001
1770
  "version": "1.0.0"
2002
1771
  },
2003
- "caseless": {
2004
- "version": "0.12.0"
2005
- },
2006
1772
  "clone": {
2007
1773
  "version": "2.1.1"
2008
1774
  },
@@ -2079,12 +1845,6 @@
2079
1845
  "core-util-is": {
2080
1846
  "version": "1.0.2"
2081
1847
  },
2082
- "dashdash": {
2083
- "version": "1.14.1",
2084
- "requires": {
2085
- "assert-plus": "^1.0.0"
2086
- }
2087
- },
2088
1848
  "debug": {
2089
1849
  "version": "4.3.3",
2090
1850
  "requires": {
@@ -2100,13 +1860,6 @@
2100
1860
  "destroy": {
2101
1861
  "version": "1.2.0"
2102
1862
  },
2103
- "ecc-jsbn": {
2104
- "version": "0.1.2",
2105
- "requires": {
2106
- "jsbn": "~0.1.0",
2107
- "safer-buffer": "^2.1.0"
2108
- }
2109
- },
2110
1863
  "ecdsa-sig-formatter": {
2111
1864
  "version": "1.0.11",
2112
1865
  "requires": {
@@ -2235,17 +1988,8 @@
2235
1988
  }
2236
1989
  }
2237
1990
  },
2238
- "extend": {
2239
- "version": "3.0.2"
2240
- },
2241
1991
  "extsprintf": {
2242
- "version": "1.3.0"
2243
- },
2244
- "fast-deep-equal": {
2245
- "version": "3.1.3"
2246
- },
2247
- "fast-json-stable-stringify": {
2248
- "version": "2.1.0"
1992
+ "version": "1.4.1"
2249
1993
  },
2250
1994
  "fd-slicer": {
2251
1995
  "version": "1.0.1",
@@ -2291,14 +2035,11 @@
2291
2035
  "follow-redirects": {
2292
2036
  "version": "1.15.2"
2293
2037
  },
2294
- "forever-agent": {
2295
- "version": "0.6.1"
2296
- },
2297
2038
  "form-data": {
2298
- "version": "2.3.3",
2039
+ "version": "4.0.0",
2299
2040
  "requires": {
2300
2041
  "asynckit": "^0.4.0",
2301
- "combined-stream": "^1.0.6",
2042
+ "combined-stream": "^1.0.8",
2302
2043
  "mime-types": "^2.1.12"
2303
2044
  }
2304
2045
  },
@@ -2312,35 +2053,23 @@
2312
2053
  "version": "1.1.1"
2313
2054
  },
2314
2055
  "get-intrinsic": {
2315
- "version": "1.2.0",
2056
+ "version": "1.2.1",
2316
2057
  "requires": {
2317
2058
  "function-bind": "^1.1.1",
2318
2059
  "has": "^1.0.3",
2060
+ "has-proto": "^1.0.1",
2319
2061
  "has-symbols": "^1.0.3"
2320
2062
  }
2321
2063
  },
2322
- "getpass": {
2323
- "version": "0.1.7",
2324
- "requires": {
2325
- "assert-plus": "^1.0.0"
2326
- }
2327
- },
2328
- "har-schema": {
2329
- "version": "2.0.0"
2330
- },
2331
- "har-validator": {
2332
- "version": "5.1.5",
2333
- "requires": {
2334
- "ajv": "^6.12.3",
2335
- "har-schema": "^2.0.0"
2336
- }
2337
- },
2338
2064
  "has": {
2339
2065
  "version": "1.0.3",
2340
2066
  "requires": {
2341
2067
  "function-bind": "^1.1.1"
2342
2068
  }
2343
2069
  },
2070
+ "has-proto": {
2071
+ "version": "1.0.1"
2072
+ },
2344
2073
  "has-symbols": {
2345
2074
  "version": "1.0.3"
2346
2075
  },
@@ -2371,14 +2100,6 @@
2371
2100
  "next-line": "^1.1.0"
2372
2101
  }
2373
2102
  },
2374
- "http-signature": {
2375
- "version": "1.2.0",
2376
- "requires": {
2377
- "assert-plus": "^1.0.0",
2378
- "jsprim": "^1.2.2",
2379
- "sshpk": "^1.7.0"
2380
- }
2381
- },
2382
2103
  "iconv-lite": {
2383
2104
  "version": "0.4.24",
2384
2105
  "requires": {
@@ -2391,24 +2112,6 @@
2391
2112
  "ipaddr.js": {
2392
2113
  "version": "1.9.1"
2393
2114
  },
2394
- "is-typedarray": {
2395
- "version": "1.0.0"
2396
- },
2397
- "isstream": {
2398
- "version": "0.1.2"
2399
- },
2400
- "jsbn": {
2401
- "version": "0.1.1"
2402
- },
2403
- "json-schema": {
2404
- "version": "0.4.0"
2405
- },
2406
- "json-schema-traverse": {
2407
- "version": "0.4.1"
2408
- },
2409
- "json-stringify-safe": {
2410
- "version": "5.0.1"
2411
- },
2412
2115
  "jsonwebtoken": {
2413
2116
  "version": "9.0.0",
2414
2117
  "requires": {
@@ -2418,15 +2121,6 @@
2418
2121
  "semver": "^7.3.8"
2419
2122
  }
2420
2123
  },
2421
- "jsprim": {
2422
- "version": "1.4.2",
2423
- "requires": {
2424
- "assert-plus": "1.0.0",
2425
- "extsprintf": "1.3.0",
2426
- "json-schema": "0.4.0",
2427
- "verror": "1.10.0"
2428
- }
2429
- },
2430
2124
  "jwa": {
2431
2125
  "version": "1.4.1",
2432
2126
  "requires": {
@@ -2519,9 +2213,6 @@
2519
2213
  "nodemailer": {
2520
2214
  "version": "6.6.1"
2521
2215
  },
2522
- "oauth-sign": {
2523
- "version": "0.9.0"
2524
- },
2525
2216
  "object-inspect": {
2526
2217
  "version": "1.12.3"
2527
2218
  },
@@ -2563,9 +2254,6 @@
2563
2254
  "pend": {
2564
2255
  "version": "1.2.0"
2565
2256
  },
2566
- "performance-now": {
2567
- "version": "2.1.0"
2568
- },
2569
2257
  "proxy-addr": {
2570
2258
  "version": "2.0.7",
2571
2259
  "requires": {
@@ -2573,15 +2261,12 @@
2573
2261
  "ipaddr.js": "1.9.1"
2574
2262
  }
2575
2263
  },
2264
+ "proxy-from-env": {
2265
+ "version": "1.1.0"
2266
+ },
2576
2267
  "pseudomap": {
2577
2268
  "version": "1.0.2"
2578
2269
  },
2579
- "psl": {
2580
- "version": "1.9.0"
2581
- },
2582
- "punycode": {
2583
- "version": "2.3.0"
2584
- },
2585
2270
  "qs": {
2586
2271
  "version": "6.9.7"
2587
2272
  },
@@ -2600,42 +2285,6 @@
2600
2285
  "unpipe": "1.0.0"
2601
2286
  }
2602
2287
  },
2603
- "request": {
2604
- "version": "2.88.2",
2605
- "requires": {
2606
- "aws-sign2": "~0.7.0",
2607
- "aws4": "^1.8.0",
2608
- "caseless": "~0.12.0",
2609
- "combined-stream": "~1.0.6",
2610
- "extend": "~3.0.2",
2611
- "forever-agent": "~0.6.1",
2612
- "form-data": "~2.3.2",
2613
- "har-validator": "~5.1.3",
2614
- "http-signature": "~1.2.0",
2615
- "is-typedarray": "~1.0.0",
2616
- "isstream": "~0.1.2",
2617
- "json-stringify-safe": "~5.0.1",
2618
- "mime-types": "~2.1.19",
2619
- "oauth-sign": "~0.9.0",
2620
- "performance-now": "^2.1.0",
2621
- "qs": "~6.5.2",
2622
- "safe-buffer": "^5.1.2",
2623
- "tough-cookie": "~2.5.0",
2624
- "tunnel-agent": "^0.6.0",
2625
- "uuid": "^3.3.2"
2626
- },
2627
- "dependencies": {
2628
- "qs": {
2629
- "version": "6.5.3"
2630
- },
2631
- "safe-buffer": {
2632
- "version": "5.2.1"
2633
- },
2634
- "uuid": {
2635
- "version": "3.4.0"
2636
- }
2637
- }
2638
- },
2639
2288
  "request-stats": {
2640
2289
  "version": "3.0.0",
2641
2290
  "requires": {
@@ -2656,7 +2305,7 @@
2656
2305
  "version": "1.2.4"
2657
2306
  },
2658
2307
  "semver": {
2659
- "version": "7.3.8",
2308
+ "version": "7.5.3",
2660
2309
  "requires": {
2661
2310
  "lru-cache": "^6.0.0"
2662
2311
  },
@@ -2748,45 +2397,15 @@
2748
2397
  "object-inspect": "^1.9.0"
2749
2398
  }
2750
2399
  },
2751
- "sshpk": {
2752
- "version": "1.17.0",
2753
- "requires": {
2754
- "asn1": "~0.2.3",
2755
- "assert-plus": "^1.0.0",
2756
- "bcrypt-pbkdf": "^1.0.0",
2757
- "dashdash": "^1.12.0",
2758
- "ecc-jsbn": "~0.1.1",
2759
- "getpass": "^0.1.1",
2760
- "jsbn": "~0.1.0",
2761
- "safer-buffer": "^2.0.2",
2762
- "tweetnacl": "~0.14.0"
2763
- }
2764
- },
2765
2400
  "statuses": {
2766
2401
  "version": "1.2.1"
2767
2402
  },
2768
2403
  "toidentifier": {
2769
2404
  "version": "1.0.1"
2770
2405
  },
2771
- "tough-cookie": {
2772
- "version": "2.5.0",
2773
- "requires": {
2774
- "psl": "^1.1.28",
2775
- "punycode": "^2.1.1"
2776
- }
2777
- },
2778
2406
  "tr46": {
2779
2407
  "version": "0.0.3"
2780
2408
  },
2781
- "tunnel-agent": {
2782
- "version": "0.6.0",
2783
- "requires": {
2784
- "safe-buffer": "^5.0.1"
2785
- }
2786
- },
2787
- "tweetnacl": {
2788
- "version": "0.14.5"
2789
- },
2790
2409
  "type-is": {
2791
2410
  "version": "1.6.18",
2792
2411
  "requires": {
@@ -2803,12 +2422,6 @@
2803
2422
  "unpipe": {
2804
2423
  "version": "1.0.0"
2805
2424
  },
2806
- "uri-js": {
2807
- "version": "4.4.1",
2808
- "requires": {
2809
- "punycode": "^2.1.0"
2810
- }
2811
- },
2812
2425
  "utils-merge": {
2813
2426
  "version": "1.0.1"
2814
2427
  },
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@sap/async-xsjs",
3
3
  "description": "Compatibility layer to run XS Classic applications on XS Advanced",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "repository": {},
6
6
  "license": "SEE LICENSE IN LICENSE file",
7
7
  "main": "./lib",
8
8
  "dependencies": {
9
9
  "@sap/audit-logging": "^5.7.0",
10
10
  "@sap/e2e-trace": "^3.2.0",
11
- "@sap/hana-client": "2.16.21",
12
- "@sap/hdbext": "^7.7.3",
11
+ "@sap/hana-client": "2.17.14",
12
+ "@sap/hdbext": "^7.7.5",
13
13
  "@sap/instance-manager": "^3.5.3",
14
14
  "@sap/jobs-client": "^1.7.43",
15
15
  "@sap/logging": "^6.2.0",
@@ -38,12 +38,12 @@
38
38
  "nodemailer": "6.6.1",
39
39
  "passport": "0.6.0",
40
40
  "passport-strategy": "1.0.0",
41
- "request": "2.88.2",
42
41
  "sax": "1.2.4",
43
42
  "statuses": "1.2.1",
44
43
  "verror": "1.10.0",
45
44
  "yauzl": "2.6.0",
46
- "yazl": "2.4.1"
45
+ "yazl": "2.4.1",
46
+ "axios": "^1.3.5"
47
47
  },
48
48
  "engines": {
49
49
  "node": "^16.x || ^18.x"