@mx-space/api-client 1.5.1 → 1.6.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/ack.ts +44 -0
- package/controllers/index.ts +5 -1
- package/dist/adaptors/axios.global.js +120 -95
- package/dist/index.cjs +32 -4
- package/dist/index.d.cts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.global.js +28 -2
- package/dist/index.js +30 -3
- package/package.json +8 -8
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { IRequestAdapter } from '~/interfaces/adapter'
|
|
2
|
+
import type { IController } from '~/interfaces/controller'
|
|
3
|
+
import type { IRequestHandler } from '~/interfaces/request'
|
|
4
|
+
|
|
5
|
+
import { autoBind } from '~/utils/auto-bind'
|
|
6
|
+
|
|
7
|
+
import { HTTPClient } from '../core'
|
|
8
|
+
|
|
9
|
+
declare module '../core/client' {
|
|
10
|
+
interface HTTPClient<
|
|
11
|
+
T extends IRequestAdapter = IRequestAdapter,
|
|
12
|
+
ResponseWrapper = unknown,
|
|
13
|
+
> {
|
|
14
|
+
ack: AckController<ResponseWrapper>
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @support core >= 4.4.0
|
|
20
|
+
*/
|
|
21
|
+
export class AckController<ResponseWrapper> implements IController {
|
|
22
|
+
base = 'ack'
|
|
23
|
+
name = 'ack'
|
|
24
|
+
|
|
25
|
+
constructor(private client: HTTPClient) {
|
|
26
|
+
autoBind(this)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public get proxy(): IRequestHandler<ResponseWrapper> {
|
|
30
|
+
return this.client.proxy(this.base)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
read(type: 'post' | 'note', id: string) {
|
|
34
|
+
return this.proxy.ack.post<never>({
|
|
35
|
+
data: {
|
|
36
|
+
type: 'read',
|
|
37
|
+
payload: {
|
|
38
|
+
type,
|
|
39
|
+
id,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
}
|
package/controllers/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AckController } from './ack'
|
|
1
2
|
import { ActivityController } from './activity'
|
|
2
3
|
import { AggregateController } from './aggregate'
|
|
3
4
|
import { CategoryController } from './category'
|
|
@@ -21,6 +22,7 @@ import { TopicController } from './topic'
|
|
|
21
22
|
import { UserController } from './user'
|
|
22
23
|
|
|
23
24
|
export const allControllers = [
|
|
25
|
+
AckController,
|
|
24
26
|
ActivityController,
|
|
25
27
|
AggregateController,
|
|
26
28
|
CategoryController,
|
|
@@ -40,7 +42,8 @@ export const allControllers = [
|
|
|
40
42
|
UserController,
|
|
41
43
|
]
|
|
42
44
|
|
|
43
|
-
export const
|
|
45
|
+
export const allControllerNames = [
|
|
46
|
+
'ack',
|
|
44
47
|
'activity',
|
|
45
48
|
'aggregate',
|
|
46
49
|
'category',
|
|
@@ -66,6 +69,7 @@ export const allContollerNames = [
|
|
|
66
69
|
] as const
|
|
67
70
|
|
|
68
71
|
export {
|
|
72
|
+
AckController,
|
|
69
73
|
ActivityController,
|
|
70
74
|
AggregateController,
|
|
71
75
|
CategoryController,
|
|
@@ -10292,9 +10292,9 @@
|
|
|
10292
10292
|
}
|
|
10293
10293
|
});
|
|
10294
10294
|
|
|
10295
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
10295
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.3_debug@4.3.4/node_modules/follow-redirects/debug.js
|
|
10296
10296
|
var require_debug = __commonJS({
|
|
10297
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
10297
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.3_debug@4.3.4/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
10298
10298
|
"use strict";
|
|
10299
10299
|
var debug;
|
|
10300
10300
|
module.exports = function() {
|
|
@@ -10313,9 +10313,9 @@
|
|
|
10313
10313
|
}
|
|
10314
10314
|
});
|
|
10315
10315
|
|
|
10316
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
10316
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.3_debug@4.3.4/node_modules/follow-redirects/index.js
|
|
10317
10317
|
var require_follow_redirects = __commonJS({
|
|
10318
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
10318
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.3_debug@4.3.4/node_modules/follow-redirects/index.js"(exports, module) {
|
|
10319
10319
|
"use strict";
|
|
10320
10320
|
var url2 = __require("url");
|
|
10321
10321
|
var URL2 = url2.URL;
|
|
@@ -10352,6 +10352,7 @@
|
|
|
10352
10352
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
10353
10353
|
"write after end"
|
|
10354
10354
|
);
|
|
10355
|
+
var destroy = Writable.prototype.destroy || noop2;
|
|
10355
10356
|
function RedirectableRequest(options, responseCallback) {
|
|
10356
10357
|
Writable.call(this);
|
|
10357
10358
|
this._sanitizeOptions(options);
|
|
@@ -10373,9 +10374,15 @@
|
|
|
10373
10374
|
}
|
|
10374
10375
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
10375
10376
|
RedirectableRequest.prototype.abort = function() {
|
|
10376
|
-
|
|
10377
|
+
destroyRequest(this._currentRequest);
|
|
10378
|
+
this._currentRequest.abort();
|
|
10377
10379
|
this.emit("abort");
|
|
10378
10380
|
};
|
|
10381
|
+
RedirectableRequest.prototype.destroy = function(error) {
|
|
10382
|
+
destroyRequest(this._currentRequest, error);
|
|
10383
|
+
destroy.call(this, error);
|
|
10384
|
+
return this;
|
|
10385
|
+
};
|
|
10379
10386
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
|
10380
10387
|
if (this._ending) {
|
|
10381
10388
|
throw new WriteAfterEndError();
|
|
@@ -10456,6 +10463,7 @@
|
|
|
10456
10463
|
self2.removeListener("abort", clearTimer);
|
|
10457
10464
|
self2.removeListener("error", clearTimer);
|
|
10458
10465
|
self2.removeListener("response", clearTimer);
|
|
10466
|
+
self2.removeListener("close", clearTimer);
|
|
10459
10467
|
if (callback) {
|
|
10460
10468
|
self2.removeListener("timeout", callback);
|
|
10461
10469
|
}
|
|
@@ -10475,6 +10483,7 @@
|
|
|
10475
10483
|
this.on("abort", clearTimer);
|
|
10476
10484
|
this.on("error", clearTimer);
|
|
10477
10485
|
this.on("response", clearTimer);
|
|
10486
|
+
this.on("close", clearTimer);
|
|
10478
10487
|
return this;
|
|
10479
10488
|
};
|
|
10480
10489
|
[
|
|
@@ -10572,7 +10581,7 @@
|
|
|
10572
10581
|
this._requestBodyBuffers = [];
|
|
10573
10582
|
return;
|
|
10574
10583
|
}
|
|
10575
|
-
|
|
10584
|
+
destroyRequest(this._currentRequest);
|
|
10576
10585
|
response.destroy();
|
|
10577
10586
|
if (++this._redirectCount > this._options.maxRedirects) {
|
|
10578
10587
|
this.emit("error", new TooManyRedirectsError());
|
|
@@ -10737,12 +10746,12 @@
|
|
|
10737
10746
|
CustomError.prototype.name = "Error [" + code + "]";
|
|
10738
10747
|
return CustomError;
|
|
10739
10748
|
}
|
|
10740
|
-
function
|
|
10749
|
+
function destroyRequest(request, error) {
|
|
10741
10750
|
for (var event of events) {
|
|
10742
10751
|
request.removeListener(event, eventHandlers[event]);
|
|
10743
10752
|
}
|
|
10744
10753
|
request.on("error", noop2);
|
|
10745
|
-
request.
|
|
10754
|
+
request.destroy(error);
|
|
10746
10755
|
}
|
|
10747
10756
|
function isSubdomain(subdomain, domain) {
|
|
10748
10757
|
assert(isString2(subdomain) && isString2(domain));
|
|
@@ -10763,14 +10772,14 @@
|
|
|
10763
10772
|
}
|
|
10764
10773
|
});
|
|
10765
10774
|
|
|
10766
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
10775
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/bind.js
|
|
10767
10776
|
function bind(fn, thisArg) {
|
|
10768
10777
|
return function wrap() {
|
|
10769
10778
|
return fn.apply(thisArg, arguments);
|
|
10770
10779
|
};
|
|
10771
10780
|
}
|
|
10772
10781
|
|
|
10773
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
10782
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/utils.js
|
|
10774
10783
|
var { toString } = Object.prototype;
|
|
10775
10784
|
var { getPrototypeOf } = Object;
|
|
10776
10785
|
var kindOf = ((cache) => (thing) => {
|
|
@@ -10989,8 +10998,9 @@
|
|
|
10989
10998
|
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
10990
10999
|
const reducedDescriptors = {};
|
|
10991
11000
|
forEach(descriptors2, (descriptor, name) => {
|
|
10992
|
-
|
|
10993
|
-
|
|
11001
|
+
let ret;
|
|
11002
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
11003
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
10994
11004
|
}
|
|
10995
11005
|
});
|
|
10996
11006
|
Object.defineProperties(obj, reducedDescriptors);
|
|
@@ -11128,7 +11138,7 @@
|
|
|
11128
11138
|
isThenable
|
|
11129
11139
|
};
|
|
11130
11140
|
|
|
11131
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11141
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/AxiosError.js
|
|
11132
11142
|
function AxiosError(message, code, config, request, response) {
|
|
11133
11143
|
Error.call(this);
|
|
11134
11144
|
if (Error.captureStackTrace) {
|
|
@@ -11200,11 +11210,11 @@
|
|
|
11200
11210
|
};
|
|
11201
11211
|
var AxiosError_default = AxiosError;
|
|
11202
11212
|
|
|
11203
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11213
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
11204
11214
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
11205
11215
|
var FormData_default = import_form_data.default;
|
|
11206
11216
|
|
|
11207
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11217
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/toFormData.js
|
|
11208
11218
|
function isVisitable(thing) {
|
|
11209
11219
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
11210
11220
|
}
|
|
@@ -11319,7 +11329,7 @@
|
|
|
11319
11329
|
}
|
|
11320
11330
|
var toFormData_default = toFormData;
|
|
11321
11331
|
|
|
11322
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11332
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
11323
11333
|
function encode(str) {
|
|
11324
11334
|
const charMap = {
|
|
11325
11335
|
"!": "%21",
|
|
@@ -11352,7 +11362,7 @@
|
|
|
11352
11362
|
};
|
|
11353
11363
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
11354
11364
|
|
|
11355
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11365
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/buildURL.js
|
|
11356
11366
|
function encode2(val) {
|
|
11357
11367
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
11358
11368
|
}
|
|
@@ -11378,7 +11388,7 @@
|
|
|
11378
11388
|
return url2;
|
|
11379
11389
|
}
|
|
11380
11390
|
|
|
11381
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11391
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
11382
11392
|
var InterceptorManager = class {
|
|
11383
11393
|
constructor() {
|
|
11384
11394
|
this.handlers = [];
|
|
@@ -11442,18 +11452,18 @@
|
|
|
11442
11452
|
};
|
|
11443
11453
|
var InterceptorManager_default = InterceptorManager;
|
|
11444
11454
|
|
|
11445
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11455
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/defaults/transitional.js
|
|
11446
11456
|
var transitional_default = {
|
|
11447
11457
|
silentJSONParsing: true,
|
|
11448
11458
|
forcedJSONParsing: true,
|
|
11449
11459
|
clarifyTimeoutError: false
|
|
11450
11460
|
};
|
|
11451
11461
|
|
|
11452
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11462
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
11453
11463
|
var import_url = __toESM(__require("url"), 1);
|
|
11454
11464
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
11455
11465
|
|
|
11456
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11466
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/platform/node/index.js
|
|
11457
11467
|
var node_default = {
|
|
11458
11468
|
isNode: true,
|
|
11459
11469
|
classes: {
|
|
@@ -11464,7 +11474,7 @@
|
|
|
11464
11474
|
protocols: ["http", "https", "file", "data"]
|
|
11465
11475
|
};
|
|
11466
11476
|
|
|
11467
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11477
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
11468
11478
|
function toURLEncodedForm(data, options) {
|
|
11469
11479
|
return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
|
|
11470
11480
|
visitor: function(value, key, path, helpers) {
|
|
@@ -11477,7 +11487,7 @@
|
|
|
11477
11487
|
}, options));
|
|
11478
11488
|
}
|
|
11479
11489
|
|
|
11480
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11490
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
11481
11491
|
function parsePropPath(name) {
|
|
11482
11492
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
11483
11493
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -11529,10 +11539,7 @@
|
|
|
11529
11539
|
}
|
|
11530
11540
|
var formDataToJSON_default = formDataToJSON;
|
|
11531
11541
|
|
|
11532
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11533
|
-
var DEFAULT_CONTENT_TYPE = {
|
|
11534
|
-
"Content-Type": void 0
|
|
11535
|
-
};
|
|
11542
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/defaults/index.js
|
|
11536
11543
|
function stringifySafely(rawValue, parser, encoder) {
|
|
11537
11544
|
if (utils_default.isString(rawValue)) {
|
|
11538
11545
|
try {
|
|
@@ -11631,19 +11638,17 @@
|
|
|
11631
11638
|
},
|
|
11632
11639
|
headers: {
|
|
11633
11640
|
common: {
|
|
11634
|
-
"Accept": "application/json, text/plain, */*"
|
|
11641
|
+
"Accept": "application/json, text/plain, */*",
|
|
11642
|
+
"Content-Type": void 0
|
|
11635
11643
|
}
|
|
11636
11644
|
}
|
|
11637
11645
|
};
|
|
11638
|
-
utils_default.forEach(["delete", "get", "head"],
|
|
11646
|
+
utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
11639
11647
|
defaults.headers[method] = {};
|
|
11640
11648
|
});
|
|
11641
|
-
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
11642
|
-
defaults.headers[method] = utils_default.merge(DEFAULT_CONTENT_TYPE);
|
|
11643
|
-
});
|
|
11644
11649
|
var defaults_default = defaults;
|
|
11645
11650
|
|
|
11646
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11651
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
11647
11652
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
11648
11653
|
"age",
|
|
11649
11654
|
"authorization",
|
|
@@ -11688,7 +11693,7 @@
|
|
|
11688
11693
|
return parsed;
|
|
11689
11694
|
};
|
|
11690
11695
|
|
|
11691
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11696
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
11692
11697
|
var $internals = Symbol("internals");
|
|
11693
11698
|
function normalizeHeader(header) {
|
|
11694
11699
|
return header && String(header).trim().toLowerCase();
|
|
@@ -11894,11 +11899,19 @@
|
|
|
11894
11899
|
}
|
|
11895
11900
|
};
|
|
11896
11901
|
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
11897
|
-
utils_default.
|
|
11902
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
11903
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
11904
|
+
return {
|
|
11905
|
+
get: () => value,
|
|
11906
|
+
set(headerValue) {
|
|
11907
|
+
this[mapped] = headerValue;
|
|
11908
|
+
}
|
|
11909
|
+
};
|
|
11910
|
+
});
|
|
11898
11911
|
utils_default.freezeMethods(AxiosHeaders);
|
|
11899
11912
|
var AxiosHeaders_default = AxiosHeaders;
|
|
11900
11913
|
|
|
11901
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11914
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/transformData.js
|
|
11902
11915
|
function transformData(fns, response) {
|
|
11903
11916
|
const config = this || defaults_default;
|
|
11904
11917
|
const context = response || config;
|
|
@@ -11911,12 +11924,12 @@
|
|
|
11911
11924
|
return data;
|
|
11912
11925
|
}
|
|
11913
11926
|
|
|
11914
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11927
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/cancel/isCancel.js
|
|
11915
11928
|
function isCancel(value) {
|
|
11916
11929
|
return !!(value && value.__CANCEL__);
|
|
11917
11930
|
}
|
|
11918
11931
|
|
|
11919
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11932
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
11920
11933
|
function CanceledError(message, config, request) {
|
|
11921
11934
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
11922
11935
|
this.name = "CanceledError";
|
|
@@ -11926,7 +11939,7 @@
|
|
|
11926
11939
|
});
|
|
11927
11940
|
var CanceledError_default = CanceledError;
|
|
11928
11941
|
|
|
11929
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11942
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/settle.js
|
|
11930
11943
|
function settle(resolve, reject, response) {
|
|
11931
11944
|
const validateStatus2 = response.config.validateStatus;
|
|
11932
11945
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -11942,17 +11955,17 @@
|
|
|
11942
11955
|
}
|
|
11943
11956
|
}
|
|
11944
11957
|
|
|
11945
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11958
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
11946
11959
|
function isAbsoluteURL(url2) {
|
|
11947
11960
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
11948
11961
|
}
|
|
11949
11962
|
|
|
11950
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11963
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
11951
11964
|
function combineURLs(baseURL, relativeURL) {
|
|
11952
11965
|
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
11953
11966
|
}
|
|
11954
11967
|
|
|
11955
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11968
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/buildFullPath.js
|
|
11956
11969
|
function buildFullPath(baseURL, requestedURL) {
|
|
11957
11970
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
11958
11971
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -11960,7 +11973,7 @@
|
|
|
11960
11973
|
return requestedURL;
|
|
11961
11974
|
}
|
|
11962
11975
|
|
|
11963
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11976
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
|
|
11964
11977
|
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
11965
11978
|
var import_http = __toESM(__require("http"), 1);
|
|
11966
11979
|
var import_https = __toESM(__require("https"), 1);
|
|
@@ -11968,16 +11981,16 @@
|
|
|
11968
11981
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
11969
11982
|
var import_zlib = __toESM(__require("zlib"), 1);
|
|
11970
11983
|
|
|
11971
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11972
|
-
var VERSION = "1.
|
|
11984
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/env/data.js
|
|
11985
|
+
var VERSION = "1.5.1";
|
|
11973
11986
|
|
|
11974
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11987
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
11975
11988
|
function parseProtocol(url2) {
|
|
11976
11989
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
11977
11990
|
return match && match[1] || "";
|
|
11978
11991
|
}
|
|
11979
11992
|
|
|
11980
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
11993
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/fromDataURI.js
|
|
11981
11994
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
11982
11995
|
function fromDataURI(uri, asBlob, options) {
|
|
11983
11996
|
const _Blob = options && options.Blob || node_default.classes.Blob;
|
|
@@ -12006,13 +12019,13 @@
|
|
|
12006
12019
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
12007
12020
|
}
|
|
12008
12021
|
|
|
12009
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12022
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
|
|
12010
12023
|
var import_stream4 = __toESM(__require("stream"), 1);
|
|
12011
12024
|
|
|
12012
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12025
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12013
12026
|
var import_stream = __toESM(__require("stream"), 1);
|
|
12014
12027
|
|
|
12015
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12028
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/throttle.js
|
|
12016
12029
|
function throttle(fn, freq) {
|
|
12017
12030
|
let timestamp = 0;
|
|
12018
12031
|
const threshold = 1e3 / freq;
|
|
@@ -12038,7 +12051,7 @@
|
|
|
12038
12051
|
}
|
|
12039
12052
|
var throttle_default = throttle;
|
|
12040
12053
|
|
|
12041
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12054
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/speedometer.js
|
|
12042
12055
|
function speedometer(samplesCount, min) {
|
|
12043
12056
|
samplesCount = samplesCount || 10;
|
|
12044
12057
|
const bytes = new Array(samplesCount);
|
|
@@ -12074,7 +12087,7 @@
|
|
|
12074
12087
|
}
|
|
12075
12088
|
var speedometer_default = speedometer;
|
|
12076
12089
|
|
|
12077
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12090
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12078
12091
|
var kInternals = Symbol("internals");
|
|
12079
12092
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
12080
12093
|
constructor(options) {
|
|
@@ -12224,14 +12237,14 @@
|
|
|
12224
12237
|
};
|
|
12225
12238
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
12226
12239
|
|
|
12227
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12240
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
|
|
12228
12241
|
var import_events = __toESM(__require("events"), 1);
|
|
12229
12242
|
|
|
12230
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12243
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
12231
12244
|
var import_util = __require("util");
|
|
12232
12245
|
var import_stream2 = __require("stream");
|
|
12233
12246
|
|
|
12234
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12247
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/readBlob.js
|
|
12235
12248
|
var { asyncIterator } = Symbol;
|
|
12236
12249
|
var readBlob = async function* (blob) {
|
|
12237
12250
|
if (blob.stream) {
|
|
@@ -12246,7 +12259,7 @@
|
|
|
12246
12259
|
};
|
|
12247
12260
|
var readBlob_default = readBlob;
|
|
12248
12261
|
|
|
12249
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12262
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
12250
12263
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
12251
12264
|
var textEncoder = new import_util.TextEncoder();
|
|
12252
12265
|
var CRLF = "\r\n";
|
|
@@ -12325,7 +12338,7 @@
|
|
|
12325
12338
|
};
|
|
12326
12339
|
var formDataToStream_default = formDataToStream;
|
|
12327
12340
|
|
|
12328
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12341
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
12329
12342
|
var import_stream3 = __toESM(__require("stream"), 1);
|
|
12330
12343
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
12331
12344
|
__transform(chunk, encoding, callback) {
|
|
@@ -12347,7 +12360,7 @@
|
|
|
12347
12360
|
};
|
|
12348
12361
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
12349
12362
|
|
|
12350
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12363
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/callbackify.js
|
|
12351
12364
|
var callbackify = (fn, reducer) => {
|
|
12352
12365
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
12353
12366
|
const cb = args.pop();
|
|
@@ -12362,7 +12375,7 @@
|
|
|
12362
12375
|
};
|
|
12363
12376
|
var callbackify_default = callbackify;
|
|
12364
12377
|
|
|
12365
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12378
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
|
|
12366
12379
|
var zlibOptions = {
|
|
12367
12380
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
12368
12381
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -12638,10 +12651,10 @@
|
|
|
12638
12651
|
auth,
|
|
12639
12652
|
protocol,
|
|
12640
12653
|
family,
|
|
12641
|
-
lookup,
|
|
12642
12654
|
beforeRedirect: dispatchBeforeRedirect,
|
|
12643
12655
|
beforeRedirects: {}
|
|
12644
12656
|
};
|
|
12657
|
+
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
12645
12658
|
if (config.socketPath) {
|
|
12646
12659
|
options.socketPath = config.socketPath;
|
|
12647
12660
|
} else {
|
|
@@ -12696,7 +12709,7 @@
|
|
|
12696
12709
|
if (method === "HEAD" || res.statusCode === 204) {
|
|
12697
12710
|
delete res.headers["content-encoding"];
|
|
12698
12711
|
}
|
|
12699
|
-
switch (res.headers["content-encoding"]) {
|
|
12712
|
+
switch ((res.headers["content-encoding"] || "").toLowerCase()) {
|
|
12700
12713
|
case "gzip":
|
|
12701
12714
|
case "x-gzip":
|
|
12702
12715
|
case "compress":
|
|
@@ -12801,7 +12814,7 @@
|
|
|
12801
12814
|
});
|
|
12802
12815
|
if (config.timeout) {
|
|
12803
12816
|
const timeout = parseInt(config.timeout, 10);
|
|
12804
|
-
if (isNaN(timeout)) {
|
|
12817
|
+
if (Number.isNaN(timeout)) {
|
|
12805
12818
|
reject(new AxiosError_default(
|
|
12806
12819
|
"error trying to parse `config.timeout` to int",
|
|
12807
12820
|
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
@@ -12849,7 +12862,7 @@
|
|
|
12849
12862
|
});
|
|
12850
12863
|
};
|
|
12851
12864
|
|
|
12852
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12865
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/cookies.js
|
|
12853
12866
|
var cookies_default = node_default.isStandardBrowserEnv ? (
|
|
12854
12867
|
// Standard browser envs support document.cookie
|
|
12855
12868
|
function standardBrowserEnv() {
|
|
@@ -12895,7 +12908,7 @@
|
|
|
12895
12908
|
}()
|
|
12896
12909
|
);
|
|
12897
12910
|
|
|
12898
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12911
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
12899
12912
|
var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
|
|
12900
12913
|
// Standard browser envs have full support of the APIs needed to test
|
|
12901
12914
|
// whether the request URL is of the same origin as current location.
|
|
@@ -12936,7 +12949,7 @@
|
|
|
12936
12949
|
}()
|
|
12937
12950
|
);
|
|
12938
12951
|
|
|
12939
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12952
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/xhr.js
|
|
12940
12953
|
function progressEventReducer(listener, isDownloadStream) {
|
|
12941
12954
|
let bytesNotified = 0;
|
|
12942
12955
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -12975,11 +12988,14 @@
|
|
|
12975
12988
|
config.signal.removeEventListener("abort", onCanceled);
|
|
12976
12989
|
}
|
|
12977
12990
|
}
|
|
12991
|
+
let contentType;
|
|
12978
12992
|
if (utils_default.isFormData(requestData)) {
|
|
12979
12993
|
if (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv) {
|
|
12980
12994
|
requestHeaders.setContentType(false);
|
|
12981
|
-
} else {
|
|
12982
|
-
requestHeaders.setContentType("multipart/form-data
|
|
12995
|
+
} else if (!requestHeaders.getContentType(/^\s*multipart\/form-data/)) {
|
|
12996
|
+
requestHeaders.setContentType("multipart/form-data");
|
|
12997
|
+
} else if (utils_default.isString(contentType = requestHeaders.getContentType())) {
|
|
12998
|
+
requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
|
|
12983
12999
|
}
|
|
12984
13000
|
}
|
|
12985
13001
|
let request = new XMLHttpRequest();
|
|
@@ -13101,7 +13117,7 @@
|
|
|
13101
13117
|
});
|
|
13102
13118
|
};
|
|
13103
13119
|
|
|
13104
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13120
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/adapters.js
|
|
13105
13121
|
var knownAdapters = {
|
|
13106
13122
|
http: http_default,
|
|
13107
13123
|
xhr: xhr_default
|
|
@@ -13115,38 +13131,46 @@
|
|
|
13115
13131
|
Object.defineProperty(fn, "adapterName", { value });
|
|
13116
13132
|
}
|
|
13117
13133
|
});
|
|
13134
|
+
var renderReason = (reason) => `- ${reason}`;
|
|
13135
|
+
var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;
|
|
13118
13136
|
var adapters_default = {
|
|
13119
13137
|
getAdapter: (adapters) => {
|
|
13120
13138
|
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
13121
13139
|
const { length } = adapters;
|
|
13122
13140
|
let nameOrAdapter;
|
|
13123
13141
|
let adapter;
|
|
13142
|
+
const rejectedReasons = {};
|
|
13124
13143
|
for (let i = 0; i < length; i++) {
|
|
13125
13144
|
nameOrAdapter = adapters[i];
|
|
13126
|
-
|
|
13145
|
+
let id;
|
|
13146
|
+
adapter = nameOrAdapter;
|
|
13147
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
13148
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
13149
|
+
if (adapter === void 0) {
|
|
13150
|
+
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
13151
|
+
}
|
|
13152
|
+
}
|
|
13153
|
+
if (adapter) {
|
|
13127
13154
|
break;
|
|
13128
13155
|
}
|
|
13156
|
+
rejectedReasons[id || "#" + i] = adapter;
|
|
13129
13157
|
}
|
|
13130
13158
|
if (!adapter) {
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
utils_default.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
|
|
13159
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
13160
|
+
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
13161
|
+
);
|
|
13162
|
+
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
13163
|
+
throw new AxiosError_default(
|
|
13164
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
13165
|
+
"ERR_NOT_SUPPORT"
|
|
13139
13166
|
);
|
|
13140
|
-
}
|
|
13141
|
-
if (!utils_default.isFunction(adapter)) {
|
|
13142
|
-
throw new TypeError("adapter is not a function");
|
|
13143
13167
|
}
|
|
13144
13168
|
return adapter;
|
|
13145
13169
|
},
|
|
13146
13170
|
adapters: knownAdapters
|
|
13147
13171
|
};
|
|
13148
13172
|
|
|
13149
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13173
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
13150
13174
|
function throwIfCancellationRequested(config) {
|
|
13151
13175
|
if (config.cancelToken) {
|
|
13152
13176
|
config.cancelToken.throwIfRequested();
|
|
@@ -13191,7 +13215,7 @@
|
|
|
13191
13215
|
});
|
|
13192
13216
|
}
|
|
13193
13217
|
|
|
13194
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13218
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/mergeConfig.js
|
|
13195
13219
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
|
|
13196
13220
|
function mergeConfig(config1, config2) {
|
|
13197
13221
|
config2 = config2 || {};
|
|
@@ -13270,7 +13294,7 @@
|
|
|
13270
13294
|
return config;
|
|
13271
13295
|
}
|
|
13272
13296
|
|
|
13273
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13297
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/validator.js
|
|
13274
13298
|
var validators = {};
|
|
13275
13299
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
13276
13300
|
validators[type] = function validator(thing) {
|
|
@@ -13328,7 +13352,7 @@
|
|
|
13328
13352
|
validators
|
|
13329
13353
|
};
|
|
13330
13354
|
|
|
13331
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13355
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/Axios.js
|
|
13332
13356
|
var validators2 = validator_default.validators;
|
|
13333
13357
|
var Axios = class {
|
|
13334
13358
|
constructor(instanceConfig) {
|
|
@@ -13375,12 +13399,11 @@
|
|
|
13375
13399
|
}
|
|
13376
13400
|
}
|
|
13377
13401
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
13378
|
-
let contextHeaders
|
|
13379
|
-
contextHeaders = headers && utils_default.merge(
|
|
13402
|
+
let contextHeaders = headers && utils_default.merge(
|
|
13380
13403
|
headers.common,
|
|
13381
13404
|
headers[config.method]
|
|
13382
13405
|
);
|
|
13383
|
-
|
|
13406
|
+
headers && utils_default.forEach(
|
|
13384
13407
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
13385
13408
|
(method) => {
|
|
13386
13409
|
delete headers[method];
|
|
@@ -13445,7 +13468,7 @@
|
|
|
13445
13468
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
13446
13469
|
}
|
|
13447
13470
|
};
|
|
13448
|
-
utils_default.forEach(["delete", "get", "head", "options"], function
|
|
13471
|
+
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
13449
13472
|
Axios.prototype[method] = function(url2, config) {
|
|
13450
13473
|
return this.request(mergeConfig(config || {}, {
|
|
13451
13474
|
method,
|
|
@@ -13454,7 +13477,7 @@
|
|
|
13454
13477
|
}));
|
|
13455
13478
|
};
|
|
13456
13479
|
});
|
|
13457
|
-
utils_default.forEach(["post", "put", "patch"], function
|
|
13480
|
+
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
13458
13481
|
function generateHTTPMethod(isForm) {
|
|
13459
13482
|
return function httpMethod(url2, data, config) {
|
|
13460
13483
|
return this.request(mergeConfig(config || {}, {
|
|
@@ -13472,7 +13495,7 @@
|
|
|
13472
13495
|
});
|
|
13473
13496
|
var Axios_default = Axios;
|
|
13474
13497
|
|
|
13475
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13498
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
13476
13499
|
var CancelToken = class _CancelToken {
|
|
13477
13500
|
constructor(executor) {
|
|
13478
13501
|
if (typeof executor !== "function") {
|
|
@@ -13562,19 +13585,19 @@
|
|
|
13562
13585
|
};
|
|
13563
13586
|
var CancelToken_default = CancelToken;
|
|
13564
13587
|
|
|
13565
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13588
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/spread.js
|
|
13566
13589
|
function spread(callback) {
|
|
13567
13590
|
return function wrap(arr) {
|
|
13568
13591
|
return callback.apply(null, arr);
|
|
13569
13592
|
};
|
|
13570
13593
|
}
|
|
13571
13594
|
|
|
13572
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13595
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
13573
13596
|
function isAxiosError(payload) {
|
|
13574
13597
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
13575
13598
|
}
|
|
13576
13599
|
|
|
13577
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13600
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
13578
13601
|
var HttpStatusCode = {
|
|
13579
13602
|
Continue: 100,
|
|
13580
13603
|
SwitchingProtocols: 101,
|
|
@@ -13645,7 +13668,7 @@
|
|
|
13645
13668
|
});
|
|
13646
13669
|
var HttpStatusCode_default = HttpStatusCode;
|
|
13647
13670
|
|
|
13648
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13671
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/axios.js
|
|
13649
13672
|
function createInstance(defaultConfig) {
|
|
13650
13673
|
const context = new Axios_default(defaultConfig);
|
|
13651
13674
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -13673,11 +13696,12 @@
|
|
|
13673
13696
|
axios.mergeConfig = mergeConfig;
|
|
13674
13697
|
axios.AxiosHeaders = AxiosHeaders_default;
|
|
13675
13698
|
axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
13699
|
+
axios.getAdapter = adapters_default.getAdapter;
|
|
13676
13700
|
axios.HttpStatusCode = HttpStatusCode_default;
|
|
13677
13701
|
axios.default = axios;
|
|
13678
13702
|
var axios_default = axios;
|
|
13679
13703
|
|
|
13680
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13704
|
+
// ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/index.js
|
|
13681
13705
|
var {
|
|
13682
13706
|
Axios: Axios2,
|
|
13683
13707
|
AxiosError: AxiosError2,
|
|
@@ -13693,6 +13717,7 @@
|
|
|
13693
13717
|
AxiosHeaders: AxiosHeaders2,
|
|
13694
13718
|
HttpStatusCode: HttpStatusCode2,
|
|
13695
13719
|
formToJSON,
|
|
13720
|
+
getAdapter,
|
|
13696
13721
|
mergeConfig: mergeConfig2
|
|
13697
13722
|
} = axios_default;
|
|
13698
13723
|
|
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.ts
|
|
21
21
|
var api_client_exports = {};
|
|
22
22
|
__export(api_client_exports, {
|
|
23
|
+
AckController: () => AckController,
|
|
23
24
|
ActivityController: () => ActivityController,
|
|
24
25
|
AggregateController: () => AggregateController,
|
|
25
26
|
CategoryController: () => CategoryController,
|
|
@@ -55,7 +56,7 @@ __export(api_client_exports, {
|
|
|
55
56
|
TimelineType: () => TimelineType,
|
|
56
57
|
TopicController: () => TopicController,
|
|
57
58
|
UserController: () => UserController,
|
|
58
|
-
|
|
59
|
+
allControllerNames: () => allControllerNames,
|
|
59
60
|
allControllers: () => allControllers,
|
|
60
61
|
createClient: () => createClient,
|
|
61
62
|
default: () => api_client_default,
|
|
@@ -163,6 +164,30 @@ function autoBind(self, { include, exclude } = {}) {
|
|
|
163
164
|
return self;
|
|
164
165
|
}
|
|
165
166
|
|
|
167
|
+
// controllers/ack.ts
|
|
168
|
+
var AckController = class {
|
|
169
|
+
constructor(client) {
|
|
170
|
+
this.client = client;
|
|
171
|
+
this.base = "ack";
|
|
172
|
+
this.name = "ack";
|
|
173
|
+
autoBind(this);
|
|
174
|
+
}
|
|
175
|
+
get proxy() {
|
|
176
|
+
return this.client.proxy(this.base);
|
|
177
|
+
}
|
|
178
|
+
read(type, id) {
|
|
179
|
+
return this.proxy.ack.post({
|
|
180
|
+
data: {
|
|
181
|
+
type: "read",
|
|
182
|
+
payload: {
|
|
183
|
+
type,
|
|
184
|
+
id
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
|
|
166
191
|
// controllers/activity.ts
|
|
167
192
|
var ActivityController = class {
|
|
168
193
|
constructor(client) {
|
|
@@ -804,6 +829,7 @@ var UserController = class {
|
|
|
804
829
|
|
|
805
830
|
// controllers/index.ts
|
|
806
831
|
var allControllers = [
|
|
832
|
+
AckController,
|
|
807
833
|
ActivityController,
|
|
808
834
|
AggregateController,
|
|
809
835
|
CategoryController,
|
|
@@ -822,7 +848,8 @@ var allControllers = [
|
|
|
822
848
|
SubscribeController,
|
|
823
849
|
UserController
|
|
824
850
|
];
|
|
825
|
-
var
|
|
851
|
+
var allControllerNames = [
|
|
852
|
+
"ack",
|
|
826
853
|
"activity",
|
|
827
854
|
"aggregate",
|
|
828
855
|
"category",
|
|
@@ -894,7 +921,7 @@ var HTTPClient = class {
|
|
|
894
921
|
attachRequestMethod(this);
|
|
895
922
|
}
|
|
896
923
|
initGetClient() {
|
|
897
|
-
for (const name of
|
|
924
|
+
for (const name of allControllerNames) {
|
|
898
925
|
Object.defineProperty(this, name, {
|
|
899
926
|
get() {
|
|
900
927
|
const client = Reflect.get(this, `${methodPrefix}${name}`);
|
|
@@ -1137,6 +1164,7 @@ var SubscribeTypeToBitMap = {
|
|
|
1137
1164
|
var api_client_default = createClient;
|
|
1138
1165
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1139
1166
|
0 && (module.exports = {
|
|
1167
|
+
AckController,
|
|
1140
1168
|
ActivityController,
|
|
1141
1169
|
AggregateController,
|
|
1142
1170
|
CategoryController,
|
|
@@ -1172,7 +1200,7 @@ var api_client_default = createClient;
|
|
|
1172
1200
|
TimelineType,
|
|
1173
1201
|
TopicController,
|
|
1174
1202
|
UserController,
|
|
1175
|
-
|
|
1203
|
+
allControllerNames,
|
|
1176
1204
|
allControllers,
|
|
1177
1205
|
createClient,
|
|
1178
1206
|
simpleCamelcaseKeys
|
package/dist/index.d.cts
CHANGED
|
@@ -92,6 +92,30 @@ declare class RequestError extends Error {
|
|
|
92
92
|
constructor(message: string, status: number, path: string, raw: any);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
declare module '../core/client' {
|
|
96
|
+
interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
|
|
97
|
+
ack: AckController<ResponseWrapper>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @support core >= 4.4.0
|
|
102
|
+
*/
|
|
103
|
+
declare class AckController<ResponseWrapper> implements IController {
|
|
104
|
+
private client;
|
|
105
|
+
base: string;
|
|
106
|
+
name: string;
|
|
107
|
+
constructor(client: HTTPClient);
|
|
108
|
+
get proxy(): IRequestHandler<ResponseWrapper>;
|
|
109
|
+
read(type: 'post' | 'note', id: string): RequestProxyResult<never, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
data: never;
|
|
112
|
+
} : ResponseWrapper extends {
|
|
113
|
+
data: never;
|
|
114
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
115
|
+
data: never;
|
|
116
|
+
}>;
|
|
117
|
+
}
|
|
118
|
+
|
|
95
119
|
declare module '../core/client' {
|
|
96
120
|
interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
|
|
97
121
|
activity: ActivityController<ResponseWrapper>;
|
|
@@ -1467,8 +1491,8 @@ declare class UserController<ResponseWrapper> implements IController {
|
|
|
1467
1491
|
}>;
|
|
1468
1492
|
}
|
|
1469
1493
|
|
|
1470
|
-
declare const allControllers: (typeof ActivityController | typeof AggregateController | typeof CategoryController | typeof CommentController | typeof LinkController | typeof NoteController | typeof PageController | typeof PostController | typeof ProjectController | typeof RecentlyController | typeof SayController | typeof SearchController | typeof ServerlessController | typeof SnippetController | typeof SubscribeController | typeof TopicController | typeof UserController)[];
|
|
1471
|
-
declare const
|
|
1494
|
+
declare const allControllers: (typeof AckController | typeof ActivityController | typeof AggregateController | typeof CategoryController | typeof CommentController | typeof LinkController | typeof NoteController | typeof PageController | typeof PostController | typeof ProjectController | typeof RecentlyController | typeof SayController | typeof SearchController | typeof ServerlessController | typeof SnippetController | typeof SubscribeController | typeof TopicController | typeof UserController)[];
|
|
1495
|
+
declare const allControllerNames: readonly ["ack", "activity", "aggregate", "category", "comment", "link", "note", "page", "post", "project", "topic", "recently", "say", "search", "snippet", "serverless", "subscribe", "user", "friend", "master", "shorthand"];
|
|
1472
1496
|
|
|
1473
1497
|
declare enum SnippetType {
|
|
1474
1498
|
JSON = "json",
|
|
@@ -1494,4 +1518,4 @@ interface SnippetModel<T = unknown> extends BaseModel {
|
|
|
1494
1518
|
*/
|
|
1495
1519
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
1496
1520
|
|
|
1497
|
-
export { ActivityController, AdminExtraModel, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, HTTPClient, IConfig, IConfigKeys, Image, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, NoteController, NoteModel, NoteMusicRecord, NoteWrappedPayload, NoteWrappedWithLikedPayload, PageController, PageModel, Pager, PaginateResult, PostController, PostModel, ProjectController, ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RefType, RequestError, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TimelineData, TimelineType, TopicController, TopicModel, Url, UrlOptionModel, UserController, UserModel,
|
|
1521
|
+
export { AckController, ActivityController, AdminExtraModel, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, HTTPClient, IConfig, IConfigKeys, Image, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, NoteController, NoteModel, NoteMusicRecord, NoteWrappedPayload, NoteWrappedWithLikedPayload, PageController, PageModel, Pager, PaginateResult, PostController, PostModel, ProjectController, ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RefType, RequestError, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TimelineData, TimelineType, TopicController, TopicModel, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,30 @@ declare class RequestError extends Error {
|
|
|
92
92
|
constructor(message: string, status: number, path: string, raw: any);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
declare module '@mx-space/api-client' {
|
|
96
|
+
interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
|
|
97
|
+
ack: AckController<ResponseWrapper>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @support core >= 4.4.0
|
|
102
|
+
*/
|
|
103
|
+
declare class AckController<ResponseWrapper> implements IController {
|
|
104
|
+
private client;
|
|
105
|
+
base: string;
|
|
106
|
+
name: string;
|
|
107
|
+
constructor(client: HTTPClient);
|
|
108
|
+
get proxy(): IRequestHandler<ResponseWrapper>;
|
|
109
|
+
read(type: 'post' | 'note', id: string): RequestProxyResult<never, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
data: never;
|
|
112
|
+
} : ResponseWrapper extends {
|
|
113
|
+
data: never;
|
|
114
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
115
|
+
data: never;
|
|
116
|
+
}>;
|
|
117
|
+
}
|
|
118
|
+
|
|
95
119
|
declare module '@mx-space/api-client' {
|
|
96
120
|
interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
|
|
97
121
|
activity: ActivityController<ResponseWrapper>;
|
|
@@ -1467,8 +1491,8 @@ declare class UserController<ResponseWrapper> implements IController {
|
|
|
1467
1491
|
}>;
|
|
1468
1492
|
}
|
|
1469
1493
|
|
|
1470
|
-
declare const allControllers: (typeof ActivityController | typeof AggregateController | typeof CategoryController | typeof CommentController | typeof LinkController | typeof NoteController | typeof PageController | typeof PostController | typeof ProjectController | typeof RecentlyController | typeof SayController | typeof SearchController | typeof ServerlessController | typeof SnippetController | typeof SubscribeController | typeof TopicController | typeof UserController)[];
|
|
1471
|
-
declare const
|
|
1494
|
+
declare const allControllers: (typeof AckController | typeof ActivityController | typeof AggregateController | typeof CategoryController | typeof CommentController | typeof LinkController | typeof NoteController | typeof PageController | typeof PostController | typeof ProjectController | typeof RecentlyController | typeof SayController | typeof SearchController | typeof ServerlessController | typeof SnippetController | typeof SubscribeController | typeof TopicController | typeof UserController)[];
|
|
1495
|
+
declare const allControllerNames: readonly ["ack", "activity", "aggregate", "category", "comment", "link", "note", "page", "post", "project", "topic", "recently", "say", "search", "snippet", "serverless", "subscribe", "user", "friend", "master", "shorthand"];
|
|
1472
1496
|
|
|
1473
1497
|
declare enum SnippetType {
|
|
1474
1498
|
JSON = "json",
|
|
@@ -1494,4 +1518,4 @@ interface SnippetModel<T = unknown> extends BaseModel {
|
|
|
1494
1518
|
*/
|
|
1495
1519
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
1496
1520
|
|
|
1497
|
-
export { ActivityController, AdminExtraModel, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, HTTPClient, IConfig, IConfigKeys, Image, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, NoteController, NoteModel, NoteMusicRecord, NoteWrappedPayload, NoteWrappedWithLikedPayload, PageController, PageModel, Pager, PaginateResult, PostController, PostModel, ProjectController, ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RefType, RequestError, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TimelineData, TimelineType, TopicController, TopicModel, Url, UrlOptionModel, UserController, UserModel,
|
|
1521
|
+
export { AckController, ActivityController, AdminExtraModel, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, HTTPClient, IConfig, IConfigKeys, Image, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, NoteController, NoteModel, NoteMusicRecord, NoteWrappedPayload, NoteWrappedWithLikedPayload, PageController, PageModel, Pager, PaginateResult, PostController, PostModel, ProjectController, ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RefType, RequestError, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TimelineData, TimelineType, TopicController, TopicModel, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
package/dist/index.global.js
CHANGED
|
@@ -100,6 +100,30 @@
|
|
|
100
100
|
return self;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
// controllers/ack.ts
|
|
104
|
+
var AckController = class {
|
|
105
|
+
constructor(client) {
|
|
106
|
+
this.client = client;
|
|
107
|
+
this.base = "ack";
|
|
108
|
+
this.name = "ack";
|
|
109
|
+
autoBind(this);
|
|
110
|
+
}
|
|
111
|
+
get proxy() {
|
|
112
|
+
return this.client.proxy(this.base);
|
|
113
|
+
}
|
|
114
|
+
read(type, id) {
|
|
115
|
+
return this.proxy.ack.post({
|
|
116
|
+
data: {
|
|
117
|
+
type: "read",
|
|
118
|
+
payload: {
|
|
119
|
+
type,
|
|
120
|
+
id
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
103
127
|
// controllers/activity.ts
|
|
104
128
|
var ActivityController = class {
|
|
105
129
|
constructor(client) {
|
|
@@ -741,6 +765,7 @@
|
|
|
741
765
|
|
|
742
766
|
// controllers/index.ts
|
|
743
767
|
var allControllers = [
|
|
768
|
+
AckController,
|
|
744
769
|
ActivityController,
|
|
745
770
|
AggregateController,
|
|
746
771
|
CategoryController,
|
|
@@ -759,7 +784,8 @@
|
|
|
759
784
|
SubscribeController,
|
|
760
785
|
UserController
|
|
761
786
|
];
|
|
762
|
-
var
|
|
787
|
+
var allControllerNames = [
|
|
788
|
+
"ack",
|
|
763
789
|
"activity",
|
|
764
790
|
"aggregate",
|
|
765
791
|
"category",
|
|
@@ -831,7 +857,7 @@
|
|
|
831
857
|
attachRequestMethod(this);
|
|
832
858
|
}
|
|
833
859
|
initGetClient() {
|
|
834
|
-
for (const name of
|
|
860
|
+
for (const name of allControllerNames) {
|
|
835
861
|
Object.defineProperty(this, name, {
|
|
836
862
|
get() {
|
|
837
863
|
const client = Reflect.get(this, `${methodPrefix}${name}`);
|
package/dist/index.js
CHANGED
|
@@ -98,6 +98,30 @@ function autoBind(self, { include, exclude } = {}) {
|
|
|
98
98
|
return self;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
// controllers/ack.ts
|
|
102
|
+
var AckController = class {
|
|
103
|
+
constructor(client) {
|
|
104
|
+
this.client = client;
|
|
105
|
+
this.base = "ack";
|
|
106
|
+
this.name = "ack";
|
|
107
|
+
autoBind(this);
|
|
108
|
+
}
|
|
109
|
+
get proxy() {
|
|
110
|
+
return this.client.proxy(this.base);
|
|
111
|
+
}
|
|
112
|
+
read(type, id) {
|
|
113
|
+
return this.proxy.ack.post({
|
|
114
|
+
data: {
|
|
115
|
+
type: "read",
|
|
116
|
+
payload: {
|
|
117
|
+
type,
|
|
118
|
+
id
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
101
125
|
// controllers/activity.ts
|
|
102
126
|
var ActivityController = class {
|
|
103
127
|
constructor(client) {
|
|
@@ -739,6 +763,7 @@ var UserController = class {
|
|
|
739
763
|
|
|
740
764
|
// controllers/index.ts
|
|
741
765
|
var allControllers = [
|
|
766
|
+
AckController,
|
|
742
767
|
ActivityController,
|
|
743
768
|
AggregateController,
|
|
744
769
|
CategoryController,
|
|
@@ -757,7 +782,8 @@ var allControllers = [
|
|
|
757
782
|
SubscribeController,
|
|
758
783
|
UserController
|
|
759
784
|
];
|
|
760
|
-
var
|
|
785
|
+
var allControllerNames = [
|
|
786
|
+
"ack",
|
|
761
787
|
"activity",
|
|
762
788
|
"aggregate",
|
|
763
789
|
"category",
|
|
@@ -829,7 +855,7 @@ var HTTPClient = class {
|
|
|
829
855
|
attachRequestMethod(this);
|
|
830
856
|
}
|
|
831
857
|
initGetClient() {
|
|
832
|
-
for (const name of
|
|
858
|
+
for (const name of allControllerNames) {
|
|
833
859
|
Object.defineProperty(this, name, {
|
|
834
860
|
get() {
|
|
835
861
|
const client = Reflect.get(this, `${methodPrefix}${name}`);
|
|
@@ -1071,6 +1097,7 @@ var SubscribeTypeToBitMap = {
|
|
|
1071
1097
|
// index.ts
|
|
1072
1098
|
var api_client_default = createClient;
|
|
1073
1099
|
export {
|
|
1100
|
+
AckController,
|
|
1074
1101
|
ActivityController,
|
|
1075
1102
|
AggregateController,
|
|
1076
1103
|
CategoryController,
|
|
@@ -1106,7 +1133,7 @@ export {
|
|
|
1106
1133
|
TimelineType,
|
|
1107
1134
|
TopicController,
|
|
1108
1135
|
UserController,
|
|
1109
|
-
|
|
1136
|
+
allControllerNames,
|
|
1110
1137
|
allControllers,
|
|
1111
1138
|
createClient,
|
|
1112
1139
|
api_client_default as default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A api client for mx-space server@next",
|
|
6
6
|
"author": "Innei",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"dev": "vitest"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/cors": "2.8.
|
|
48
|
-
"@types/express": "4.17.
|
|
49
|
-
"@types/lodash": "4.14.
|
|
47
|
+
"@types/cors": "2.8.15",
|
|
48
|
+
"@types/express": "4.17.20",
|
|
49
|
+
"@types/lodash": "4.14.199",
|
|
50
50
|
"abort-controller": "3.0.0",
|
|
51
|
-
"axios": "^1.
|
|
51
|
+
"axios": "^1.5.1",
|
|
52
52
|
"camelcase-keys": "^7.0.2",
|
|
53
53
|
"cors": "2.8.5",
|
|
54
54
|
"express": "4.18.2",
|
|
55
55
|
"form-data": "4.0.0",
|
|
56
56
|
"ky": "0.33.3",
|
|
57
57
|
"lodash": "4.17.21",
|
|
58
|
-
"tsup": "7.
|
|
58
|
+
"tsup": "7.2.0",
|
|
59
59
|
"umi-request": "1.4.0",
|
|
60
|
-
"vite": "^4.
|
|
61
|
-
"vitest": "^0.
|
|
60
|
+
"vite": "^4.4.11",
|
|
61
|
+
"vitest": "^0.34.6"
|
|
62
62
|
}
|
|
63
63
|
}
|