@sap/async-xsjs 1.0.4 → 1.0.5

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,13 @@ 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.5"></a>
9
+ ## 1.0.5 - 2023-06-08
10
+
11
+ ### Fixed
12
+ - Replace deprecated _request_ with _axios_ v1.3.5
13
+
14
+
8
15
  <a name="1.0.4"></a>
9
16
  ## 1.0.4 - 2023-03-28
10
17
 
@@ -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,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/async-xsjs",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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.5",
10
10
  "license": "SEE LICENSE IN LICENSE file",
11
11
  "dependencies": {
12
12
  "@sap/audit-logging": "^5.7.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",
@@ -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.4",
98
98
  "dependencies": {
99
99
  "@sap/e2e-trace": "^3.1.0",
100
- "@sap/hana-client": "2.16.21",
100
+ "@sap/hana-client": "2.16.26",
101
101
  "accept-language": "2.0.16",
102
102
  "async": "3.2.2",
103
103
  "debug": "4.3.1",
@@ -105,9 +105,28 @@
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
+ }
110
+ },
111
+ "node_modules/@sap/hdbext/node_modules/@sap/hana-client": {
112
+ "version": "2.16.26",
113
+ "hasInstallScript": true,
114
+ "dependencies": {
115
+ "debug": "3.1.0"
116
+ },
117
+ "engines": {
118
+ "node": ">=4.0.0"
119
+ }
120
+ },
121
+ "node_modules/@sap/hdbext/node_modules/@sap/hana-client/node_modules/debug": {
122
+ "version": "3.1.0",
123
+ "dependencies": {
124
+ "ms": "2.0.0"
109
125
  }
110
126
  },
127
+ "node_modules/@sap/hdbext/node_modules/@sap/hana-client/node_modules/ms": {
128
+ "version": "2.0.0"
129
+ },
111
130
  "node_modules/@sap/hdbext/node_modules/debug": {
112
131
  "version": "4.3.1",
113
132
  "dependencies": {
@@ -137,12 +156,12 @@
137
156
  }
138
157
  },
139
158
  "node_modules/@sap/jobs-client": {
140
- "version": "1.7.43",
159
+ "version": "1.7.47",
141
160
  "dependencies": {
142
161
  "@sap/xsenv": "3.4.0"
143
162
  },
144
163
  "engines": {
145
- "node": "^12 || ^14 || ^16"
164
+ "node": "^14 || ^16 || ^18"
146
165
  }
147
166
  },
148
167
  "node_modules/@sap/logging": {
@@ -157,14 +176,14 @@
157
176
  }
158
177
  },
159
178
  "node_modules/@sap/node-jwt": {
160
- "version": "1.6.19",
179
+ "version": "1.6.20",
161
180
  "hasInstallScript": true,
162
181
  "engines": {
163
182
  "node": "<19.0.0"
164
183
  }
165
184
  },
166
185
  "node_modules/@sap/node-vsi": {
167
- "version": "1.4.23",
186
+ "version": "1.4.24",
168
187
  "hasInstallScript": true,
169
188
  "engines": {
170
189
  "node": "<19.0.0"
@@ -350,6 +369,12 @@
350
369
  "node": ">=12.0.0"
351
370
  }
352
371
  },
372
+ "node_modules/@sap/xssec/node_modules/axios": {
373
+ "version": "0.26.1",
374
+ "dependencies": {
375
+ "follow-redirects": "^1.14.8"
376
+ }
377
+ },
353
378
  "node_modules/@sap/xssec/node_modules/lru-cache": {
354
379
  "version": "6.0.0",
355
380
  "dependencies": {
@@ -378,15 +403,6 @@
378
403
  "node": ">= 0.6"
379
404
  }
380
405
  },
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
406
  "node_modules/array-flatten": {
391
407
  "version": "1.1.1"
392
408
  },
