@mx-space/api-client 1.8.0-beta.0 → 1.8.0
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/controllers/activity.ts +1 -1
- package/dist/adaptors/axios.global.js +64 -64
- package/dist/adaptors/umi-request.global.js +227 -113
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -0
- package/models/activity.ts +3 -2
- package/package.json +4 -5
- package/dist/adaptors/ky.cjs +0 -98
- package/dist/adaptors/ky.d.cts +0 -26
- package/dist/adaptors/ky.d.ts +0 -26
- package/dist/adaptors/ky.global.js +0 -590
- package/dist/adaptors/ky.js +0 -62
|
@@ -33,6 +33,62 @@
|
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
|
|
37
|
+
var require_es_errors = __commonJS({
|
|
38
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
|
|
39
|
+
"use strict";
|
|
40
|
+
module.exports = Error;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
|
|
45
|
+
var require_eval = __commonJS({
|
|
46
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
|
|
47
|
+
"use strict";
|
|
48
|
+
module.exports = EvalError;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
|
|
53
|
+
var require_range = __commonJS({
|
|
54
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
|
|
55
|
+
"use strict";
|
|
56
|
+
module.exports = RangeError;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
|
|
61
|
+
var require_ref = __commonJS({
|
|
62
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
|
|
63
|
+
"use strict";
|
|
64
|
+
module.exports = ReferenceError;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
|
|
69
|
+
var require_syntax = __commonJS({
|
|
70
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
|
|
71
|
+
"use strict";
|
|
72
|
+
module.exports = SyntaxError;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
77
|
+
var require_type = __commonJS({
|
|
78
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module) {
|
|
79
|
+
"use strict";
|
|
80
|
+
module.exports = TypeError;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
|
|
85
|
+
var require_uri = __commonJS({
|
|
86
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
|
|
87
|
+
"use strict";
|
|
88
|
+
module.exports = URIError;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
36
92
|
// ../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js
|
|
37
93
|
var require_shams = __commonJS({
|
|
38
94
|
"../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js"(exports, module) {
|
|
@@ -109,16 +165,17 @@
|
|
|
109
165
|
}
|
|
110
166
|
});
|
|
111
167
|
|
|
112
|
-
// ../../node_modules/.pnpm/has-proto@1.0.
|
|
168
|
+
// ../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js
|
|
113
169
|
var require_has_proto = __commonJS({
|
|
114
|
-
"../../node_modules/.pnpm/has-proto@1.0.
|
|
170
|
+
"../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports, module) {
|
|
115
171
|
"use strict";
|
|
116
172
|
var test = {
|
|
173
|
+
__proto__: null,
|
|
117
174
|
foo: {}
|
|
118
175
|
};
|
|
119
176
|
var $Object = Object;
|
|
120
177
|
module.exports = function hasProto() {
|
|
121
|
-
return { __proto__: test }.foo === test.foo && !(
|
|
178
|
+
return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
|
|
122
179
|
};
|
|
123
180
|
}
|
|
124
181
|
});
|
|
@@ -208,9 +265,9 @@
|
|
|
208
265
|
}
|
|
209
266
|
});
|
|
210
267
|
|
|
211
|
-
// ../../node_modules/.pnpm/hasown@2.0.
|
|
268
|
+
// ../../node_modules/.pnpm/hasown@2.0.1/node_modules/hasown/index.js
|
|
212
269
|
var require_hasown = __commonJS({
|
|
213
|
-
"../../node_modules/.pnpm/hasown@2.0.
|
|
270
|
+
"../../node_modules/.pnpm/hasown@2.0.1/node_modules/hasown/index.js"(exports, module) {
|
|
214
271
|
"use strict";
|
|
215
272
|
var call = Function.prototype.call;
|
|
216
273
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -219,14 +276,19 @@
|
|
|
219
276
|
}
|
|
220
277
|
});
|
|
221
278
|
|
|
222
|
-
// ../../node_modules/.pnpm/get-intrinsic@1.2.
|
|
279
|
+
// ../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js
|
|
223
280
|
var require_get_intrinsic = __commonJS({
|
|
224
|
-
"../../node_modules/.pnpm/get-intrinsic@1.2.
|
|
281
|
+
"../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
225
282
|
"use strict";
|
|
226
283
|
var undefined2;
|
|
227
|
-
var $
|
|
284
|
+
var $Error = require_es_errors();
|
|
285
|
+
var $EvalError = require_eval();
|
|
286
|
+
var $RangeError = require_range();
|
|
287
|
+
var $ReferenceError = require_ref();
|
|
288
|
+
var $SyntaxError = require_syntax();
|
|
289
|
+
var $TypeError = require_type();
|
|
290
|
+
var $URIError = require_uri();
|
|
228
291
|
var $Function = Function;
|
|
229
|
-
var $TypeError = TypeError;
|
|
230
292
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
231
293
|
try {
|
|
232
294
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
@@ -264,6 +326,7 @@
|
|
|
264
326
|
var needsEval = {};
|
|
265
327
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
266
328
|
var INTRINSICS = {
|
|
329
|
+
__proto__: null,
|
|
267
330
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
268
331
|
"%Array%": Array,
|
|
269
332
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
@@ -284,10 +347,10 @@
|
|
|
284
347
|
"%decodeURIComponent%": decodeURIComponent,
|
|
285
348
|
"%encodeURI%": encodeURI,
|
|
286
349
|
"%encodeURIComponent%": encodeURIComponent,
|
|
287
|
-
"%Error%": Error,
|
|
350
|
+
"%Error%": $Error,
|
|
288
351
|
"%eval%": eval,
|
|
289
352
|
// eslint-disable-line no-eval
|
|
290
|
-
"%EvalError%": EvalError,
|
|
353
|
+
"%EvalError%": $EvalError,
|
|
291
354
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
292
355
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
293
356
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
@@ -309,8 +372,8 @@
|
|
|
309
372
|
"%parseInt%": parseInt,
|
|
310
373
|
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
311
374
|
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
312
|
-
"%RangeError%": RangeError,
|
|
313
|
-
"%ReferenceError%": ReferenceError,
|
|
375
|
+
"%RangeError%": $RangeError,
|
|
376
|
+
"%ReferenceError%": $ReferenceError,
|
|
314
377
|
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
315
378
|
"%RegExp%": RegExp,
|
|
316
379
|
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
@@ -327,7 +390,7 @@
|
|
|
327
390
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
328
391
|
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
329
392
|
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
330
|
-
"%URIError%": URIError,
|
|
393
|
+
"%URIError%": $URIError,
|
|
331
394
|
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
332
395
|
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
333
396
|
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
@@ -364,6 +427,7 @@
|
|
|
364
427
|
return value;
|
|
365
428
|
};
|
|
366
429
|
var LEGACY_ALIASES = {
|
|
430
|
+
__proto__: null,
|
|
367
431
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
368
432
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
369
433
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -526,34 +590,20 @@
|
|
|
526
590
|
}
|
|
527
591
|
});
|
|
528
592
|
|
|
529
|
-
// ../../node_modules/.pnpm/
|
|
530
|
-
var
|
|
531
|
-
"../../node_modules/.pnpm/
|
|
593
|
+
// ../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js
|
|
594
|
+
var require_es_define_property = __commonJS({
|
|
595
|
+
"../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports, module) {
|
|
532
596
|
"use strict";
|
|
533
597
|
var GetIntrinsic = require_get_intrinsic();
|
|
534
|
-
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
535
|
-
|
|
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
|
-
}
|
|
598
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
|
|
599
|
+
if ($defineProperty) {
|
|
550
600
|
try {
|
|
551
|
-
|
|
601
|
+
$defineProperty({}, "a", { value: 1 });
|
|
552
602
|
} catch (e) {
|
|
553
|
-
|
|
603
|
+
$defineProperty = false;
|
|
554
604
|
}
|
|
555
|
-
}
|
|
556
|
-
module.exports =
|
|
605
|
+
}
|
|
606
|
+
module.exports = $defineProperty;
|
|
557
607
|
}
|
|
558
608
|
});
|
|
559
609
|
|
|
@@ -574,22 +624,13 @@
|
|
|
574
624
|
}
|
|
575
625
|
});
|
|
576
626
|
|
|
577
|
-
// ../../node_modules/.pnpm/define-data-property@1.1.
|
|
627
|
+
// ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
|
|
578
628
|
var require_define_data_property = __commonJS({
|
|
579
|
-
"../../node_modules/.pnpm/define-data-property@1.1.
|
|
629
|
+
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports, module) {
|
|
580
630
|
"use strict";
|
|
581
|
-
var
|
|
582
|
-
var
|
|
583
|
-
var $
|
|
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%");
|
|
631
|
+
var $defineProperty = require_es_define_property();
|
|
632
|
+
var $SyntaxError = require_syntax();
|
|
633
|
+
var $TypeError = require_type();
|
|
593
634
|
var gopd = require_gopd();
|
|
594
635
|
module.exports = function defineDataProperty(obj, property, value) {
|
|
595
636
|
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
@@ -631,15 +672,37 @@
|
|
|
631
672
|
}
|
|
632
673
|
});
|
|
633
674
|
|
|
634
|
-
// ../../node_modules/.pnpm/
|
|
675
|
+
// ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
|
|
676
|
+
var require_has_property_descriptors = __commonJS({
|
|
677
|
+
"../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports, module) {
|
|
678
|
+
"use strict";
|
|
679
|
+
var $defineProperty = require_es_define_property();
|
|
680
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
681
|
+
return !!$defineProperty;
|
|
682
|
+
};
|
|
683
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
684
|
+
if (!$defineProperty) {
|
|
685
|
+
return null;
|
|
686
|
+
}
|
|
687
|
+
try {
|
|
688
|
+
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
689
|
+
} catch (e) {
|
|
690
|
+
return true;
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
module.exports = hasPropertyDescriptors;
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
|
|
697
|
+
// ../../node_modules/.pnpm/set-function-length@1.2.1/node_modules/set-function-length/index.js
|
|
635
698
|
var require_set_function_length = __commonJS({
|
|
636
|
-
"../../node_modules/.pnpm/set-function-length@1.
|
|
699
|
+
"../../node_modules/.pnpm/set-function-length@1.2.1/node_modules/set-function-length/index.js"(exports, module) {
|
|
637
700
|
"use strict";
|
|
638
701
|
var GetIntrinsic = require_get_intrinsic();
|
|
639
702
|
var define = require_define_data_property();
|
|
640
703
|
var hasDescriptors = require_has_property_descriptors()();
|
|
641
704
|
var gOPD = require_gopd();
|
|
642
|
-
var $TypeError =
|
|
705
|
+
var $TypeError = require_type();
|
|
643
706
|
var $floor = GetIntrinsic("%Math.floor%");
|
|
644
707
|
module.exports = function setFunctionLength(fn, length) {
|
|
645
708
|
if (typeof fn !== "function") {
|
|
@@ -662,9 +725,21 @@
|
|
|
662
725
|
}
|
|
663
726
|
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
664
727
|
if (hasDescriptors) {
|
|
665
|
-
define(
|
|
728
|
+
define(
|
|
729
|
+
/** @type {Parameters<define>[0]} */
|
|
730
|
+
fn,
|
|
731
|
+
"length",
|
|
732
|
+
length,
|
|
733
|
+
true,
|
|
734
|
+
true
|
|
735
|
+
);
|
|
666
736
|
} else {
|
|
667
|
-
define(
|
|
737
|
+
define(
|
|
738
|
+
/** @type {Parameters<define>[0]} */
|
|
739
|
+
fn,
|
|
740
|
+
"length",
|
|
741
|
+
length
|
|
742
|
+
);
|
|
668
743
|
}
|
|
669
744
|
}
|
|
670
745
|
return fn;
|
|
@@ -672,26 +747,19 @@
|
|
|
672
747
|
}
|
|
673
748
|
});
|
|
674
749
|
|
|
675
|
-
// ../../node_modules/.pnpm/call-bind@1.0.
|
|
750
|
+
// ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js
|
|
676
751
|
var require_call_bind = __commonJS({
|
|
677
|
-
"../../node_modules/.pnpm/call-bind@1.0.
|
|
752
|
+
"../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports, module) {
|
|
678
753
|
"use strict";
|
|
679
754
|
var bind = require_function_bind();
|
|
680
755
|
var GetIntrinsic = require_get_intrinsic();
|
|
681
756
|
var setFunctionLength = require_set_function_length();
|
|
682
|
-
var $TypeError =
|
|
757
|
+
var $TypeError = require_type();
|
|
683
758
|
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
684
759
|
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
685
760
|
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
|
|
686
|
-
var $defineProperty =
|
|
761
|
+
var $defineProperty = require_es_define_property();
|
|
687
762
|
var $max = GetIntrinsic("%Math.max%");
|
|
688
|
-
if ($defineProperty) {
|
|
689
|
-
try {
|
|
690
|
-
$defineProperty({}, "a", { value: 1 });
|
|
691
|
-
} catch (e) {
|
|
692
|
-
$defineProperty = null;
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
763
|
module.exports = function callBind(originalFunction) {
|
|
696
764
|
if (typeof originalFunction !== "function") {
|
|
697
765
|
throw new $TypeError("a function is required");
|
|
@@ -714,9 +782,9 @@
|
|
|
714
782
|
}
|
|
715
783
|
});
|
|
716
784
|
|
|
717
|
-
// ../../node_modules/.pnpm/call-bind@1.0.
|
|
785
|
+
// ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js
|
|
718
786
|
var require_callBound = __commonJS({
|
|
719
|
-
"../../node_modules/.pnpm/call-bind@1.0.
|
|
787
|
+
"../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js"(exports, module) {
|
|
720
788
|
"use strict";
|
|
721
789
|
var GetIntrinsic = require_get_intrinsic();
|
|
722
790
|
var callBind = require_call_bind();
|
|
@@ -1255,14 +1323,14 @@
|
|
|
1255
1323
|
}
|
|
1256
1324
|
});
|
|
1257
1325
|
|
|
1258
|
-
// ../../node_modules/.pnpm/side-channel@1.0.
|
|
1326
|
+
// ../../node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js
|
|
1259
1327
|
var require_side_channel = __commonJS({
|
|
1260
|
-
"../../node_modules/.pnpm/side-channel@1.0.
|
|
1328
|
+
"../../node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js"(exports, module) {
|
|
1261
1329
|
"use strict";
|
|
1262
1330
|
var GetIntrinsic = require_get_intrinsic();
|
|
1263
1331
|
var callBound = require_callBound();
|
|
1264
1332
|
var inspect = require_object_inspect();
|
|
1265
|
-
var $TypeError =
|
|
1333
|
+
var $TypeError = require_type();
|
|
1266
1334
|
var $WeakMap = GetIntrinsic("%WeakMap%", true);
|
|
1267
1335
|
var $Map = GetIntrinsic("%Map%", true);
|
|
1268
1336
|
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
@@ -1272,10 +1340,13 @@
|
|
|
1272
1340
|
var $mapSet = callBound("Map.prototype.set", true);
|
|
1273
1341
|
var $mapHas = callBound("Map.prototype.has", true);
|
|
1274
1342
|
var listGetNode = function(list, key) {
|
|
1275
|
-
|
|
1343
|
+
var prev = list;
|
|
1344
|
+
var curr;
|
|
1345
|
+
for (; (curr = prev.next) !== null; prev = curr) {
|
|
1276
1346
|
if (curr.key === key) {
|
|
1277
1347
|
prev.next = curr.next;
|
|
1278
|
-
curr.next = list.next
|
|
1348
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */
|
|
1349
|
+
list.next;
|
|
1279
1350
|
list.next = curr;
|
|
1280
1351
|
return curr;
|
|
1281
1352
|
}
|
|
@@ -1290,8 +1361,9 @@
|
|
|
1290
1361
|
if (node) {
|
|
1291
1362
|
node.value = value;
|
|
1292
1363
|
} else {
|
|
1293
|
-
objects.next = {
|
|
1294
|
-
|
|
1364
|
+
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
1365
|
+
{
|
|
1366
|
+
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
1295
1367
|
key,
|
|
1296
1368
|
next: objects.next,
|
|
1297
1369
|
value
|
|
@@ -1366,9 +1438,9 @@
|
|
|
1366
1438
|
}
|
|
1367
1439
|
});
|
|
1368
1440
|
|
|
1369
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
1441
|
+
// ../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/formats.js
|
|
1370
1442
|
var require_formats = __commonJS({
|
|
1371
|
-
"../../node_modules/.pnpm/qs@6.
|
|
1443
|
+
"../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/formats.js"(exports, module) {
|
|
1372
1444
|
"use strict";
|
|
1373
1445
|
var replace = String.prototype.replace;
|
|
1374
1446
|
var percentTwenties = /%20/g;
|
|
@@ -1392,9 +1464,9 @@
|
|
|
1392
1464
|
}
|
|
1393
1465
|
});
|
|
1394
1466
|
|
|
1395
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
1467
|
+
// ../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/utils.js
|
|
1396
1468
|
var require_utils = __commonJS({
|
|
1397
|
-
"../../node_modules/.pnpm/qs@6.
|
|
1469
|
+
"../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/utils.js"(exports, module) {
|
|
1398
1470
|
"use strict";
|
|
1399
1471
|
var formats = require_formats();
|
|
1400
1472
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -1591,9 +1663,9 @@
|
|
|
1591
1663
|
}
|
|
1592
1664
|
});
|
|
1593
1665
|
|
|
1594
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
1666
|
+
// ../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/stringify.js
|
|
1595
1667
|
var require_stringify = __commonJS({
|
|
1596
|
-
"../../node_modules/.pnpm/qs@6.
|
|
1668
|
+
"../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/stringify.js"(exports, module) {
|
|
1597
1669
|
"use strict";
|
|
1598
1670
|
var getSideChannel = require_side_channel();
|
|
1599
1671
|
var utils = require_utils();
|
|
@@ -1621,10 +1693,13 @@
|
|
|
1621
1693
|
var defaults = {
|
|
1622
1694
|
addQueryPrefix: false,
|
|
1623
1695
|
allowDots: false,
|
|
1696
|
+
allowEmptyArrays: false,
|
|
1697
|
+
arrayFormat: "indices",
|
|
1624
1698
|
charset: "utf-8",
|
|
1625
1699
|
charsetSentinel: false,
|
|
1626
1700
|
delimiter: "&",
|
|
1627
1701
|
encode: true,
|
|
1702
|
+
encodeDotInKeys: false,
|
|
1628
1703
|
encoder: utils.encode,
|
|
1629
1704
|
encodeValuesOnly: false,
|
|
1630
1705
|
format: defaultFormat,
|
|
@@ -1641,7 +1716,7 @@
|
|
|
1641
1716
|
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
1642
1717
|
};
|
|
1643
1718
|
var sentinel = {};
|
|
1644
|
-
var stringify2 = function stringify3(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
1719
|
+
var stringify2 = function stringify3(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
1645
1720
|
var obj = object;
|
|
1646
1721
|
var tmpSc = sideChannel;
|
|
1647
1722
|
var step = 0;
|
|
@@ -1701,14 +1776,19 @@
|
|
|
1701
1776
|
var keys = Object.keys(obj);
|
|
1702
1777
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
1703
1778
|
}
|
|
1704
|
-
var
|
|
1779
|
+
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
|
|
1780
|
+
var adjustedPrefix = commaRoundTrip && isArray2(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
1781
|
+
if (allowEmptyArrays && isArray2(obj) && obj.length === 0) {
|
|
1782
|
+
return adjustedPrefix + "[]";
|
|
1783
|
+
}
|
|
1705
1784
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
1706
1785
|
var key = objKeys[j];
|
|
1707
1786
|
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
1708
1787
|
if (skipNulls && value === null) {
|
|
1709
1788
|
continue;
|
|
1710
1789
|
}
|
|
1711
|
-
var
|
|
1790
|
+
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
|
|
1791
|
+
var keyPrefix = isArray2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
1712
1792
|
sideChannel.set(object, step);
|
|
1713
1793
|
var valueSideChannel = getSideChannel();
|
|
1714
1794
|
valueSideChannel.set(sentinel, sideChannel);
|
|
@@ -1717,8 +1797,10 @@
|
|
|
1717
1797
|
keyPrefix,
|
|
1718
1798
|
generateArrayPrefix,
|
|
1719
1799
|
commaRoundTrip,
|
|
1800
|
+
allowEmptyArrays,
|
|
1720
1801
|
strictNullHandling,
|
|
1721
1802
|
skipNulls,
|
|
1803
|
+
encodeDotInKeys,
|
|
1722
1804
|
generateArrayPrefix === "comma" && encodeValuesOnly && isArray2(obj) ? null : encoder,
|
|
1723
1805
|
filter,
|
|
1724
1806
|
sort,
|
|
@@ -1737,6 +1819,12 @@
|
|
|
1737
1819
|
if (!opts) {
|
|
1738
1820
|
return defaults;
|
|
1739
1821
|
}
|
|
1822
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
1823
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1824
|
+
}
|
|
1825
|
+
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
1826
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1827
|
+
}
|
|
1740
1828
|
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
1741
1829
|
throw new TypeError("Encoder has to be a function.");
|
|
1742
1830
|
}
|
|
@@ -1756,13 +1844,29 @@
|
|
|
1756
1844
|
if (typeof opts.filter === "function" || isArray2(opts.filter)) {
|
|
1757
1845
|
filter = opts.filter;
|
|
1758
1846
|
}
|
|
1847
|
+
var arrayFormat;
|
|
1848
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
1849
|
+
arrayFormat = opts.arrayFormat;
|
|
1850
|
+
} else if ("indices" in opts) {
|
|
1851
|
+
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
1852
|
+
} else {
|
|
1853
|
+
arrayFormat = defaults.arrayFormat;
|
|
1854
|
+
}
|
|
1855
|
+
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
1856
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1857
|
+
}
|
|
1858
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
1759
1859
|
return {
|
|
1760
1860
|
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
1761
|
-
allowDots
|
|
1861
|
+
allowDots,
|
|
1862
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
1863
|
+
arrayFormat,
|
|
1762
1864
|
charset,
|
|
1763
1865
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
1866
|
+
commaRoundTrip: opts.commaRoundTrip,
|
|
1764
1867
|
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
1765
1868
|
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
1869
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
1766
1870
|
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
1767
1871
|
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
1768
1872
|
filter,
|
|
@@ -1790,19 +1894,8 @@
|
|
|
1790
1894
|
if (typeof obj !== "object" || obj === null) {
|
|
1791
1895
|
return "";
|
|
1792
1896
|
}
|
|
1793
|
-
var arrayFormat;
|
|
1794
|
-
|
|
1795
|
-
arrayFormat = opts.arrayFormat;
|
|
1796
|
-
} else if (opts && "indices" in opts) {
|
|
1797
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
1798
|
-
} else {
|
|
1799
|
-
arrayFormat = "indices";
|
|
1800
|
-
}
|
|
1801
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
1802
|
-
if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
1803
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1804
|
-
}
|
|
1805
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
|
|
1897
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
1898
|
+
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
1806
1899
|
if (!objKeys) {
|
|
1807
1900
|
objKeys = Object.keys(obj);
|
|
1808
1901
|
}
|
|
@@ -1820,8 +1913,10 @@
|
|
|
1820
1913
|
key,
|
|
1821
1914
|
generateArrayPrefix,
|
|
1822
1915
|
commaRoundTrip,
|
|
1916
|
+
options.allowEmptyArrays,
|
|
1823
1917
|
options.strictNullHandling,
|
|
1824
1918
|
options.skipNulls,
|
|
1919
|
+
options.encodeDotInKeys,
|
|
1825
1920
|
options.encode ? options.encoder : null,
|
|
1826
1921
|
options.filter,
|
|
1827
1922
|
options.sort,
|
|
@@ -1848,24 +1943,27 @@
|
|
|
1848
1943
|
}
|
|
1849
1944
|
});
|
|
1850
1945
|
|
|
1851
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
1946
|
+
// ../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/parse.js
|
|
1852
1947
|
var require_parse = __commonJS({
|
|
1853
|
-
"../../node_modules/.pnpm/qs@6.
|
|
1948
|
+
"../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/parse.js"(exports, module) {
|
|
1854
1949
|
"use strict";
|
|
1855
1950
|
var utils = require_utils();
|
|
1856
1951
|
var has = Object.prototype.hasOwnProperty;
|
|
1857
1952
|
var isArray2 = Array.isArray;
|
|
1858
1953
|
var defaults = {
|
|
1859
1954
|
allowDots: false,
|
|
1955
|
+
allowEmptyArrays: false,
|
|
1860
1956
|
allowPrototypes: false,
|
|
1861
1957
|
allowSparse: false,
|
|
1862
1958
|
arrayLimit: 20,
|
|
1863
1959
|
charset: "utf-8",
|
|
1864
1960
|
charsetSentinel: false,
|
|
1865
1961
|
comma: false,
|
|
1962
|
+
decodeDotInKeys: true,
|
|
1866
1963
|
decoder: utils.decode,
|
|
1867
1964
|
delimiter: "&",
|
|
1868
1965
|
depth: 5,
|
|
1966
|
+
duplicates: "combine",
|
|
1869
1967
|
ignoreQueryPrefix: false,
|
|
1870
1968
|
interpretNumericEntities: false,
|
|
1871
1969
|
parameterLimit: 1e3,
|
|
@@ -1933,9 +2031,10 @@
|
|
|
1933
2031
|
if (part.indexOf("[]=") > -1) {
|
|
1934
2032
|
val = isArray2(val) ? [val] : val;
|
|
1935
2033
|
}
|
|
1936
|
-
|
|
2034
|
+
var existing = has.call(obj, key);
|
|
2035
|
+
if (existing && options.duplicates === "combine") {
|
|
1937
2036
|
obj[key] = utils.combine(obj[key], val);
|
|
1938
|
-
} else {
|
|
2037
|
+
} else if (!existing || options.duplicates === "last") {
|
|
1939
2038
|
obj[key] = val;
|
|
1940
2039
|
}
|
|
1941
2040
|
}
|
|
@@ -1947,18 +2046,19 @@
|
|
|
1947
2046
|
var obj;
|
|
1948
2047
|
var root = chain[i];
|
|
1949
2048
|
if (root === "[]" && options.parseArrays) {
|
|
1950
|
-
obj = [].concat(leaf);
|
|
2049
|
+
obj = options.allowEmptyArrays && leaf === "" ? [] : [].concat(leaf);
|
|
1951
2050
|
} else {
|
|
1952
2051
|
obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1953
2052
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
1954
|
-
var
|
|
1955
|
-
|
|
2053
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
2054
|
+
var index = parseInt(decodedRoot, 10);
|
|
2055
|
+
if (!options.parseArrays && decodedRoot === "") {
|
|
1956
2056
|
obj = { 0: leaf };
|
|
1957
|
-
} else if (!isNaN(index) && root !==
|
|
2057
|
+
} else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
|
|
1958
2058
|
obj = [];
|
|
1959
2059
|
obj[index] = leaf;
|
|
1960
|
-
} else if (
|
|
1961
|
-
obj[
|
|
2060
|
+
} else if (decodedRoot !== "__proto__") {
|
|
2061
|
+
obj[decodedRoot] = leaf;
|
|
1962
2062
|
}
|
|
1963
2063
|
}
|
|
1964
2064
|
leaf = obj;
|
|
@@ -2002,25 +2102,39 @@
|
|
|
2002
2102
|
if (!opts) {
|
|
2003
2103
|
return defaults;
|
|
2004
2104
|
}
|
|
2005
|
-
if (
|
|
2105
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
2106
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
2107
|
+
}
|
|
2108
|
+
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
2109
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
2110
|
+
}
|
|
2111
|
+
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
2006
2112
|
throw new TypeError("Decoder has to be a function.");
|
|
2007
2113
|
}
|
|
2008
2114
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
2009
2115
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2010
2116
|
}
|
|
2011
2117
|
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
2118
|
+
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
2119
|
+
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
2120
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
2121
|
+
}
|
|
2122
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
2012
2123
|
return {
|
|
2013
|
-
allowDots
|
|
2124
|
+
allowDots,
|
|
2125
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
2014
2126
|
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
2015
2127
|
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
2016
2128
|
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
2017
2129
|
charset,
|
|
2018
2130
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
2019
2131
|
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
2132
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
2020
2133
|
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
2021
2134
|
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
2022
2135
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
2023
2136
|
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
2137
|
+
duplicates,
|
|
2024
2138
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
2025
2139
|
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
2026
2140
|
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
@@ -2050,9 +2164,9 @@
|
|
|
2050
2164
|
}
|
|
2051
2165
|
});
|
|
2052
2166
|
|
|
2053
|
-
// ../../node_modules/.pnpm/qs@6.
|
|
2167
|
+
// ../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/index.js
|
|
2054
2168
|
var require_lib = __commonJS({
|
|
2055
|
-
"../../node_modules/.pnpm/qs@6.
|
|
2169
|
+
"../../node_modules/.pnpm/qs@6.12.0/node_modules/qs/lib/index.js"(exports, module) {
|
|
2056
2170
|
"use strict";
|
|
2057
2171
|
var stringify2 = require_stringify();
|
|
2058
2172
|
var parse2 = require_parse();
|