@mx-space/api-client 1.6.2 → 1.7.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/dist/{adapter-be44aa1e.d.ts → adapter-29diOMCR.d.cts} +1 -1
- package/dist/adapter-29diOMCR.d.ts +23 -0
- package/dist/adaptors/axios.d.cts +1 -1
- package/dist/adaptors/axios.d.ts +1 -1
- package/dist/adaptors/axios.global.js +153 -128
- package/dist/adaptors/fetch.d.cts +1 -1
- package/dist/adaptors/fetch.d.ts +1 -1
- package/dist/adaptors/ky.d.cts +1 -1
- package/dist/adaptors/ky.d.ts +1 -1
- package/dist/adaptors/ky.global.js +55 -14
- package/dist/adaptors/umi-request.d.cts +1 -1
- package/dist/adaptors/umi-request.d.ts +1 -1
- package/dist/adaptors/umi-request.global.js +252 -57
- package/dist/index.cjs +0 -8
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.global.js +0 -6
- package/dist/index.js +0 -7
- package/models/comment.ts +3 -6
- package/package.json +10 -10
- package/tsconfig.json +1 -1
package/dist/adaptors/fetch.d.ts
CHANGED
package/dist/adaptors/ky.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RequestOptions, a as IAdaptorRequestResponseType } from '../adapter-
|
|
1
|
+
import { R as RequestOptions, a as IAdaptorRequestResponseType } from '../adapter-29diOMCR.cjs';
|
|
2
2
|
import { ResponsePromise } from 'ky';
|
|
3
3
|
import { KyInstance } from 'ky/distribution/types/ky';
|
|
4
4
|
|
package/dist/adaptors/ky.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RequestOptions, a as IAdaptorRequestResponseType } from '../adapter-
|
|
1
|
+
import { R as RequestOptions, a as IAdaptorRequestResponseType } from '../adapter-29diOMCR.js';
|
|
2
2
|
import { ResponsePromise } from 'ky';
|
|
3
3
|
import { KyInstance } from 'ky/distribution/types/ky';
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
3
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/errors/HTTPError.js
|
|
4
4
|
var HTTPError = class extends Error {
|
|
5
5
|
constructor(response, request, options) {
|
|
6
6
|
const code = response.status || response.status === 0 ? response.status : "";
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
36
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/errors/TimeoutError.js
|
|
37
37
|
var TimeoutError = class extends Error {
|
|
38
38
|
constructor(request) {
|
|
39
39
|
super("Request timed out");
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
51
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/utils/is.js
|
|
52
52
|
var isObject = (value) => value !== null && typeof value === "object";
|
|
53
53
|
|
|
54
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
54
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/utils/merge.js
|
|
55
55
|
var validateAndMerge = (...sources) => {
|
|
56
56
|
for (const source of sources) {
|
|
57
57
|
if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
return returnValue;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
101
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/core/constants.js
|
|
102
102
|
var supportsRequestStreams = (() => {
|
|
103
103
|
let duplexAccessed = false;
|
|
104
104
|
let hasContentType = false;
|
|
@@ -132,8 +132,37 @@
|
|
|
132
132
|
};
|
|
133
133
|
var maxSafeTimeout = 2147483647;
|
|
134
134
|
var stop = Symbol("stop");
|
|
135
|
+
var kyOptionKeys = {
|
|
136
|
+
json: true,
|
|
137
|
+
parseJson: true,
|
|
138
|
+
searchParams: true,
|
|
139
|
+
prefixUrl: true,
|
|
140
|
+
retry: true,
|
|
141
|
+
timeout: true,
|
|
142
|
+
hooks: true,
|
|
143
|
+
throwHttpErrors: true,
|
|
144
|
+
onDownloadProgress: true,
|
|
145
|
+
fetch: true
|
|
146
|
+
};
|
|
147
|
+
var requestOptionsRegistry = {
|
|
148
|
+
method: true,
|
|
149
|
+
headers: true,
|
|
150
|
+
body: true,
|
|
151
|
+
mode: true,
|
|
152
|
+
credentials: true,
|
|
153
|
+
cache: true,
|
|
154
|
+
redirect: true,
|
|
155
|
+
referrer: true,
|
|
156
|
+
referrerPolicy: true,
|
|
157
|
+
integrity: true,
|
|
158
|
+
keepalive: true,
|
|
159
|
+
signal: true,
|
|
160
|
+
window: true,
|
|
161
|
+
dispatcher: true,
|
|
162
|
+
duplex: true
|
|
163
|
+
};
|
|
135
164
|
|
|
136
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
165
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/utils/normalize.js
|
|
137
166
|
var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
138
167
|
var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
|
|
139
168
|
var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
|
|
@@ -167,8 +196,8 @@
|
|
|
167
196
|
};
|
|
168
197
|
};
|
|
169
198
|
|
|
170
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
171
|
-
async function timeout(request, abortController, options) {
|
|
199
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/utils/timeout.js
|
|
200
|
+
async function timeout(request, init, abortController, options) {
|
|
172
201
|
return new Promise((resolve, reject) => {
|
|
173
202
|
const timeoutId = setTimeout(() => {
|
|
174
203
|
if (abortController) {
|
|
@@ -176,13 +205,13 @@
|
|
|
176
205
|
}
|
|
177
206
|
reject(new TimeoutError(request));
|
|
178
207
|
}, options.timeout);
|
|
179
|
-
void options.fetch(request).then(resolve).catch(reject).then(() => {
|
|
208
|
+
void options.fetch(request, init).then(resolve).catch(reject).then(() => {
|
|
180
209
|
clearTimeout(timeoutId);
|
|
181
210
|
});
|
|
182
211
|
});
|
|
183
212
|
}
|
|
184
213
|
|
|
185
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
214
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/utils/delay.js
|
|
186
215
|
async function delay(ms, { signal }) {
|
|
187
216
|
return new Promise((resolve, reject) => {
|
|
188
217
|
if (signal) {
|
|
@@ -200,7 +229,18 @@
|
|
|
200
229
|
});
|
|
201
230
|
}
|
|
202
231
|
|
|
203
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
232
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/utils/options.js
|
|
233
|
+
var findUnknownOptions = (request, options) => {
|
|
234
|
+
const unknownOptions = {};
|
|
235
|
+
for (const key in options) {
|
|
236
|
+
if (!(key in requestOptionsRegistry) && !(key in kyOptionKeys) && !(key in request)) {
|
|
237
|
+
unknownOptions[key] = options[key];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return unknownOptions;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/core/Ky.js
|
|
204
244
|
var Ky = class _Ky {
|
|
205
245
|
static create(input, options) {
|
|
206
246
|
const ky2 = new _Ky(input, options);
|
|
@@ -422,10 +462,11 @@
|
|
|
422
462
|
return result;
|
|
423
463
|
}
|
|
424
464
|
}
|
|
465
|
+
const nonRequestOptions = findUnknownOptions(this.request, this._options);
|
|
425
466
|
if (this._options.timeout === false) {
|
|
426
|
-
return this._options.fetch(this.request.clone());
|
|
467
|
+
return this._options.fetch(this.request.clone(), nonRequestOptions);
|
|
427
468
|
}
|
|
428
|
-
return timeout(this.request.clone(), this.abortController, this._options);
|
|
469
|
+
return timeout(this.request.clone(), nonRequestOptions, this.abortController, this._options);
|
|
429
470
|
}
|
|
430
471
|
/* istanbul ignore next */
|
|
431
472
|
_stream(response, onDownloadProgress) {
|
|
@@ -471,7 +512,7 @@
|
|
|
471
512
|
}
|
|
472
513
|
};
|
|
473
514
|
|
|
474
|
-
// ../../node_modules/.pnpm/ky@1.1.
|
|
515
|
+
// ../../node_modules/.pnpm/ky@1.1.3/node_modules/ky/distribution/index.js
|
|
475
516
|
var createInstance = (defaults) => {
|
|
476
517
|
const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
|
|
477
518
|
for (const method of requestMethods) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IRequestAdapter } from '../adapter-
|
|
1
|
+
import { I as IRequestAdapter } from '../adapter-29diOMCR.cjs';
|
|
2
2
|
import { RequestMethod, RequestResponse } from 'umi-request';
|
|
3
3
|
|
|
4
4
|
declare const umiAdaptor: IRequestAdapter<RequestMethod<true>, RequestResponse>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IRequestAdapter } from '../adapter-
|
|
1
|
+
import { I as IRequestAdapter } from '../adapter-29diOMCR.js';
|
|
2
2
|
import { RequestMethod, RequestResponse } from 'umi-request';
|
|
3
3
|
|
|
4
4
|
declare const umiAdaptor: IRequestAdapter<RequestMethod<true>, RequestResponse>;
|
|
@@ -109,44 +109,84 @@
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
// ../../node_modules/.pnpm/
|
|
112
|
+
// ../../node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js
|
|
113
|
+
var require_has_proto = __commonJS({
|
|
114
|
+
"../../node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js"(exports, module) {
|
|
115
|
+
"use strict";
|
|
116
|
+
var test = {
|
|
117
|
+
foo: {}
|
|
118
|
+
};
|
|
119
|
+
var $Object = Object;
|
|
120
|
+
module.exports = function hasProto() {
|
|
121
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
|
|
113
127
|
var require_implementation = __commonJS({
|
|
114
|
-
"../../node_modules/.pnpm/function-bind@1.1.
|
|
128
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
|
|
115
129
|
"use strict";
|
|
116
130
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
117
|
-
var slice = Array.prototype.slice;
|
|
118
131
|
var toStr = Object.prototype.toString;
|
|
132
|
+
var max = Math.max;
|
|
119
133
|
var funcType = "[object Function]";
|
|
134
|
+
var concatty = function concatty2(a, b) {
|
|
135
|
+
var arr = [];
|
|
136
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
137
|
+
arr[i] = a[i];
|
|
138
|
+
}
|
|
139
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
140
|
+
arr[j + a.length] = b[j];
|
|
141
|
+
}
|
|
142
|
+
return arr;
|
|
143
|
+
};
|
|
144
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
145
|
+
var arr = [];
|
|
146
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
147
|
+
arr[j] = arrLike[i];
|
|
148
|
+
}
|
|
149
|
+
return arr;
|
|
150
|
+
};
|
|
151
|
+
var joiny = function(arr, joiner) {
|
|
152
|
+
var str = "";
|
|
153
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
154
|
+
str += arr[i];
|
|
155
|
+
if (i + 1 < arr.length) {
|
|
156
|
+
str += joiner;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return str;
|
|
160
|
+
};
|
|
120
161
|
module.exports = function bind(that) {
|
|
121
162
|
var target = this;
|
|
122
|
-
if (typeof target !== "function" || toStr.
|
|
163
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
123
164
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
124
165
|
}
|
|
125
|
-
var args =
|
|
166
|
+
var args = slicy(arguments, 1);
|
|
126
167
|
var bound;
|
|
127
168
|
var binder = function() {
|
|
128
169
|
if (this instanceof bound) {
|
|
129
170
|
var result = target.apply(
|
|
130
171
|
this,
|
|
131
|
-
args
|
|
172
|
+
concatty(args, arguments)
|
|
132
173
|
);
|
|
133
174
|
if (Object(result) === result) {
|
|
134
175
|
return result;
|
|
135
176
|
}
|
|
136
177
|
return this;
|
|
137
|
-
} else {
|
|
138
|
-
return target.apply(
|
|
139
|
-
that,
|
|
140
|
-
args.concat(slice.call(arguments))
|
|
141
|
-
);
|
|
142
178
|
}
|
|
179
|
+
return target.apply(
|
|
180
|
+
that,
|
|
181
|
+
concatty(args, arguments)
|
|
182
|
+
);
|
|
143
183
|
};
|
|
144
|
-
var boundLength =
|
|
184
|
+
var boundLength = max(0, target.length - args.length);
|
|
145
185
|
var boundArgs = [];
|
|
146
186
|
for (var i = 0; i < boundLength; i++) {
|
|
147
|
-
boundArgs
|
|
187
|
+
boundArgs[i] = "$" + i;
|
|
148
188
|
}
|
|
149
|
-
bound = Function("binder", "return function (" + boundArgs
|
|
189
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
150
190
|
if (target.prototype) {
|
|
151
191
|
var Empty = function Empty2() {
|
|
152
192
|
};
|
|
@@ -159,27 +199,29 @@
|
|
|
159
199
|
}
|
|
160
200
|
});
|
|
161
201
|
|
|
162
|
-
// ../../node_modules/.pnpm/function-bind@1.1.
|
|
202
|
+
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
|
|
163
203
|
var require_function_bind = __commonJS({
|
|
164
|
-
"../../node_modules/.pnpm/function-bind@1.1.
|
|
204
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
|
|
165
205
|
"use strict";
|
|
166
206
|
var implementation = require_implementation();
|
|
167
207
|
module.exports = Function.prototype.bind || implementation;
|
|
168
208
|
}
|
|
169
209
|
});
|
|
170
210
|
|
|
171
|
-
// ../../node_modules/.pnpm/
|
|
172
|
-
var
|
|
173
|
-
"../../node_modules/.pnpm/
|
|
211
|
+
// ../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js
|
|
212
|
+
var require_hasown = __commonJS({
|
|
213
|
+
"../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module) {
|
|
174
214
|
"use strict";
|
|
215
|
+
var call = Function.prototype.call;
|
|
216
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
175
217
|
var bind = require_function_bind();
|
|
176
|
-
module.exports = bind.call(
|
|
218
|
+
module.exports = bind.call(call, $hasOwn);
|
|
177
219
|
}
|
|
178
220
|
});
|
|
179
221
|
|
|
180
|
-
// ../../node_modules/.pnpm/get-intrinsic@1.2.
|
|
222
|
+
// ../../node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js
|
|
181
223
|
var require_get_intrinsic = __commonJS({
|
|
182
|
-
"../../node_modules/.pnpm/get-intrinsic@1.2.
|
|
224
|
+
"../../node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
183
225
|
"use strict";
|
|
184
226
|
var undefined2;
|
|
185
227
|
var $SyntaxError = SyntaxError;
|
|
@@ -215,16 +257,17 @@
|
|
|
215
257
|
}
|
|
216
258
|
}() : throwTypeError;
|
|
217
259
|
var hasSymbols = require_has_symbols()();
|
|
218
|
-
var
|
|
260
|
+
var hasProto = require_has_proto()();
|
|
261
|
+
var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
|
|
219
262
|
return x.__proto__;
|
|
220
|
-
};
|
|
263
|
+
} : null);
|
|
221
264
|
var needsEval = {};
|
|
222
|
-
var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
|
|
265
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
223
266
|
var INTRINSICS = {
|
|
224
267
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
225
268
|
"%Array%": Array,
|
|
226
269
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
227
|
-
"%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
|
|
270
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
228
271
|
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
229
272
|
"%AsyncFunction%": needsEval,
|
|
230
273
|
"%AsyncGenerator%": needsEval,
|
|
@@ -255,10 +298,10 @@
|
|
|
255
298
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
256
299
|
"%isFinite%": isFinite,
|
|
257
300
|
"%isNaN%": isNaN,
|
|
258
|
-
"%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
301
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
259
302
|
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
260
303
|
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
261
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
304
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
262
305
|
"%Math%": Math,
|
|
263
306
|
"%Number%": Number,
|
|
264
307
|
"%Object%": Object,
|
|
@@ -271,10 +314,10 @@
|
|
|
271
314
|
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
272
315
|
"%RegExp%": RegExp,
|
|
273
316
|
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
274
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
317
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
275
318
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
276
319
|
"%String%": String,
|
|
277
|
-
"%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
320
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
278
321
|
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
279
322
|
"%SyntaxError%": $SyntaxError,
|
|
280
323
|
"%ThrowTypeError%": ThrowTypeError,
|
|
@@ -289,11 +332,13 @@
|
|
|
289
332
|
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
290
333
|
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
291
334
|
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
335
|
+
if (getProto) {
|
|
336
|
+
try {
|
|
337
|
+
null.error;
|
|
338
|
+
} catch (e) {
|
|
339
|
+
errorProto = getProto(getProto(e));
|
|
340
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
341
|
+
}
|
|
297
342
|
}
|
|
298
343
|
var errorProto;
|
|
299
344
|
var doEval = function doEval2(name) {
|
|
@@ -311,7 +356,7 @@
|
|
|
311
356
|
}
|
|
312
357
|
} else if (name === "%AsyncIteratorPrototype%") {
|
|
313
358
|
var gen = doEval2("%AsyncGenerator%");
|
|
314
|
-
if (gen) {
|
|
359
|
+
if (gen && getProto) {
|
|
315
360
|
value = getProto(gen.prototype);
|
|
316
361
|
}
|
|
317
362
|
}
|
|
@@ -372,7 +417,7 @@
|
|
|
372
417
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
373
418
|
};
|
|
374
419
|
var bind = require_function_bind();
|
|
375
|
-
var hasOwn =
|
|
420
|
+
var hasOwn = require_hasown();
|
|
376
421
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
377
422
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
378
423
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
@@ -481,16 +526,163 @@
|
|
|
481
526
|
}
|
|
482
527
|
});
|
|
483
528
|
|
|
484
|
-
// ../../node_modules/.pnpm/
|
|
529
|
+
// ../../node_modules/.pnpm/has-property-descriptors@1.0.1/node_modules/has-property-descriptors/index.js
|
|
530
|
+
var require_has_property_descriptors = __commonJS({
|
|
531
|
+
"../../node_modules/.pnpm/has-property-descriptors@1.0.1/node_modules/has-property-descriptors/index.js"(exports, module) {
|
|
532
|
+
"use strict";
|
|
533
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
534
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
535
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
536
|
+
if ($defineProperty) {
|
|
537
|
+
try {
|
|
538
|
+
$defineProperty({}, "a", { value: 1 });
|
|
539
|
+
return true;
|
|
540
|
+
} catch (e) {
|
|
541
|
+
return false;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return false;
|
|
545
|
+
};
|
|
546
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
547
|
+
if (!hasPropertyDescriptors()) {
|
|
548
|
+
return null;
|
|
549
|
+
}
|
|
550
|
+
try {
|
|
551
|
+
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
552
|
+
} catch (e) {
|
|
553
|
+
return true;
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
module.exports = hasPropertyDescriptors;
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
// ../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js
|
|
561
|
+
var require_gopd = __commonJS({
|
|
562
|
+
"../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"(exports, module) {
|
|
563
|
+
"use strict";
|
|
564
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
565
|
+
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
566
|
+
if ($gOPD) {
|
|
567
|
+
try {
|
|
568
|
+
$gOPD([], "length");
|
|
569
|
+
} catch (e) {
|
|
570
|
+
$gOPD = null;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
module.exports = $gOPD;
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
|
|
577
|
+
// ../../node_modules/.pnpm/define-data-property@1.1.1/node_modules/define-data-property/index.js
|
|
578
|
+
var require_define_data_property = __commonJS({
|
|
579
|
+
"../../node_modules/.pnpm/define-data-property@1.1.1/node_modules/define-data-property/index.js"(exports, module) {
|
|
580
|
+
"use strict";
|
|
581
|
+
var hasPropertyDescriptors = require_has_property_descriptors()();
|
|
582
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
583
|
+
var $defineProperty = hasPropertyDescriptors && GetIntrinsic("%Object.defineProperty%", true);
|
|
584
|
+
if ($defineProperty) {
|
|
585
|
+
try {
|
|
586
|
+
$defineProperty({}, "a", { value: 1 });
|
|
587
|
+
} catch (e) {
|
|
588
|
+
$defineProperty = false;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
var $SyntaxError = GetIntrinsic("%SyntaxError%");
|
|
592
|
+
var $TypeError = GetIntrinsic("%TypeError%");
|
|
593
|
+
var gopd = require_gopd();
|
|
594
|
+
module.exports = function defineDataProperty(obj, property, value) {
|
|
595
|
+
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
596
|
+
throw new $TypeError("`obj` must be an object or a function`");
|
|
597
|
+
}
|
|
598
|
+
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
599
|
+
throw new $TypeError("`property` must be a string or a symbol`");
|
|
600
|
+
}
|
|
601
|
+
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
602
|
+
throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
603
|
+
}
|
|
604
|
+
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
605
|
+
throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
606
|
+
}
|
|
607
|
+
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
608
|
+
throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
609
|
+
}
|
|
610
|
+
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
611
|
+
throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
612
|
+
}
|
|
613
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
614
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
615
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
616
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
617
|
+
var desc = !!gopd && gopd(obj, property);
|
|
618
|
+
if ($defineProperty) {
|
|
619
|
+
$defineProperty(obj, property, {
|
|
620
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
621
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
622
|
+
value,
|
|
623
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
624
|
+
});
|
|
625
|
+
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
626
|
+
obj[property] = value;
|
|
627
|
+
} else {
|
|
628
|
+
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
|
|
634
|
+
// ../../node_modules/.pnpm/set-function-length@1.1.1/node_modules/set-function-length/index.js
|
|
635
|
+
var require_set_function_length = __commonJS({
|
|
636
|
+
"../../node_modules/.pnpm/set-function-length@1.1.1/node_modules/set-function-length/index.js"(exports, module) {
|
|
637
|
+
"use strict";
|
|
638
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
639
|
+
var define = require_define_data_property();
|
|
640
|
+
var hasDescriptors = require_has_property_descriptors()();
|
|
641
|
+
var gOPD = require_gopd();
|
|
642
|
+
var $TypeError = GetIntrinsic("%TypeError%");
|
|
643
|
+
var $floor = GetIntrinsic("%Math.floor%");
|
|
644
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
645
|
+
if (typeof fn !== "function") {
|
|
646
|
+
throw new $TypeError("`fn` is not a function");
|
|
647
|
+
}
|
|
648
|
+
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
|
|
649
|
+
throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
650
|
+
}
|
|
651
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
652
|
+
var functionLengthIsConfigurable = true;
|
|
653
|
+
var functionLengthIsWritable = true;
|
|
654
|
+
if ("length" in fn && gOPD) {
|
|
655
|
+
var desc = gOPD(fn, "length");
|
|
656
|
+
if (desc && !desc.configurable) {
|
|
657
|
+
functionLengthIsConfigurable = false;
|
|
658
|
+
}
|
|
659
|
+
if (desc && !desc.writable) {
|
|
660
|
+
functionLengthIsWritable = false;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
664
|
+
if (hasDescriptors) {
|
|
665
|
+
define(fn, "length", length, true, true);
|
|
666
|
+
} else {
|
|
667
|
+
define(fn, "length", length);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return fn;
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
// ../../node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js
|
|
485
676
|
var require_call_bind = __commonJS({
|
|
486
|
-
"../../node_modules/.pnpm/call-bind@1.0.
|
|
677
|
+
"../../node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js"(exports, module) {
|
|
487
678
|
"use strict";
|
|
488
679
|
var bind = require_function_bind();
|
|
489
680
|
var GetIntrinsic = require_get_intrinsic();
|
|
681
|
+
var setFunctionLength = require_set_function_length();
|
|
682
|
+
var $TypeError = GetIntrinsic("%TypeError%");
|
|
490
683
|
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
491
684
|
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
492
685
|
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
|
|
493
|
-
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
494
686
|
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
495
687
|
var $max = GetIntrinsic("%Math.max%");
|
|
496
688
|
if ($defineProperty) {
|
|
@@ -501,18 +693,15 @@
|
|
|
501
693
|
}
|
|
502
694
|
}
|
|
503
695
|
module.exports = function callBind(originalFunction) {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
var desc = $gOPD(func, "length");
|
|
507
|
-
if (desc.configurable) {
|
|
508
|
-
$defineProperty(
|
|
509
|
-
func,
|
|
510
|
-
"length",
|
|
511
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
512
|
-
);
|
|
513
|
-
}
|
|
696
|
+
if (typeof originalFunction !== "function") {
|
|
697
|
+
throw new $TypeError("a function is required");
|
|
514
698
|
}
|
|
515
|
-
|
|
699
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
700
|
+
return setFunctionLength(
|
|
701
|
+
func,
|
|
702
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
703
|
+
true
|
|
704
|
+
);
|
|
516
705
|
};
|
|
517
706
|
var applyBind = function applyBind2() {
|
|
518
707
|
return $reflectApply(bind, $apply, arguments);
|
|
@@ -525,9 +714,9 @@
|
|
|
525
714
|
}
|
|
526
715
|
});
|
|
527
716
|
|
|
528
|
-
// ../../node_modules/.pnpm/call-bind@1.0.
|
|
717
|
+
// ../../node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js
|
|
529
718
|
var require_callBound = __commonJS({
|
|
530
|
-
"../../node_modules/.pnpm/call-bind@1.0.
|
|
719
|
+
"../../node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js"(exports, module) {
|
|
531
720
|
"use strict";
|
|
532
721
|
var GetIntrinsic = require_get_intrinsic();
|
|
533
722
|
var callBind = require_call_bind();
|
|
@@ -542,17 +731,17 @@
|
|
|
542
731
|
}
|
|
543
732
|
});
|
|
544
733
|
|
|
545
|
-
// ../../node_modules/.pnpm/object-inspect@1.
|
|
734
|
+
// ../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect.js
|
|
546
735
|
var require_util_inspect = __commonJS({
|
|
547
|
-
"../../node_modules/.pnpm/object-inspect@1.
|
|
736
|
+
"../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect.js"(exports, module) {
|
|
548
737
|
"use strict";
|
|
549
738
|
module.exports = __require("util").inspect;
|
|
550
739
|
}
|
|
551
740
|
});
|
|
552
741
|
|
|
553
|
-
// ../../node_modules/.pnpm/object-inspect@1.
|
|
742
|
+
// ../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js
|
|
554
743
|
var require_object_inspect = __commonJS({
|
|
555
|
-
"../../node_modules/.pnpm/object-inspect@1.
|
|
744
|
+
"../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js"(exports, module) {
|
|
556
745
|
"use strict";
|
|
557
746
|
var hasMap = typeof Map === "function" && Map.prototype;
|
|
558
747
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
@@ -767,6 +956,12 @@
|
|
|
767
956
|
if (isString(obj)) {
|
|
768
957
|
return markBoxed(inspect(String(obj)));
|
|
769
958
|
}
|
|
959
|
+
if (typeof window !== "undefined" && obj === window) {
|
|
960
|
+
return "{ [object Window] }";
|
|
961
|
+
}
|
|
962
|
+
if (obj === global) {
|
|
963
|
+
return "{ [object globalThis] }";
|
|
964
|
+
}
|
|
770
965
|
if (!isDate2(obj) && !isRegExp(obj)) {
|
|
771
966
|
var ys = arrObjKeys(obj, inspect);
|
|
772
967
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|