@@ -408,19 +424,12 @@
408
424
  "node_modules/asynckit": {
409
425
  "version": "0.4.0"
410
426
  },
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
427
  "node_modules/axios": {
421
- "version": "0.26.1",
428
+ "version": "1.4.0",
422
429
  "dependencies": {
423
- "follow-redirects": "^1.14.8"
430
+ "follow-redirects": "^1.15.0",
431
+ "form-data": "^4.0.0",
432
+ "proxy-from-env": "^1.1.0"
424
433
  }
425
434
  },
426
435
  "node_modules/bcp47": {
@@ -429,12 +438,6 @@
429
438
  "node": ">=0.10"
430
439
  }
431
440
  },
432
- "node_modules/bcrypt-pbkdf": {
433
- "version": "1.0.2",
434
- "dependencies": {
435
- "tweetnacl": "^0.14.3"
436
- }
437
- },
438
441
  "node_modules/big.js": {
439
442
  "version": "5.0.2",
440
443
  "engines": {
@@ -502,9 +505,6 @@
502
505
  "node": "*"
503
506
  }
504
507
  },
505
- "node_modules/caseless": {
506
- "version": "0.12.0"
507
- },
508
508
  "node_modules/clone": {
509
509
  "version": "2.1.1",
510
510
  "engines": {
@@ -605,15 +605,6 @@
605
605
  "node_modules/core-util-is": {
606
606
  "version": "1.0.2"
607
607
  },
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
608
  "node_modules/debug": {
618
609
  "version": "4.3.3",
619
610
  "dependencies": {
@@ -647,13 +638,6 @@
647
638
  "npm": "1.2.8000 || >= 1.4.16"
648
639
  }
649
640
  },
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
641
  "node_modules/ecdsa-sig-formatter": {
658
642
  "version": "1.0.11",
659
643
  "dependencies": {
@@ -817,21 +801,12 @@
817
801
  "node": ">= 0.8"
818
802
  }
819
803
  },
820
- "node_modules/extend": {
821
- "version": "3.0.2"
822
- },
823
804
  "node_modules/extsprintf": {
824
- "version": "1.3.0",
805
+ "version": "1.4.1",
825
806
  "engines": [
826
807
  "node >=0.6.0"
827
808
  ]
828
809
  },
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
810
  "node_modules/fd-slicer": {
836
811
  "version": "1.0.1",
837
812
  "dependencies": {
@@ -891,21 +866,15 @@
891
866
  }
892
867
  }
893
868
  },
894
- "node_modules/forever-agent": {
895
- "version": "0.6.1",
896
- "engines": {
897
- "node": "*"
898
- }
899
- },
900
869
  "node_modules/form-data": {
901
- "version": "2.3.3",
870
+ "version": "4.0.0",
902
871
  "dependencies": {
903
872
  "asynckit": "^0.4.0",
904
- "combined-stream": "^1.0.6",
873
+ "combined-stream": "^1.0.8",
905
874
  "mime-types": "^2.1.12"
906
875
  },
907
876
  "engines": {
908
- "node": ">= 0.12"
877
+ "node": ">= 6"
909
878
  }
910
879
  },
911
880
  "node_modules/forwarded": {
@@ -924,36 +893,14 @@
924
893
  "version": "1.1.1"
925
894
  },
926
895
  "node_modules/get-intrinsic": {
927
- "version": "1.2.0",
896
+ "version": "1.2.1",
928
897
  "dependencies": {
929
898
  "function-bind": "^1.1.1",
930
899
  "has": "^1.0.3",
900
+ "has-proto": "^1.0.1",
931
901
  "has-symbols": "^1.0.3"
932
902
  }
933
903
  },
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
904
  "node_modules/has": {
958
905
  "version": "1.0.3",
959
906
  "dependencies": {
@@ -963,6 +910,12 @@
963
910
  "node": ">= 0.4.0"
964
911
  }
965
912
  },
913
+ "node_modules/has-proto": {
914
+ "version": "1.0.1",
915
+ "engines": {
916
+ "node": ">= 0.4"
917
+ }
918
+ },
966
919
  "node_modules/has-symbols": {
967
920
  "version": "1.0.3",
968
921
  "engines": {
@@ -1003,18 +956,6 @@
1003
956
  "next-line": "^1.1.0"
1004
957
  }
1005
958
  },
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
959
  "node_modules/iconv-lite": {
1019
960
  "version": "0.4.24",
1020
961
  "dependencies": {
@@ -1033,24 +974,6 @@
1033
974
  "node": ">= 0.10"
1034
975
  }
1035
976
  },
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
977
  "node_modules/jsonwebtoken": {
1055
978
  "version": "9.0.0",
1056
979
  "dependencies": {
@@ -1064,18 +987,6 @@
1064
987
  "npm": ">=6"
1065
988
  }
1066
989
  },
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
990
  "node_modules/jwa": {
1080
991
  "version": "1.4.1",
1081
992
  "dependencies": {
@@ -1210,12 +1121,6 @@
1210
1121
  "node": ">=6.0.0"
1211
1122
  }
1212
1123
  },
1213
- "node_modules/oauth-sign": {
1214
- "version": "0.9.0",
1215
- "engines": {
1216
- "node": "*"
1217
- }
1218
- },
1219
1124
  "node_modules/object-inspect": {
1220
1125
  "version": "1.12.3"
1221
1126
  },
@@ -1272,9 +1177,6 @@
1272
1177
  "node_modules/pend": {
1273
1178
  "version": "1.2.0"
1274
1179
  },
1275
- "node_modules/performance-now": {
1276
- "version": "2.1.0"
1277
- },
1278
1180
  "node_modules/proxy-addr": {
1279
1181
  "version": "2.0.7",
1280
1182
  "dependencies": {
@@ -1285,18 +1187,12 @@
1285
1187
  "node": ">= 0.10"
1286
1188
  }
1287
1189
  },
1190
+ "node_modules/proxy-from-env": {
1191
+ "version": "1.1.0"
1192
+ },
1288
1193
  "node_modules/pseudomap": {
1289
1194
  "version": "1.0.2"
1290
1195
  },
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
1196
  "node_modules/qs": {
1301
1197
  "version": "6.9.7",
1302
1198
  "engines": {
@@ -1327,35 +1223,6 @@
1327
1223
  "node": ">= 0.8"
1328
1224
  }
1329
1225
  },
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
1226
  "node_modules/request-stats": {
1360
1227
  "version": "3.0.0",
1361
1228
  "dependencies": {
@@ -1366,22 +1233,6 @@
1366
1233
  "node": ">=0.12"
1367
1234
  }
1368
1235
  },
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
1236
  "node_modules/rwlock": {
1386
1237
  "version": "5.0.0"
1387
1238
  },
@@ -1395,7 +1246,7 @@
1395
1246
  "version": "1.2.4"
1396
1247
  },
