@sap/ux-ui5-tooling 1.5.0 → 1.5.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 +8 -0
- package/dist/cli/index.js +3628 -267
- package/dist/middlewares/fiori-tools-appreload.js +1 -1
- package/dist/middlewares/fiori-tools-preview.js +350 -161
- package/dist/middlewares/fiori-tools-proxy.js +870 -649
- package/dist/middlewares/fiori-tools-servestatic.js +1 -1
- package/dist/tasks/cf-deploy/index.js +349 -160
- package/dist/tasks/deploy/index.js +3955 -162
- package/dist/templates/control-property-editor/app.js +1 -1
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -1
- package/package.json +13 -11
|
@@ -20383,9 +20383,11 @@ var httpFollow = (__webpack_require__(36740).http);
|
|
|
20383
20383
|
var httpsFollow = (__webpack_require__(36740).https);
|
|
20384
20384
|
var url = __webpack_require__(57310);
|
|
20385
20385
|
var zlib = __webpack_require__(59796);
|
|
20386
|
-
var
|
|
20386
|
+
var VERSION = (__webpack_require__(59704).version);
|
|
20387
20387
|
var createError = __webpack_require__(48839);
|
|
20388
20388
|
var enhanceError = __webpack_require__(69793);
|
|
20389
|
+
var defaults = __webpack_require__(60130);
|
|
20390
|
+
var Cancel = __webpack_require__(64831);
|
|
20389
20391
|
|
|
20390
20392
|
var isHttps = /https:?/;
|
|
20391
20393
|
|
|
@@ -20417,27 +20419,45 @@ function setProxy(options, proxy, location) {
|
|
|
20417
20419
|
/*eslint consistent-return:0*/
|
|
20418
20420
|
module.exports = function httpAdapter(config) {
|
|
20419
20421
|
return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {
|
|
20422
|
+
var onCanceled;
|
|
20423
|
+
function done() {
|
|
20424
|
+
if (config.cancelToken) {
|
|
20425
|
+
config.cancelToken.unsubscribe(onCanceled);
|
|
20426
|
+
}
|
|
20427
|
+
|
|
20428
|
+
if (config.signal) {
|
|
20429
|
+
config.signal.removeEventListener('abort', onCanceled);
|
|
20430
|
+
}
|
|
20431
|
+
}
|
|
20420
20432
|
var resolve = function resolve(value) {
|
|
20433
|
+
done();
|
|
20421
20434
|
resolvePromise(value);
|
|
20422
20435
|
};
|
|
20436
|
+
var rejected = false;
|
|
20423
20437
|
var reject = function reject(value) {
|
|
20438
|
+
done();
|
|
20439
|
+
rejected = true;
|
|
20424
20440
|
rejectPromise(value);
|
|
20425
20441
|
};
|
|
20426
20442
|
var data = config.data;
|
|
20427
20443
|
var headers = config.headers;
|
|
20444
|
+
var headerNames = {};
|
|
20445
|
+
|
|
20446
|
+
Object.keys(headers).forEach(function storeLowerName(name) {
|
|
20447
|
+
headerNames[name.toLowerCase()] = name;
|
|
20448
|
+
});
|
|
20428
20449
|
|
|
20429
20450
|
// Set User-Agent (required by some servers)
|
|
20430
20451
|
// See https://github.com/axios/axios/issues/69
|
|
20431
|
-
if ('
|
|
20452
|
+
if ('user-agent' in headerNames) {
|
|
20432
20453
|
// User-Agent is specified; handle case where no UA header is desired
|
|
20433
|
-
if (!headers[
|
|
20434
|
-
delete headers['
|
|
20435
|
-
delete headers['user-agent'];
|
|
20454
|
+
if (!headers[headerNames['user-agent']]) {
|
|
20455
|
+
delete headers[headerNames['user-agent']];
|
|
20436
20456
|
}
|
|
20437
20457
|
// Otherwise, use specified value
|
|
20438
20458
|
} else {
|
|
20439
20459
|
// Only set header if it hasn't been set in config
|
|
20440
|
-
headers['User-Agent'] = 'axios/' +
|
|
20460
|
+
headers['User-Agent'] = 'axios/' + VERSION;
|
|
20441
20461
|
}
|
|
20442
20462
|
|
|
20443
20463
|
if (data && !utils.isStream(data)) {
|
|
@@ -20454,8 +20474,14 @@ module.exports = function httpAdapter(config) {
|
|
|
20454
20474
|
));
|
|
20455
20475
|
}
|
|
20456
20476
|
|
|
20477
|
+
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
20478
|
+
return reject(createError('Request body larger than maxBodyLength limit', config));
|
|
20479
|
+
}
|
|
20480
|
+
|
|
20457
20481
|
// Add Content-Length header if data exists
|
|
20458
|
-
|
|
20482
|
+
if (!headerNames['content-length']) {
|
|
20483
|
+
headers['Content-Length'] = data.length;
|
|
20484
|
+
}
|
|
20459
20485
|
}
|
|
20460
20486
|
|
|
20461
20487
|
// HTTP basic authentication
|
|
@@ -20478,13 +20504,23 @@ module.exports = function httpAdapter(config) {
|
|
|
20478
20504
|
auth = urlUsername + ':' + urlPassword;
|
|
20479
20505
|
}
|
|
20480
20506
|
|
|
20481
|
-
if (auth) {
|
|
20482
|
-
delete headers.
|
|
20507
|
+
if (auth && headerNames.authorization) {
|
|
20508
|
+
delete headers[headerNames.authorization];
|
|
20483
20509
|
}
|
|
20484
20510
|
|
|
20485
20511
|
var isHttpsRequest = isHttps.test(protocol);
|
|
20486
20512
|
var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
20487
20513
|
|
|
20514
|
+
try {
|
|
20515
|
+
buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, '');
|
|
20516
|
+
} catch (err) {
|
|
20517
|
+
var customErr = new Error(err.message);
|
|
20518
|
+
customErr.config = config;
|
|
20519
|
+
customErr.url = config.url;
|
|
20520
|
+
customErr.exists = true;
|
|
20521
|
+
reject(customErr);
|
|
20522
|
+
}
|
|
20523
|
+
|
|
20488
20524
|
var options = {
|
|
20489
20525
|
path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''),
|
|
20490
20526
|
method: config.method.toUpperCase(),
|
|
@@ -20571,6 +20607,10 @@ module.exports = function httpAdapter(config) {
|
|
|
20571
20607
|
options.maxBodyLength = config.maxBodyLength;
|
|
20572
20608
|
}
|
|
20573
20609
|
|
|
20610
|
+
if (config.insecureHTTPParser) {
|
|
20611
|
+
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
20612
|
+
}
|
|
20613
|
+
|
|
20574
20614
|
// Create the request
|
|
20575
20615
|
var req = transport.request(options, function handleResponse(res) {
|
|
20576
20616
|
if (req.aborted) return;
|
|
@@ -20618,27 +20658,40 @@ module.exports = function httpAdapter(config) {
|
|
|
20618
20658
|
|
|
20619
20659
|
// make sure the content length is not over the maxContentLength if specified
|
|
20620
20660
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
20661
|
+
// stream.destoy() emit aborted event before calling reject() on Node.js v16
|
|
20662
|
+
rejected = true;
|
|
20621
20663
|
stream.destroy();
|
|
20622
20664
|
reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
20623
20665
|
config, null, lastRequest));
|
|
20624
20666
|
}
|
|
20625
20667
|
});
|
|
20626
20668
|
|
|
20669
|
+
stream.on('aborted', function handlerStreamAborted() {
|
|
20670
|
+
if (rejected) {
|
|
20671
|
+
return;
|
|
20672
|
+
}
|
|
20673
|
+
stream.destroy();
|
|
20674
|
+
reject(createError('error request aborted', config, 'ERR_REQUEST_ABORTED', lastRequest));
|
|
20675
|
+
});
|
|
20676
|
+
|
|
20627
20677
|
stream.on('error', function handleStreamError(err) {
|
|
20628
20678
|
if (req.aborted) return;
|
|
20629
20679
|
reject(enhanceError(err, config, null, lastRequest));
|
|
20630
20680
|
});
|
|
20631
20681
|
|
|
20632
20682
|
stream.on('end', function handleStreamEnd() {
|
|
20633
|
-
|
|
20634
|
-
|
|
20635
|
-
|
|
20636
|
-
|
|
20637
|
-
|
|
20683
|
+
try {
|
|
20684
|
+
var responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);
|
|
20685
|
+
if (config.responseType !== 'arraybuffer') {
|
|
20686
|
+
responseData = responseData.toString(config.responseEncoding);
|
|
20687
|
+
if (!config.responseEncoding || config.responseEncoding === 'utf8') {
|
|
20688
|
+
responseData = utils.stripBOM(responseData);
|
|
20689
|
+
}
|
|
20638
20690
|
}
|
|
20691
|
+
response.data = responseData;
|
|
20692
|
+
} catch (err) {
|
|
20693
|
+
reject(enhanceError(err, config, err.code, response.request, response));
|
|
20639
20694
|
}
|
|
20640
|
-
|
|
20641
|
-
response.data = responseData;
|
|
20642
20695
|
settle(resolve, reject, response);
|
|
20643
20696
|
});
|
|
20644
20697
|
}
|
|
@@ -20650,6 +20703,12 @@ module.exports = function httpAdapter(config) {
|
|
|
20650
20703
|
reject(enhanceError(err, config, null, req));
|
|
20651
20704
|
});
|
|
20652
20705
|
|
|
20706
|
+
// set tcp keep alive to prevent drop connection by peer
|
|
20707
|
+
req.on('socket', function handleRequestSocket(socket) {
|
|
20708
|
+
// default interval of sending ack packet is 1 minute
|
|
20709
|
+
socket.setKeepAlive(true, 1000 * 60);
|
|
20710
|
+
});
|
|
20711
|
+
|
|
20653
20712
|
// Handle request timeout
|
|
20654
20713
|
if (config.timeout) {
|
|
20655
20714
|
// This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
|
|
@@ -20673,25 +20732,39 @@ module.exports = function httpAdapter(config) {
|
|
|
20673
20732
|
// ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
|
|
20674
20733
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
20675
20734
|
req.abort();
|
|
20735
|
+
var timeoutErrorMessage = '';
|
|
20736
|
+
if (config.timeoutErrorMessage) {
|
|
20737
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
20738
|
+
} else {
|
|
20739
|
+
timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
|
|
20740
|
+
}
|
|
20741
|
+
var transitional = config.transitional || defaults.transitional;
|
|
20676
20742
|
reject(createError(
|
|
20677
|
-
|
|
20743
|
+
timeoutErrorMessage,
|
|
20678
20744
|
config,
|
|
20679
|
-
|
|
20745
|
+
transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
|
|
20680
20746
|
req
|
|
20681
20747
|
));
|
|
20682
20748
|
});
|
|
20683
20749
|
}
|
|
20684
20750
|
|
|
20685
|
-
if (config.cancelToken) {
|
|
20751
|
+
if (config.cancelToken || config.signal) {
|
|
20686
20752
|
// Handle cancellation
|
|
20687
|
-
|
|
20753
|
+
// eslint-disable-next-line func-names
|
|
20754
|
+
onCanceled = function(cancel) {
|
|
20688
20755
|
if (req.aborted) return;
|
|
20689
20756
|
|
|
20690
20757
|
req.abort();
|
|
20691
|
-
reject(cancel);
|
|
20692
|
-
}
|
|
20758
|
+
reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
|
|
20759
|
+
};
|
|
20760
|
+
|
|
20761
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
|
20762
|
+
if (config.signal) {
|
|
20763
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
|
|
20764
|
+
}
|
|
20693
20765
|
}
|
|
20694
20766
|
|
|
20767
|
+
|
|
20695
20768
|
// Send the request
|
|
20696
20769
|
if (utils.isStream(data)) {
|
|
20697
20770
|
data.on('error', function handleStreamError(err) {
|
|
@@ -20720,12 +20793,24 @@ var buildFullPath = __webpack_require__(52643);
|
|
|
20720
20793
|
var parseHeaders = __webpack_require__(21451);
|
|
20721
20794
|
var isURLSameOrigin = __webpack_require__(3968);
|
|
20722
20795
|
var createError = __webpack_require__(48839);
|
|
20796
|
+
var defaults = __webpack_require__(60130);
|
|
20797
|
+
var Cancel = __webpack_require__(64831);
|
|
20723
20798
|
|
|
20724
20799
|
module.exports = function xhrAdapter(config) {
|
|
20725
20800
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
20726
20801
|
var requestData = config.data;
|
|
20727
20802
|
var requestHeaders = config.headers;
|
|
20728
20803
|
var responseType = config.responseType;
|
|
20804
|
+
var onCanceled;
|
|
20805
|
+
function done() {
|
|
20806
|
+
if (config.cancelToken) {
|
|
20807
|
+
config.cancelToken.unsubscribe(onCanceled);
|
|
20808
|
+
}
|
|
20809
|
+
|
|
20810
|
+
if (config.signal) {
|
|
20811
|
+
config.signal.removeEventListener('abort', onCanceled);
|
|
20812
|
+
}
|
|
20813
|
+
}
|
|
20729
20814
|
|
|
20730
20815
|
if (utils.isFormData(requestData)) {
|
|
20731
20816
|
delete requestHeaders['Content-Type']; // Let the browser set it
|
|
@@ -20763,7 +20848,13 @@ module.exports = function xhrAdapter(config) {
|
|
|
20763
20848
|
request: request
|
|
20764
20849
|
};
|
|
20765
20850
|
|
|
20766
|
-
settle(
|
|
20851
|
+
settle(function _resolve(value) {
|
|
20852
|
+
resolve(value);
|
|
20853
|
+
done();
|
|
20854
|
+
}, function _reject(err) {
|
|
20855
|
+
reject(err);
|
|
20856
|
+
done();
|
|
20857
|
+
}, response);
|
|
20767
20858
|
|
|
20768
20859
|
// Clean up request
|
|
20769
20860
|
request = null;
|
|
@@ -20816,14 +20907,15 @@ module.exports = function xhrAdapter(config) {
|
|
|
20816
20907
|
|
|
20817
20908
|
// Handle timeout
|
|
20818
20909
|
request.ontimeout = function handleTimeout() {
|
|
20819
|
-
var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
|
|
20910
|
+
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
20911
|
+
var transitional = config.transitional || defaults.transitional;
|
|
20820
20912
|
if (config.timeoutErrorMessage) {
|
|
20821
20913
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
20822
20914
|
}
|
|
20823
20915
|
reject(createError(
|
|
20824
20916
|
timeoutErrorMessage,
|
|
20825
20917
|
config,
|
|
20826
|
-
|
|
20918
|
+
transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
|
|
20827
20919
|
request));
|
|
20828
20920
|
|
|
20829
20921
|
// Clean up request
|
|
@@ -20877,18 +20969,22 @@ module.exports = function xhrAdapter(config) {
|
|
|
20877
20969
|
request.upload.addEventListener('progress', config.onUploadProgress);
|
|
20878
20970
|
}
|
|
20879
20971
|
|
|
20880
|
-
if (config.cancelToken) {
|
|
20972
|
+
if (config.cancelToken || config.signal) {
|
|
20881
20973
|
// Handle cancellation
|
|
20882
|
-
|
|
20974
|
+
// eslint-disable-next-line func-names
|
|
20975
|
+
onCanceled = function(cancel) {
|
|
20883
20976
|
if (!request) {
|
|
20884
20977
|
return;
|
|
20885
20978
|
}
|
|
20886
|
-
|
|
20979
|
+
reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
|
|
20887
20980
|
request.abort();
|
|
20888
|
-
reject(cancel);
|
|
20889
|
-
// Clean up request
|
|
20890
20981
|
request = null;
|
|
20891
|
-
}
|
|
20982
|
+
};
|
|
20983
|
+
|
|
20984
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
|
20985
|
+
if (config.signal) {
|
|
20986
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
|
|
20987
|
+
}
|
|
20892
20988
|
}
|
|
20893
20989
|
|
|
20894
20990
|
if (!requestData) {
|
|
@@ -20931,6 +21027,11 @@ function createInstance(defaultConfig) {
|
|
|
20931
21027
|
// Copy context to instance
|
|
20932
21028
|
utils.extend(instance, context);
|
|
20933
21029
|
|
|
21030
|
+
// Factory for creating new instances
|
|
21031
|
+
instance.create = function create(instanceConfig) {
|
|
21032
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
21033
|
+
};
|
|
21034
|
+
|
|
20934
21035
|
return instance;
|
|
20935
21036
|
}
|
|
20936
21037
|
|
|
@@ -20940,15 +21041,11 @@ var axios = createInstance(defaults);
|
|
|
20940
21041
|
// Expose Axios class to allow class inheritance
|
|
20941
21042
|
axios.Axios = Axios;
|
|
20942
21043
|
|
|
20943
|
-
// Factory for creating new instances
|
|
20944
|
-
axios.create = function create(instanceConfig) {
|
|
20945
|
-
return createInstance(mergeConfig(axios.defaults, instanceConfig));
|
|
20946
|
-
};
|
|
20947
|
-
|
|
20948
21044
|
// Expose Cancel & CancelToken
|
|
20949
21045
|
axios.Cancel = __webpack_require__(64831);
|
|
20950
21046
|
axios.CancelToken = __webpack_require__(82086);
|
|
20951
21047
|
axios.isCancel = __webpack_require__(27777);
|
|
21048
|
+
axios.VERSION = (__webpack_require__(59704).version);
|
|
20952
21049
|
|
|
20953
21050
|
// Expose all/spread
|
|
20954
21051
|
axios.all = function all(promises) {
|
|
@@ -21014,11 +21111,42 @@ function CancelToken(executor) {
|
|
|
21014
21111
|
}
|
|
21015
21112
|
|
|
21016
21113
|
var resolvePromise;
|
|
21114
|
+
|
|
21017
21115
|
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
21018
21116
|
resolvePromise = resolve;
|
|
21019
21117
|
});
|
|
21020
21118
|
|
|
21021
21119
|
var token = this;
|
|
21120
|
+
|
|
21121
|
+
// eslint-disable-next-line func-names
|
|
21122
|
+
this.promise.then(function(cancel) {
|
|
21123
|
+
if (!token._listeners) return;
|
|
21124
|
+
|
|
21125
|
+
var i;
|
|
21126
|
+
var l = token._listeners.length;
|
|
21127
|
+
|
|
21128
|
+
for (i = 0; i < l; i++) {
|
|
21129
|
+
token._listeners[i](cancel);
|
|
21130
|
+
}
|
|
21131
|
+
token._listeners = null;
|
|
21132
|
+
});
|
|
21133
|
+
|
|
21134
|
+
// eslint-disable-next-line func-names
|
|
21135
|
+
this.promise.then = function(onfulfilled) {
|
|
21136
|
+
var _resolve;
|
|
21137
|
+
// eslint-disable-next-line func-names
|
|
21138
|
+
var promise = new Promise(function(resolve) {
|
|
21139
|
+
token.subscribe(resolve);
|
|
21140
|
+
_resolve = resolve;
|
|
21141
|
+
}).then(onfulfilled);
|
|
21142
|
+
|
|
21143
|
+
promise.cancel = function reject() {
|
|
21144
|
+
token.unsubscribe(_resolve);
|
|
21145
|
+
};
|
|
21146
|
+
|
|
21147
|
+
return promise;
|
|
21148
|
+
};
|
|
21149
|
+
|
|
21022
21150
|
executor(function cancel(message) {
|
|
21023
21151
|
if (token.reason) {
|
|
21024
21152
|
// Cancellation has already been requested
|
|
@@ -21039,6 +21167,37 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
21039
21167
|
}
|
|
21040
21168
|
};
|
|
21041
21169
|
|
|
21170
|
+
/**
|
|
21171
|
+
* Subscribe to the cancel signal
|
|
21172
|
+
*/
|
|
21173
|
+
|
|
21174
|
+
CancelToken.prototype.subscribe = function subscribe(listener) {
|
|
21175
|
+
if (this.reason) {
|
|
21176
|
+
listener(this.reason);
|
|
21177
|
+
return;
|
|
21178
|
+
}
|
|
21179
|
+
|
|
21180
|
+
if (this._listeners) {
|
|
21181
|
+
this._listeners.push(listener);
|
|
21182
|
+
} else {
|
|
21183
|
+
this._listeners = [listener];
|
|
21184
|
+
}
|
|
21185
|
+
};
|
|
21186
|
+
|
|
21187
|
+
/**
|
|
21188
|
+
* Unsubscribe from the cancel signal
|
|
21189
|
+
*/
|
|
21190
|
+
|
|
21191
|
+
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
21192
|
+
if (!this._listeners) {
|
|
21193
|
+
return;
|
|
21194
|
+
}
|
|
21195
|
+
var index = this._listeners.indexOf(listener);
|
|
21196
|
+
if (index !== -1) {
|
|
21197
|
+
this._listeners.splice(index, 1);
|
|
21198
|
+
}
|
|
21199
|
+
};
|
|
21200
|
+
|
|
21042
21201
|
/**
|
|
21043
21202
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
21044
21203
|
* cancels the `CancelToken`.
|
|
@@ -21104,14 +21263,14 @@ function Axios(instanceConfig) {
|
|
|
21104
21263
|
*
|
|
21105
21264
|
* @param {Object} config The config specific for this request (merged with this.defaults)
|
|
21106
21265
|
*/
|
|
21107
|
-
Axios.prototype.request = function request(config) {
|
|
21266
|
+
Axios.prototype.request = function request(configOrUrl, config) {
|
|
21108
21267
|
/*eslint no-param-reassign:0*/
|
|
21109
21268
|
// Allow for axios('example/url'[, config]) a la fetch API
|
|
21110
|
-
if (typeof
|
|
21111
|
-
config = arguments[1] || {};
|
|
21112
|
-
config.url = arguments[0];
|
|
21113
|
-
} else {
|
|
21269
|
+
if (typeof configOrUrl === 'string') {
|
|
21114
21270
|
config = config || {};
|
|
21271
|
+
config.url = configOrUrl;
|
|
21272
|
+
} else {
|
|
21273
|
+
config = configOrUrl || {};
|
|
21115
21274
|
}
|
|
21116
21275
|
|
|
21117
21276
|
config = mergeConfig(this.defaults, config);
|
|
@@ -21129,9 +21288,9 @@ Axios.prototype.request = function request(config) {
|
|
|
21129
21288
|
|
|
21130
21289
|
if (transitional !== undefined) {
|
|
21131
21290
|
validator.assertOptions(transitional, {
|
|
21132
|
-
silentJSONParsing: validators.transitional(validators.boolean
|
|
21133
|
-
forcedJSONParsing: validators.transitional(validators.boolean
|
|
21134
|
-
clarifyTimeoutError: validators.transitional(validators.boolean
|
|
21291
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
21292
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
21293
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
21135
21294
|
}, false);
|
|
21136
21295
|
}
|
|
21137
21296
|
|
|
@@ -21354,6 +21513,7 @@ var utils = __webpack_require__(97770);
|
|
|
21354
21513
|
var transformData = __webpack_require__(51672);
|
|
21355
21514
|
var isCancel = __webpack_require__(27777);
|
|
21356
21515
|
var defaults = __webpack_require__(60130);
|
|
21516
|
+
var Cancel = __webpack_require__(64831);
|
|
21357
21517
|
|
|
21358
21518
|
/**
|
|
21359
21519
|
* Throws a `Cancel` if cancellation has been requested.
|
|
@@ -21362,6 +21522,10 @@ function throwIfCancellationRequested(config) {
|
|
|
21362
21522
|
if (config.cancelToken) {
|
|
21363
21523
|
config.cancelToken.throwIfRequested();
|
|
21364
21524
|
}
|
|
21525
|
+
|
|
21526
|
+
if (config.signal && config.signal.aborted) {
|
|
21527
|
+
throw new Cancel('canceled');
|
|
21528
|
+
}
|
|
21365
21529
|
}
|
|
21366
21530
|
|
|
21367
21531
|
/**
|
|
@@ -21475,7 +21639,8 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
|
21475
21639
|
stack: this.stack,
|
|
21476
21640
|
// Axios
|
|
21477
21641
|
config: this.config,
|
|
21478
|
-
code: this.code
|
|
21642
|
+
code: this.code,
|
|
21643
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
21479
21644
|
};
|
|
21480
21645
|
};
|
|
21481
21646
|
return error;
|
|
@@ -21505,17 +21670,6 @@ module.exports = function mergeConfig(config1, config2) {
|
|
|
21505
21670
|
config2 = config2 || {};
|
|
21506
21671
|
var config = {};
|
|
21507
21672
|
|
|
21508
|
-
var valueFromConfig2Keys = ['url', 'method', 'data'];
|
|
21509
|
-
var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
|
|
21510
|
-
var defaultToConfig2Keys = [
|
|
21511
|
-
'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
|
|
21512
|
-
'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
|
|
21513
|
-
'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
|
|
21514
|
-
'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
|
|
21515
|
-
'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
|
|
21516
|
-
];
|
|
21517
|
-
var directMergeKeys = ['validateStatus'];
|
|
21518
|
-
|
|
21519
21673
|
function getMergedValue(target, source) {
|
|
21520
21674
|
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
21521
21675
|
return utils.merge(target, source);
|
|
@@ -21527,51 +21681,74 @@ module.exports = function mergeConfig(config1, config2) {
|
|
|
21527
21681
|
return source;
|
|
21528
21682
|
}
|
|
21529
21683
|
|
|
21684
|
+
// eslint-disable-next-line consistent-return
|
|
21530
21685
|
function mergeDeepProperties(prop) {
|
|
21531
21686
|
if (!utils.isUndefined(config2[prop])) {
|
|
21532
|
-
|
|
21687
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
21533
21688
|
} else if (!utils.isUndefined(config1[prop])) {
|
|
21534
|
-
|
|
21689
|
+
return getMergedValue(undefined, config1[prop]);
|
|
21535
21690
|
}
|
|
21536
21691
|
}
|
|
21537
21692
|
|
|
21538
|
-
|
|
21693
|
+
// eslint-disable-next-line consistent-return
|
|
21694
|
+
function valueFromConfig2(prop) {
|
|
21539
21695
|
if (!utils.isUndefined(config2[prop])) {
|
|
21540
|
-
|
|
21696
|
+
return getMergedValue(undefined, config2[prop]);
|
|
21541
21697
|
}
|
|
21542
|
-
}
|
|
21543
|
-
|
|
21544
|
-
utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
21698
|
+
}
|
|
21545
21699
|
|
|
21546
|
-
|
|
21700
|
+
// eslint-disable-next-line consistent-return
|
|
21701
|
+
function defaultToConfig2(prop) {
|
|
21547
21702
|
if (!utils.isUndefined(config2[prop])) {
|
|
21548
|
-
|
|
21703
|
+
return getMergedValue(undefined, config2[prop]);
|
|
21549
21704
|
} else if (!utils.isUndefined(config1[prop])) {
|
|
21550
|
-
|
|
21705
|
+
return getMergedValue(undefined, config1[prop]);
|
|
21551
21706
|
}
|
|
21552
|
-
}
|
|
21707
|
+
}
|
|
21553
21708
|
|
|
21554
|
-
|
|
21709
|
+
// eslint-disable-next-line consistent-return
|
|
21710
|
+
function mergeDirectKeys(prop) {
|
|
21555
21711
|
if (prop in config2) {
|
|
21556
|
-
|
|
21712
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
21557
21713
|
} else if (prop in config1) {
|
|
21558
|
-
|
|
21559
|
-
}
|
|
21560
|
-
}
|
|
21561
|
-
|
|
21562
|
-
var
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21714
|
+
return getMergedValue(undefined, config1[prop]);
|
|
21715
|
+
}
|
|
21716
|
+
}
|
|
21717
|
+
|
|
21718
|
+
var mergeMap = {
|
|
21719
|
+
'url': valueFromConfig2,
|
|
21720
|
+
'method': valueFromConfig2,
|
|
21721
|
+
'data': valueFromConfig2,
|
|
21722
|
+
'baseURL': defaultToConfig2,
|
|
21723
|
+
'transformRequest': defaultToConfig2,
|
|
21724
|
+
'transformResponse': defaultToConfig2,
|
|
21725
|
+
'paramsSerializer': defaultToConfig2,
|
|
21726
|
+
'timeout': defaultToConfig2,
|
|
21727
|
+
'timeoutMessage': defaultToConfig2,
|
|
21728
|
+
'withCredentials': defaultToConfig2,
|
|
21729
|
+
'adapter': defaultToConfig2,
|
|
21730
|
+
'responseType': defaultToConfig2,
|
|
21731
|
+
'xsrfCookieName': defaultToConfig2,
|
|
21732
|
+
'xsrfHeaderName': defaultToConfig2,
|
|
21733
|
+
'onUploadProgress': defaultToConfig2,
|
|
21734
|
+
'onDownloadProgress': defaultToConfig2,
|
|
21735
|
+
'decompress': defaultToConfig2,
|
|
21736
|
+
'maxContentLength': defaultToConfig2,
|
|
21737
|
+
'maxBodyLength': defaultToConfig2,
|
|
21738
|
+
'transport': defaultToConfig2,
|
|
21739
|
+
'httpAgent': defaultToConfig2,
|
|
21740
|
+
'httpsAgent': defaultToConfig2,
|
|
21741
|
+
'cancelToken': defaultToConfig2,
|
|
21742
|
+
'socketPath': defaultToConfig2,
|
|
21743
|
+
'responseEncoding': defaultToConfig2,
|
|
21744
|
+
'validateStatus': mergeDirectKeys
|
|
21745
|
+
};
|
|
21573
21746
|
|
|
21574
|
-
utils.forEach(
|
|
21747
|
+
utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
21748
|
+
var merge = mergeMap[prop] || mergeDeepProperties;
|
|
21749
|
+
var configValue = merge(prop);
|
|
21750
|
+
(utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
21751
|
+
});
|
|
21575
21752
|
|
|
21576
21753
|
return config;
|
|
21577
21754
|
};
|
|
@@ -21727,7 +21904,7 @@ var defaults = {
|
|
|
21727
21904
|
}],
|
|
21728
21905
|
|
|
21729
21906
|
transformResponse: [function transformResponse(data) {
|
|
21730
|
-
var transitional = this.transitional;
|
|
21907
|
+
var transitional = this.transitional || defaults.transitional;
|
|
21731
21908
|
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
21732
21909
|
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
21733
21910
|
var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
|
|
@@ -21762,12 +21939,12 @@ var defaults = {
|
|
|
21762
21939
|
|
|
21763
21940
|
validateStatus: function validateStatus(status) {
|
|
21764
21941
|
return status >= 200 && status < 300;
|
|
21765
|
-
}
|
|
21766
|
-
};
|
|
21942
|
+
},
|
|
21767
21943
|
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21944
|
+
headers: {
|
|
21945
|
+
common: {
|
|
21946
|
+
'Accept': 'application/json, text/plain, */*'
|
|
21947
|
+
}
|
|
21771
21948
|
}
|
|
21772
21949
|
};
|
|
21773
21950
|
|
|
@@ -21782,6 +21959,15 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
21782
21959
|
module.exports = defaults;
|
|
21783
21960
|
|
|
21784
21961
|
|
|
21962
|
+
/***/ }),
|
|
21963
|
+
|
|
21964
|
+
/***/ 59704:
|
|
21965
|
+
/***/ ((module) => {
|
|
21966
|
+
|
|
21967
|
+
module.exports = {
|
|
21968
|
+
"version": "0.26.0"
|
|
21969
|
+
};
|
|
21970
|
+
|
|
21785
21971
|
/***/ }),
|
|
21786
21972
|
|
|
21787
21973
|
/***/ 36542:
|
|
@@ -21980,18 +22166,20 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
21980
22166
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
21981
22167
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
21982
22168
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
21983
|
-
return /^([a-z][a-z\d
|
|
22169
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
21984
22170
|
};
|
|
21985
22171
|
|
|
21986
22172
|
|
|
21987
22173
|
/***/ }),
|
|
21988
22174
|
|
|
21989
22175
|
/***/ 4997:
|
|
21990
|
-
/***/ ((module) => {
|
|
22176
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
21991
22177
|
|
|
21992
22178
|
"use strict";
|
|
21993
22179
|
|
|
21994
22180
|
|
|
22181
|
+
var utils = __webpack_require__(97770);
|
|
22182
|
+
|
|
21995
22183
|
/**
|
|
21996
22184
|
* Determines whether the payload is an error thrown by Axios
|
|
21997
22185
|
*
|
|
@@ -21999,7 +22187,7 @@ module.exports = function isAbsoluteURL(url) {
|
|
|
21999
22187
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
22000
22188
|
*/
|
|
22001
22189
|
module.exports = function isAxiosError(payload) {
|
|
22002
|
-
return (
|
|
22190
|
+
return utils.isObject(payload) && (payload.isAxiosError === true);
|
|
22003
22191
|
};
|
|
22004
22192
|
|
|
22005
22193
|
|
|
@@ -22203,7 +22391,7 @@ module.exports = function spread(callback) {
|
|
|
22203
22391
|
"use strict";
|
|
22204
22392
|
|
|
22205
22393
|
|
|
22206
|
-
var
|
|
22394
|
+
var VERSION = (__webpack_require__(59704).version);
|
|
22207
22395
|
|
|
22208
22396
|
var validators = {};
|
|
22209
22397
|
|
|
@@ -22215,48 +22403,26 @@ var validators = {};
|
|
|
22215
22403
|
});
|
|
22216
22404
|
|
|
22217
22405
|
var deprecatedWarnings = {};
|
|
22218
|
-
var currentVerArr = pkg.version.split('.');
|
|
22219
|
-
|
|
22220
|
-
/**
|
|
22221
|
-
* Compare package versions
|
|
22222
|
-
* @param {string} version
|
|
22223
|
-
* @param {string?} thanVersion
|
|
22224
|
-
* @returns {boolean}
|
|
22225
|
-
*/
|
|
22226
|
-
function isOlderVersion(version, thanVersion) {
|
|
22227
|
-
var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
|
|
22228
|
-
var destVer = version.split('.');
|
|
22229
|
-
for (var i = 0; i < 3; i++) {
|
|
22230
|
-
if (pkgVersionArr[i] > destVer[i]) {
|
|
22231
|
-
return true;
|
|
22232
|
-
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
22233
|
-
return false;
|
|
22234
|
-
}
|
|
22235
|
-
}
|
|
22236
|
-
return false;
|
|
22237
|
-
}
|
|
22238
22406
|
|
|
22239
22407
|
/**
|
|
22240
22408
|
* Transitional option validator
|
|
22241
|
-
* @param {function|boolean?} validator
|
|
22242
|
-
* @param {string?} version
|
|
22243
|
-
* @param {string} message
|
|
22409
|
+
* @param {function|boolean?} validator - set to false if the transitional option has been removed
|
|
22410
|
+
* @param {string?} version - deprecated version / removed since version
|
|
22411
|
+
* @param {string?} message - some message with additional info
|
|
22244
22412
|
* @returns {function}
|
|
22245
22413
|
*/
|
|
22246
22414
|
validators.transitional = function transitional(validator, version, message) {
|
|
22247
|
-
var isDeprecated = version && isOlderVersion(version);
|
|
22248
|
-
|
|
22249
22415
|
function formatMessage(opt, desc) {
|
|
22250
|
-
return '[Axios v' +
|
|
22416
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
22251
22417
|
}
|
|
22252
22418
|
|
|
22253
22419
|
// eslint-disable-next-line func-names
|
|
22254
22420
|
return function(value, opt, opts) {
|
|
22255
22421
|
if (validator === false) {
|
|
22256
|
-
throw new Error(formatMessage(opt, ' has been removed in ' + version));
|
|
22422
|
+
throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
|
|
22257
22423
|
}
|
|
22258
22424
|
|
|
22259
|
-
if (
|
|
22425
|
+
if (version && !deprecatedWarnings[opt]) {
|
|
22260
22426
|
deprecatedWarnings[opt] = true;
|
|
22261
22427
|
// eslint-disable-next-line no-console
|
|
22262
22428
|
console.warn(
|
|
@@ -22302,7 +22468,6 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
22302
22468
|
}
|
|
22303
22469
|
|
|
22304
22470
|
module.exports = {
|
|
22305
|
-
isOlderVersion: isOlderVersion,
|
|
22306
22471
|
assertOptions: assertOptions,
|
|
22307
22472
|
validators: validators
|
|
22308
22473
|
};
|
|
@@ -22329,7 +22494,7 @@ var toString = Object.prototype.toString;
|
|
|
22329
22494
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
22330
22495
|
*/
|
|
22331
22496
|
function isArray(val) {
|
|
22332
|
-
return
|
|
22497
|
+
return Array.isArray(val);
|
|
22333
22498
|
}
|
|
22334
22499
|
|
|
22335
22500
|
/**
|
|
@@ -22370,7 +22535,7 @@ function isArrayBuffer(val) {
|
|
|
22370
22535
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
22371
22536
|
*/
|
|
22372
22537
|
function isFormData(val) {
|
|
22373
|
-
return (
|
|
22538
|
+
return toString.call(val) === '[object FormData]';
|
|
22374
22539
|
}
|
|
22375
22540
|
|
|
22376
22541
|
/**
|
|
@@ -22384,7 +22549,7 @@ function isArrayBufferView(val) {
|
|
|
22384
22549
|
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
|
22385
22550
|
result = ArrayBuffer.isView(val);
|
|
22386
22551
|
} else {
|
|
22387
|
-
result = (val) && (val.buffer) && (val.buffer
|
|
22552
|
+
result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
|
|
22388
22553
|
}
|
|
22389
22554
|
return result;
|
|
22390
22555
|
}
|
|
@@ -22491,7 +22656,7 @@ function isStream(val) {
|
|
|
22491
22656
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
22492
22657
|
*/
|
|
22493
22658
|
function isURLSearchParams(val) {
|
|
22494
|
-
return
|
|
22659
|
+
return toString.call(val) === '[object URLSearchParams]';
|
|
22495
22660
|
}
|
|
22496
22661
|
|
|
22497
22662
|
/**
|
|
@@ -48429,8 +48594,9 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
|
48429
48594
|
var redirectUrlParts = url.parse(redirectUrl);
|
|
48430
48595
|
Object.assign(this._options, redirectUrlParts);
|
|
48431
48596
|
|
|
48432
|
-
// Drop
|
|
48433
|
-
if (
|
|
48597
|
+
// Drop confidential headers when redirecting to another scheme:domain
|
|
48598
|
+
if (redirectUrlParts.protocol !== currentUrlParts.protocol ||
|
|
48599
|
+
!isSameOrSubdomain(redirectUrlParts.host, currentHost)) {
|
|
48434
48600
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
48435
48601
|
}
|
|
48436
48602
|
|
|
@@ -48596,7 +48762,10 @@ function abortRequest(request) {
|
|
|
48596
48762
|
request.abort();
|
|
48597
48763
|
}
|
|
48598
48764
|
|
|
48599
|
-
function
|
|
48765
|
+
function isSameOrSubdomain(subdomain, domain) {
|
|
48766
|
+
if (subdomain === domain) {
|
|
48767
|
+
return true;
|
|
48768
|
+
}
|
|
48600
48769
|
const dot = subdomain.length - domain.length - 1;
|
|
48601
48770
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
48602
48771
|
}
|
|
@@ -105076,10 +105245,7 @@ async function newHttpClient({ system, credentials, log, existingConnection, aut
|
|
|
105076
105245
|
postConnectionCallback
|
|
105077
105246
|
}));
|
|
105078
105247
|
const headers = {
|
|
105079
|
-
Cookie: connection.cookies.toString()
|
|
105080
|
-
common: {
|
|
105081
|
-
Accept: 'application/json,application/xml,text/plain,*/*'
|
|
105082
|
-
}
|
|
105248
|
+
Cookie: connection.cookies.toString()
|
|
105083
105249
|
};
|
|
105084
105250
|
if (connection.xsrfToken) {
|
|
105085
105251
|
headers['x-csrf-token'] = connection.xsrfToken;
|
|
@@ -105095,6 +105261,8 @@ async function newHttpClient({ system, credentials, log, existingConnection, aut
|
|
|
105095
105261
|
if (connection === null || connection === void 0 ? void 0 : connection.auth) {
|
|
105096
105262
|
config.auth = connection.auth;
|
|
105097
105263
|
}
|
|
105264
|
+
// @see https://axios-http.com/docs/config_defaults
|
|
105265
|
+
axios_1.default.defaults.headers.common['Accept'] = 'application/json,application/xml,text/plain,*/*';
|
|
105098
105266
|
const httpClient = axios_1.default.create(config);
|
|
105099
105267
|
return { connection, httpClient };
|
|
105100
105268
|
}
|
|
@@ -107475,7 +107643,7 @@ exports.guessAuthType = guessAuthType;
|
|
|
107475
107643
|
*/
|
|
107476
107644
|
async function getOnPremSystem(system) {
|
|
107477
107645
|
let sapSystem = await __1.getSapSystem(system.url, system.client);
|
|
107478
|
-
let
|
|
107646
|
+
let isNewSapSystem = false;
|
|
107479
107647
|
const creds = {
|
|
107480
107648
|
username: system.credentials.systemUsername,
|
|
107481
107649
|
password: system.credentials.systemPassword
|
|
@@ -107486,9 +107654,9 @@ async function getOnPremSystem(system) {
|
|
|
107486
107654
|
}
|
|
107487
107655
|
else {
|
|
107488
107656
|
sapSystem = __1.newSapSystem(system.name || '', system.url, system.client, creds, true);
|
|
107489
|
-
|
|
107657
|
+
isNewSapSystem = true;
|
|
107490
107658
|
}
|
|
107491
|
-
return
|
|
107659
|
+
return { sapSystem, isNewSapSystem };
|
|
107492
107660
|
}
|
|
107493
107661
|
exports.getOnPremSystem = getOnPremSystem;
|
|
107494
107662
|
/**
|
|
@@ -107498,7 +107666,8 @@ exports.getOnPremSystem = getOnPremSystem;
|
|
|
107498
107666
|
*/
|
|
107499
107667
|
async function getBTPSystem(system, savedSapSystemServiceKey) {
|
|
107500
107668
|
let sapSystem;
|
|
107501
|
-
let
|
|
107669
|
+
let isNewSapSystem = false;
|
|
107670
|
+
// same as original system opened
|
|
107502
107671
|
if (system.url && system.credentials === savedSapSystemServiceKey) {
|
|
107503
107672
|
sapSystem = await __1.getSapSystem(system.url, system.client);
|
|
107504
107673
|
}
|
|
@@ -107506,12 +107675,15 @@ async function getBTPSystem(system, savedSapSystemServiceKey) {
|
|
|
107506
107675
|
sapSystem.name = system.name || '';
|
|
107507
107676
|
}
|
|
107508
107677
|
else {
|
|
107509
|
-
|
|
107510
|
-
if
|
|
107511
|
-
|
|
107678
|
+
const newBTPSapSystem = __1.newSapSystemForSteampunk(system.name || '', system.credentials);
|
|
107679
|
+
// check if 'new' system already exists in store
|
|
107680
|
+
sapSystem = await __1.getSapSystem(newBTPSapSystem.url, newBTPSapSystem.client);
|
|
107681
|
+
if (!sapSystem) {
|
|
107682
|
+
isNewSapSystem = true;
|
|
107683
|
+
sapSystem = newBTPSapSystem;
|
|
107512
107684
|
}
|
|
107513
107685
|
}
|
|
107514
|
-
return
|
|
107686
|
+
return { sapSystem, isNewSapSystem };
|
|
107515
107687
|
}
|
|
107516
107688
|
exports.getBTPSystem = getBTPSystem;
|
|
107517
107689
|
async function isSystemNameValid(newName, savedSystemName) {
|
|
@@ -113158,10 +113330,6 @@ var EventName;
|
|
|
113158
113330
|
EventName["APP_INFO_COMMAND_STARTED"] = "APP_INFO_COMMAND_STARTED";
|
|
113159
113331
|
EventName["APP_INFO_LINK_CLICKED"] = "APP_INFO_LINK_CLICKED";
|
|
113160
113332
|
EventName["APP_INFO_STARTUP_TIME"] = "APP_INFO_STARTUP_TIME";
|
|
113161
|
-
// Unique to Application Generator
|
|
113162
|
-
EventName["GENERATION_SUCCESS"] = "GENERATION_SUCCESS";
|
|
113163
|
-
EventName["GENERATION_INSTALL_FAIL"] = "GENERATION_INSTALL_FAIL";
|
|
113164
|
-
EventName["GENERATION_WRITING_FAIL"] = "GENERATION_WRITING_FAIL";
|
|
113165
113333
|
// Unique to Service Modeler
|
|
113166
113334
|
EventName["SRV_MODELLER_SETTINGS_CHANGED"] = "SRV_MODELER_SETTINGS_CHANGED";
|
|
113167
113335
|
EventName["SRV_MODELER_ACTIVATED"] = "SRV_MODELER_ACTIVATED";
|
|
@@ -113180,6 +113348,8 @@ var EventName;
|
|
|
113180
113348
|
EventName["MIGRATION_ACTIVATED"] = "MIGRATION_ACTIVATED";
|
|
113181
113349
|
EventName["MIGRATION_BACKEND_LOAD"] = "MIGRATION_BACKEND_LOAD";
|
|
113182
113350
|
EventName["MIGRATION_COMPLETED"] = "MIGRATION_COMPLETED";
|
|
113351
|
+
EventName["MIGRATION_SUCCESS"] = "MIGRATION_SUCCESS";
|
|
113352
|
+
EventName["MIGRATION_FAILED"] = "MIGRATION_FAILED";
|
|
113183
113353
|
EventName["MIGRATION_SHOW_INFO_PAGE"] = "MIGRATION_SHOW_INFO_PAGE";
|
|
113184
113354
|
EventName["DEPLOY_CONFIG"] = "DEPLOY_CONFIG";
|
|
113185
113355
|
EventName["DEPLOY"] = "DEPLOY";
|
|
@@ -113863,6 +114033,7 @@ class ToolsSuiteTelemetryClient extends appInsightClient_1.ApplicationInsightCli
|
|
|
113863
114033
|
super(applicationKey, extensionName, extensionVersion);
|
|
113864
114034
|
}
|
|
113865
114035
|
/**
|
|
114036
|
+
* @deprecated
|
|
113866
114037
|
* Send a telemetry event to Azure Application Insights
|
|
113867
114038
|
* @param eventName Categorize the type of the event within the scope of an extension.
|
|
113868
114039
|
* @param properties A set of string properties to be reported
|
|
@@ -113872,14 +114043,40 @@ class ToolsSuiteTelemetryClient extends appInsightClient_1.ApplicationInsightCli
|
|
|
113872
114043
|
* @param ignoreSettings Ignore telemetryEnabled settings and skip submitting telemetry data
|
|
113873
114044
|
*/
|
|
113874
114045
|
async report(eventName, properties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings) {
|
|
113875
|
-
const
|
|
114046
|
+
const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
|
|
114047
|
+
const commonProperties = {
|
|
114048
|
+
v: this.extensionVersion,
|
|
114049
|
+
datetime: date_1.localDatetimeToUTC()
|
|
114050
|
+
};
|
|
113876
114051
|
const finalProperties = {
|
|
113877
114052
|
...properties,
|
|
113878
|
-
...
|
|
114053
|
+
...fioriProjectCommonProperties,
|
|
114054
|
+
...commonProperties
|
|
114055
|
+
};
|
|
114056
|
+
await super.report(eventName, finalProperties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings);
|
|
114057
|
+
}
|
|
114058
|
+
/**
|
|
114059
|
+
* Send a telemetry event to Azure Application Insights
|
|
114060
|
+
* @param event Telemetry Event
|
|
114061
|
+
* @param sampleRate Sampling the event to be sent
|
|
114062
|
+
* @param telemetryHelperProperties Properties that are passed to the processCommonPropertiesHelper function to assit generate project specific telemetry data
|
|
114063
|
+
* @param ignoreSettings Ignore telemetryEnabled settings and skip submitting telemetry data
|
|
114064
|
+
*/
|
|
114065
|
+
async reportEvent(event, sampleRate, telemetryHelperProperties, ignoreSettings) {
|
|
114066
|
+
const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
|
|
114067
|
+
const telemetryEventCommonProperties = {
|
|
113879
114068
|
v: this.extensionVersion,
|
|
113880
114069
|
datetime: date_1.localDatetimeToUTC()
|
|
113881
114070
|
};
|
|
113882
|
-
|
|
114071
|
+
const finalProperties = {
|
|
114072
|
+
...event.properties,
|
|
114073
|
+
...fioriProjectCommonProperties,
|
|
114074
|
+
...telemetryEventCommonProperties
|
|
114075
|
+
};
|
|
114076
|
+
const finalMeasurements = {
|
|
114077
|
+
...event.measurements
|
|
114078
|
+
};
|
|
114079
|
+
await super.report(event.eventName, finalProperties, finalMeasurements, sampleRate, telemetryHelperProperties, ignoreSettings);
|
|
113883
114080
|
}
|
|
113884
114081
|
}
|
|
113885
114082
|
exports.ToolsSuiteTelemetryClient = ToolsSuiteTelemetryClient;
|
|
@@ -113923,7 +114120,7 @@ const ux_feature_toggle_1 = __webpack_require__(69513);
|
|
|
113923
114120
|
async function processToolsSuiteTelemetry(telemetryHelperProperties) {
|
|
113924
114121
|
const commonProperties = {};
|
|
113925
114122
|
commonProperties[types_1.CommonProperties.DevSpace] = await getSbasDevspace();
|
|
113926
|
-
commonProperties[types_1.CommonProperties.AppStudio] =
|
|
114123
|
+
commonProperties[types_1.CommonProperties.AppStudio] = ux_common_utils_1.isAppStudio();
|
|
113927
114124
|
commonProperties[types_1.CommonProperties.AppStudioBackwardCompatible] = commonProperties[types_1.CommonProperties.AppStudio];
|
|
113928
114125
|
commonProperties[types_1.CommonProperties.InternlVsExternal] = getInternalVsExternal();
|
|
113929
114126
|
commonProperties[types_1.CommonProperties.InternlVsExternalBackwardCompatible] =
|
|
@@ -129447,14 +129644,6 @@ module.exports = {"i8":"1.7.6"};
|
|
|
129447
129644
|
|
|
129448
129645
|
/***/ }),
|
|
129449
129646
|
|
|
129450
|
-
/***/ 19521:
|
|
129451
|
-
/***/ ((module) => {
|
|
129452
|
-
|
|
129453
|
-
"use strict";
|
|
129454
|
-
module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}');
|
|
129455
|
-
|
|
129456
|
-
/***/ }),
|
|
129457
|
-
|
|
129458
129647
|
/***/ 52306:
|
|
129459
129648
|
/***/ ((module) => {
|
|
129460
129649
|
|
|
@@ -129651,7 +129840,7 @@ module.exports = JSON.parse('{"ERROR_SPECIFICATION_MISSING":"Seems specification
|
|
|
129651
129840
|
/***/ ((module) => {
|
|
129652
129841
|
|
|
129653
129842
|
"use strict";
|
|
129654
|
-
module.exports = JSON.parse('{"name":"@sap/ux-telemetry","version":"1.5.
|
|
129843
|
+
module.exports = JSON.parse('{"name":"@sap/ux-telemetry","version":"1.5.1","description":"SAP Fiori tools telemetry library","main":"dist/src/index.js","author":"SAP SE","license":"MIT","private":true,"azureInstrumentationKey":"0a65e45d-6bf4-421d-b845-61e888c50e9e","azureProdKey":"0a65e45d-6bf4-421d-b845-61e888c50e9e","scripts":{"pre-commit":"lint-staged --quiet","clean":"rimraf ./dist","build":"ts-node ./build-script/ && yarn run clean && tsc --project ./","test":"jest --maxWorkers=1 --silent --ci --forceExit --detectOpenHandles","lint":"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint --fix","lint:fix:all":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple --report-unused-disable-directives","format:fix":"prettier --write --loglevel silent --ignore-path ../../../.prettierignore","format:fix:all":"prettier --write \'**/*.{css,scss,html,js,json,ts,tsx,yaml,yml}\' \'!**/{out,dist,node_modules}/**\' \'!**/*.{svg,png,xml}\' --ignore-path ../../../.prettierignore","madge":"madge --warning --circular --extensions ts ./"},"dependencies":{"@sap/ux-cds":"1.5.1","@sap/ux-common-utils":"1.5.1","@sap/ux-feature-toggle":"1.5.1","@sap/ux-project-access":"1.5.1","applicationinsights":"1.4.1","performance-now":"2.1.0","yaml":"2.0.0-10"},"devDependencies":{"ts-node":"8.5.2","typescript":"3.8.3"},"files":["dist/"],"jestSonar":{"reportPath":"reports/test/unit","reportFile":"test-report.xml"},"eslint-formatter-multiple":{"formatters":[{"name":"stylish","output":"console"},{"name":"json","output":"file","path":"reports/lint/eslint.json"},{"name":"checkstyle","output":"file","path":"reports/lint/eslint.checkstyle.xml"}]}}');
|
|
129655
129844
|
|
|
129656
129845
|
/***/ })
|
|
129657
129846
|
|