|
1 | 1 | /**
|
2 |
| - * auth0-js v9.27.0 |
| 2 | + * auth0-js v9.28.0 |
3 | 3 | * Author: Auth0
|
4 |
| - * Date: 2024-10-11 |
| 4 | + * Date: 2024-10-21 |
5 | 5 | * License: MIT
|
6 | 6 | */
|
7 | 7 |
|
|
176 | 176 | };
|
177 | 177 |
|
178 | 178 | var test = {
|
| 179 | + __proto__: null, |
179 | 180 | foo: {}
|
180 | 181 | };
|
181 | 182 |
|
182 | 183 | var $Object = Object;
|
183 | 184 |
|
| 185 | + /** @type {import('.')} */ |
184 | 186 | var hasProto = function hasProto() {
|
185 |
| - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); |
| 187 | + // @ts-expect-error: TS errors on an inherited property for some reason |
| 188 | + return { __proto__: test }.foo === test.foo |
| 189 | + && !(test instanceof $Object); |
186 | 190 | };
|
187 | 191 |
|
188 | 192 | /* eslint no-invalid-this: 1 */
|
|
274 | 278 | var $hasOwn = Object.prototype.hasOwnProperty;
|
275 | 279 |
|
276 | 280 |
|
277 |
| - /** @type {(o: {}, p: PropertyKey) => p is keyof o} */ |
| 281 | + /** @type {import('.')} */ |
278 | 282 | var hasown = functionBind.call(call, $hasOwn);
|
279 | 283 |
|
280 | 284 | var undefined$1;
|
|
3403 | 3407 |
|
3404 | 3408 | if (typeof value === 'boolean') {
|
3405 | 3409 | value = String(value);
|
3406 |
| - } //fix https://github.com/visionmedia/superagent/issues/1680 |
| 3410 | + } // fix https://github.com/visionmedia/superagent/issues/1680 |
3407 | 3411 |
|
3408 | 3412 |
|
3409 | 3413 | if (options) this._getFormData().append(name, value, options);else this._getFormData().append(name, value);
|
|
3982 | 3986 | */
|
3983 | 3987 |
|
3984 | 3988 | request.getXHR = function () {
|
3985 |
| - if (root.XMLHttpRequest && (!root.location || root.location.protocol !== 'file:' || !root.ActiveXObject)) { |
| 3989 | + if (root.XMLHttpRequest && (!root.location || root.location.protocol !== 'file:')) { |
3986 | 3990 | return new XMLHttpRequest();
|
3987 | 3991 | }
|
3988 | 3992 |
|
3989 |
| - try { |
3990 |
| - return new ActiveXObject('Microsoft.XMLHTTP'); |
3991 |
| - } catch (_unused) { |
3992 |
| - /**/ |
3993 |
| - } |
3994 |
| - |
3995 |
| - try { |
3996 |
| - return new ActiveXObject('Msxml2.XMLHTTP.6.0'); |
3997 |
| - } catch (_unused2) { |
3998 |
| - /**/ |
3999 |
| - } |
4000 |
| - |
4001 |
| - try { |
4002 |
| - return new ActiveXObject('Msxml2.XMLHTTP.3.0'); |
4003 |
| - } catch (_unused3) { |
4004 |
| - /**/ |
4005 |
| - } |
4006 |
| - |
4007 |
| - try { |
4008 |
| - return new ActiveXObject('Msxml2.XMLHTTP'); |
4009 |
| - } catch (_unused4) { |
4010 |
| - /**/ |
4011 |
| - } |
4012 |
| - |
4013 | 3993 | throw new Error('Browser-only version of superagent could not find XHR');
|
4014 | 3994 | };
|
4015 | 3995 | /**
|
|
4395 | 4375 | if (new_error) {
|
4396 | 4376 | new_error.original = error;
|
4397 | 4377 | new_error.response = res;
|
4398 |
| - new_error.status = res.status; |
| 4378 | + new_error.status = new_error.status || res.status; |
4399 | 4379 | self.callback(new_error, res);
|
4400 | 4380 | } else {
|
4401 | 4381 | self.callback(null, res);
|
|
4683 | 4663 |
|
4684 | 4664 | try {
|
4685 | 4665 | status = xhr.status;
|
4686 |
| - } catch (_unused5) { |
| 4666 | + } catch (_unused) { |
4687 | 4667 | status = 0;
|
4688 | 4668 | }
|
4689 | 4669 |
|
|
4715 | 4695 | if (xhr.upload) {
|
4716 | 4696 | xhr.upload.addEventListener('progress', handleProgress.bind(null, 'upload'));
|
4717 | 4697 | }
|
4718 |
| - } catch (_unused6) {// Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist. |
| 4698 | + } catch (_unused2) {// Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist. |
4719 | 4699 | // Reported here:
|
4720 | 4700 | // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context
|
4721 | 4701 | }
|
|
5163 | 5143 | decode: decode$1
|
5164 | 5144 | };
|
5165 | 5145 |
|
5166 |
| - var version = { raw: '9.27.0' }; |
| 5146 | + var version = { raw: '9.28.0' }; |
5167 | 5147 |
|
5168 | 5148 | var toString = Object.prototype.toString;
|
5169 | 5149 |
|
|
0 commit comments