1397
1248
  "node_modules/semver": {
1398
- "version": "7.3.8",
1249
+ "version": "7.5.1",
1399
1250
  "dependencies": {
1400
1251
  "lru-cache": "^6.0.0"
1401
1252
  },
@@ -1508,28 +1359,6 @@
1508
1359
  "object-inspect": "^1.9.0"
1509
1360
  }
1510
1361
  },
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
1362
  "node_modules/statuses": {
1534
1363
  "version": "1.2.1"
1535
1364
  },
@@ -1539,31 +1368,9 @@
1539
1368
  "node": ">=0.6"
1540
1369
  }
1541
1370
  },
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
1371
  "node_modules/tr46": {
1553
1372
  "version": "0.0.3"
1554
1373
  },
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
1374
  "node_modules/type-is": {
1568
1375
  "version": "1.6.18",
1569
1376
  "dependencies": {
@@ -1589,12 +1396,6 @@
1589
1396
  "node": ">= 0.8"
1590
1397
  }
1591
1398
  },
1592
- "node_modules/uri-js": {
1593
- "version": "4.4.1",
1594
- "dependencies": {
1595
- "punycode": "^2.1.0"
1596
- }
1597
- },
1598
1399
  "node_modules/utils-merge": {
1599
1400
  "version": "1.0.1",
1600
1401
  "engines": {
@@ -1698,10 +1499,10 @@
1698
1499
  }
1699
1500
  },
