Skip to content

Commit

Permalink
chore: next try to fix the wdi5 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
petermuessig committed Aug 24, 2024
1 parent 45c7e1d commit abd389a
Show file tree
Hide file tree
Showing 15 changed files with 3,579 additions and 1,295 deletions.
25 changes: 16 additions & 9 deletions packages/ui5-tooling-modules/test/__snap__/1ba7ed2d/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -2939,7 +2939,10 @@ sap.ui.define((function () { 'use strict';
code && (this.code = code);
config && (this.config = config);
request && (this.request = request);
response && (this.response = response);
if (response) {
this.response = response;
this.status = response.status ? response.status : null;
}
}

utils$1.inherits(AxiosError, Error, {
Expand All @@ -2959,7 +2962,7 @@ sap.ui.define((function () { 'use strict';
// Axios
config: utils$1.toJSONObject(this.config),
code: this.code,
status: this.response && this.response.status ? this.response.status : null
status: this.status
};
}
});
Expand Down Expand Up @@ -3427,6 +3430,8 @@ sap.ui.define((function () { 'use strict';

const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';

const _navigator = typeof navigator === 'object' && navigator || undefined;

/**
* Determine if we're running in a standard browser environment
*
Expand All @@ -3444,10 +3449,8 @@ sap.ui.define((function () { 'use strict';
*
* @returns {boolean}
*/
const hasStandardBrowserEnv = (
(product) => {
return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
})(typeof navigator !== 'undefined' && navigator.product);
const hasStandardBrowserEnv = hasBrowserEnv &&
(!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);

/**
* Determine if we're running in a standard browser webWorker environment
Expand All @@ -3474,6 +3477,7 @@ sap.ui.define((function () { 'use strict';
hasBrowserEnv: hasBrowserEnv,
hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
hasStandardBrowserEnv: hasStandardBrowserEnv,
navigator: _navigator,
origin: origin
});

Expand Down Expand Up @@ -4303,7 +4307,7 @@ sap.ui.define((function () { 'use strict';
// Standard browser envs have full support of the APIs needed to test
// whether the request URL is of the same origin as current location.
(function standardBrowserEnv() {
const msie = /(msie|trident)/i.test(navigator.userAgent);
const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
const urlParsingNode = document.createElement('a');
let originURL;

Expand Down Expand Up @@ -5040,14 +5044,17 @@ sap.ui.define((function () { 'use strict';
withCredentials = withCredentials ? 'include' : 'omit';
}

// Cloudflare Workers throws when credentials are defined
// see https://github.com/cloudflare/workerd/issues/902
const isCredentialsSupported = "credentials" in Request.prototype;
request = new Request(url, {
...fetchOptions,
signal: composedSignal,
method: method.toUpperCase(),
headers: headers.normalize().toJSON(),
body: data,
duplex: "half",
credentials: withCredentials
credentials: isCredentialsSupported ? withCredentials : undefined
});

let response = await fetch(request);
Expand Down Expand Up @@ -5258,7 +5265,7 @@ sap.ui.define((function () { 'use strict';
});
}

const VERSION = "1.7.3";
const VERSION = "1.7.5";

const validators$1 = {};

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sap.ui.define(['../index.esm2017'], (function (index_esm2017) { 'use strict';
var app = index_esm2017.require$$0;

var name = "firebase";
var version = "10.12.5";
var version = "10.13.0";

/**
* @license
Expand Down
Loading

0 comments on commit abd389a

Please sign in to comment.