1700
1501
  "@sap/hdbext": {
1701
- "version": "7.7.3",
1502
+ "version": "7.7.4",
1702
1503
  "requires": {
1703
1504
  "@sap/e2e-trace": "^3.1.0",
1704
- "@sap/hana-client": "2.16.21",
1505
+ "@sap/hana-client": "2.16.26",
1705
1506
  "accept-language": "2.0.16",
1706
1507
  "async": "3.2.2",
1707
1508
  "debug": "4.3.1",
@@ -1709,6 +1510,23 @@
1709
1510
  "verror": "1.10.0"
1710
1511
  },
1711
1512
  "dependencies": {
1513
+ "@sap/hana-client": {
1514
+ "version": "2.16.26",
1515
+ "requires": {
1516
+ "debug": "3.1.0"
1517
+ },
1518
+ "dependencies": {
1519
+ "debug": {
1520
+ "version": "3.1.0",
1521
+ "requires": {
1522
+ "ms": "2.0.0"
1523
+ }
1524
+ },
1525
+ "ms": {
1526
+ "version": "2.0.0"
1527
+ }
1528
+ }
1529
+ },
1712
1530
  "debug": {
1713
1531
  "version": "4.3.1",
1714
1532
  "requires": {
@@ -1729,7 +1547,7 @@
1729
1547
  }
1730
1548
  },
1731
1549
  "@sap/jobs-client": {
1732
- "version": "1.7.43",
1550
+ "version": "1.7.47",
1733
1551
  "requires": {
1734
1552
  "@sap/xsenv": "3.4.0"
1735
1553
  }
@@ -1743,10 +1561,10 @@
1743
1561
  }
1744
1562
  },
1745
1563
  "@sap/node-jwt": {
1746
- "version": "1.6.19"
1564
+ "version": "1.6.20"
1747
1565
  },
1748
1566
  "@sap/node-vsi": {
1749
- "version": "1.4.23"
1567
+ "version": "1.4.24"
1750
1568
  },
1751
1569
  "@sap/textanalysis": {
1752
1570
  "version": "1.1.0"
@@ -1877,6 +1695,12 @@
1877
1695
  "valid-url": "1.0.9"
1878
1696
  },
1879
1697
  "dependencies": {
1698
+ "axios": {
1699
+ "version": "0.26.1",
1700
+ "requires": {
1701
+ "follow-redirects": "^1.14.8"
1702
+ }
1703
+ },
1880
1704
  "lru-cache": {
1881
1705
  "version": "6.0.0",
1882
1706
  "requires": {
@@ -1901,15 +1725,6 @@
1901
1725
  "negotiator": "0.6.3"
1902
1726
  }
1903
1727
  },
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
1728
  "array-flatten": {
1914
1729
  "version": "1.1.1"
1915
1730
  },
@@ -1928,27 +1743,17 @@
1928
1743
  "asynckit": {
1929
1744
  "version": "0.4.0"
1930
1745
  },
1931
- "aws-sign2": {
1932
- "version": "0.7.0"
1933
- },
1934
- "aws4": {
1935
- "version": "1.12.0"
1936
- },
1937
1746
  "axios": {
1938
- "version": "0.26.1",
1747
+ "version": "1.4.0",
1939
1748
  "requires": {
1940
- "follow-redirects": "^1.14.8"
1749
+ "follow-redirects": "^1.15.0",
1750
+ "form-data": "^4.0.0",
1751
+ "proxy-from-env": "^1.1.0"
1941
1752
  }
1942
1753
  },
1943
1754
  "bcp47": {
1944
1755
  "version": "1.1.2"
1945
1756
  },
1946
- "bcrypt-pbkdf": {
1947
- "version": "1.0.2",
1948
- "requires": {
1949
- "tweetnacl": "^0.14.3"
1950
- }
1951
- },
1952
1757
  "big.js": {
1953
1758
  "version": "5.0.2"
1954
1759
  },
@@ -2000,9 +1805,6 @@
2000
1805
  "callsite": {
2001
1806
  "version": "1.0.0"
2002
1807
  },
2003
- "caseless": {
2004
- "version": "0.12.0"
2005
- },
2006
1808
  "clone": {
2007
1809
  "version": "2.1.1"
2008
1810
  },
@@ -2079,12 +1881,6 @@
2079
1881
  "core-util-is": {
2080
1882
  "version": "1.0.2"
2081
1883
  },
2082
- "dashdash": {
2083
- "version": "1.14.1",
2084
- "requires": {
2085
- "assert-plus": "^1.0.0"
2086
- }
2087
- },
2088
1884
  "debug": {
2089
1885
  "version": "4.3.3",
2090
1886
  "requires": {
@@ -2100,13 +1896,6 @@
2100
1896
  "destroy": {
2101
1897
  "version": "1.2.0"
2102
1898
  },
2103
- "ecc-jsbn": {
2104
- "version": "0.1.2",
2105
- "requires": {
2106
- "jsbn": "~0.1.0",
2107
- "safer-buffer": "^2.1.0"
2108
- }
2109
- },
2110
1899
  "ecdsa-sig-formatter": {
2111
1900
  "version": "1.0.11",
2112
1901
  "requires": {
@@ -2235,17 +2024,8 @@
2235
2024
  }
2236
2025
  }
2237
2026
  },
2238
- "extend": {
2239
- "version": "3.0.2"
2240
- },
2241
2027
  "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"
2028
+ "version": "1.4.1"
2249
2029
  },
2250
2030
  "fd-slicer": {
2251
2031
  "version": "1.0.1",
@@ -2291,14 +2071,11 @@
2291
2071
  "follow-redirects": {
2292
2072
  "version": "1.15.2"
2293
2073
  },
2294
- "forever-agent": {
2295
- "version": "0.6.1"
2296
- },
2297
2074
  "form-data": {
2298
- "version": "2.3.3",
2075
+ "version": "4.0.0",
2299
2076
  "requires": {
2300
2077
  "asynckit": "^0.4.0",
2301
- "combined-stream": "^1.0.6",
2078
+ "combined-stream": "^1.0.8",
2302
2079
  "mime-types": "^2.1.12"
2303
2080
  }
2304
2081
  },
@@ -2312,35 +2089,23 @@
2312
2089
  "version": "1.1.1"
2313
2090
  },
2314
2091
  "get-intrinsic": {
2315
- "version": "1.2.0",
2092
+ "version": "1.2.1",
2316
2093
  "requires": {
2317
2094
  "function-bind": "^1.1.1",
2318
2095
  "has": "^1.0.3",
2096
+ "has-proto": "^1.0.1",
2319
2097
  "has-symbols": "^1.0.3"
2320
2098
  }
2321
2099
  },
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
2100
  "has": {
2339
2101
  "version": "1.0.3",
2340
2102
  "requires": {
2341
2103
  "function-bind": "^1.1.1"
2342
2104
  }
2343
2105
  },
2106
+ "has-proto": {
2107
+ "version": "1.0.1"
2108
+ },
2344
2109
  "has-symbols": {
2345
2110
  "version": "1.0.3"
2346
2111
  },
@@ -2371,14 +2136,6 @@
2371
2136
  "next-line": "^1.1.0"
2372
2137
  }
2373
2138
  },
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
2139
  "iconv-lite": {
2383
2140
  "version": "0.4.24",
2384
2141
  "requires": {
@@ -2391,24 +2148,6 @@
2391
2148
  "ipaddr.js": {
2392
2149
  "version": "1.9.1"
2393
2150
  },
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
2151
  "jsonwebtoken": {
2413
2152
  "version": "9.0.0",
2414
2153
  "requires": {
@@ -2418,15 +2157,6 @@
2418
2157
  "semver": "^7.3.8"
2419
2158
  }
2420
2159
  },
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
2160
  "jwa": {
2431
2161
  "version": "1.4.1",
2432
2162
  "requires": {
@@ -2519,9 +2249,6 @@
2519
2249
  "nodemailer": {
2520
2250
  "version": "6.6.1"
2521
2251
  },
2522
- "oauth-sign": {
2523
- "version": "0.9.0"
2524
- },
2525
2252
  "object-inspect": {
2526
2253
  "version": "1.12.3"
2527
2254
  },
@@ -2563,9 +2290,6 @@
2563
2290
  "pend": {
2564
2291
  "version": "1.2.0"
2565
2292
  },
2566
- "performance-now": {
2567
- "version": "2.1.0"
2568
- },
2569
2293
  "proxy-addr": {
2570
2294
  "version": "2.0.7",
2571
2295
  "requires": {
@@ -2573,15 +2297,12 @@
2573
2297
  "ipaddr.js": "1.9.1"
2574
2298
  }
2575
2299
  },
2300
+ "proxy-from-env": {
2301
+ "version": "1.1.0"
2302
+ },
2576
2303
  "pseudomap": {
2577
2304
  "version": "1.0.2"
2578
2305
  },
2579
- "psl": {
2580
- "version": "1.9.0"
2581
- },
2582
- "punycode": {
2583
- "version": "2.3.0"
2584
- },
2585
2306
  "qs": {
2586
2307
  "version": "6.9.7"
2587
2308
  },
@@ -2600,42 +2321,6 @@
2600
2321
  "unpipe": "1.0.0"
2601
2322
  }
2602
2323
  },
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
2324
  "request-stats": {
2640
2325
  "version": "3.0.0",
2641
2326
  "requires": {
@@ -2656,7 +2341,7 @@
2656
2341
  "version": "1.2.4"
2657
2342
  },
2658
2343
  "semver": {
2659
- "version": "7.3.8",
2344
+ "version": "7.5.1",
2660
2345
  "requires": {
2661
2346
  "lru-cache": "^6.0.0"
2662
2347
  },
@@ -2748,45 +2433,15 @@
2748
2433
  "object-inspect": "^1.9.0"
2749
2434
  }
2750
2435
  },
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
2436
  "statuses": {
2766
2437
  "version": "1.2.1"
2767
2438
  },
2768
2439
  "toidentifier": {
2769
2440
  "version": "1.0.1"
2770
2441
  },
2771
- "tough-cookie": {
2772
- "version": "2.5.0",
2773
- "requires": {
2774
- "psl": "^1.1.28",
2775
- "punycode": "^2.1.1"
2776
- }
2777
- },
2778
2442
  "tr46": {
2779
2443
  "version": "0.0.3"
2780
2444
  },
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
2445
  "type-is": {
2791
2446
  "version": "1.6.18",
2792
2447
  "requires": {
@@ -2803,12 +2458,6 @@
2803
2458
  "unpipe": {
2804
2459
  "version": "1.0.0"
2805
2460
  },
2806
- "uri-js": {
2807
- "version": "4.4.1",
2808
- "requires": {
2809
- "punycode": "^2.1.0"
2810
- }
2811
- },
2812
2461
  "utils-merge": {
2813
2462
  "version": "1.0.1"
2814
2463
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.5",
5
5
  "repository": {},
6
6
  "license": "SEE LICENSE IN LICENSE file",
7
7
  "main": "./lib",
@@ -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"