@mx-space/api-client 1.3.4 → 1.3.5
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/.eslintcache +1 -1
- package/dist/adaptors/umi-request.global.js +28 -30
- package/dist/index.d.ts +1 -0
- package/models/comment.ts +1 -0
- package/package.json +3 -4
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/Users/innei/git/mx-core/packages/api-client/__tests__/contronllers/subscribe.test.ts":"1","/Users/innei/git/mx-core/packages/api-client/controllers/index.ts":"2","/Users/innei/git/mx-core/packages/api-client/controllers/subscribe.ts":"3","/Users/innei/git/mx-core/packages/api-client/models/subscribe.ts":"4"},{"size":1248,"mtime":1676377331631,"results":"
|
|
1
|
+
[{"/Users/innei/git/mx-core/packages/api-client/__tests__/contronllers/subscribe.test.ts":"1","/Users/innei/git/mx-core/packages/api-client/controllers/index.ts":"2","/Users/innei/git/mx-core/packages/api-client/controllers/subscribe.ts":"3","/Users/innei/git/mx-core/packages/api-client/models/subscribe.ts":"4","/Users/innei/git/mx-core/packages/api-client/models/comment.ts":"5"},{"size":1248,"mtime":1676377331631,"results":"6","hashOfConfig":"7"},{"size":1818,"mtime":1676258251701,"results":"8","hashOfConfig":"9"},{"size":1343,"mtime":1676377286019,"results":"10","hashOfConfig":"7"},{"size":207,"mtime":1676258101313,"results":"11","hashOfConfig":"9"},{"size":706,"mtime":1678365386478,"results":"12","hashOfConfig":"7"},{"filePath":"13","messages":"14","suppressedMessages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"6bq7ts",{"filePath":"16","messages":"17","suppressedMessages":"18","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nfy72z",{"filePath":"19","messages":"20","suppressedMessages":"21","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"22","messages":"23","suppressedMessages":"24","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"25","messages":"26","suppressedMessages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/innei/git/mx-core/packages/api-client/__tests__/contronllers/subscribe.test.ts",[],[],"/Users/innei/git/mx-core/packages/api-client/controllers/index.ts",[],[],"/Users/innei/git/mx-core/packages/api-client/controllers/subscribe.ts",["28"],[],"/Users/innei/git/mx-core/packages/api-client/models/subscribe.ts",[],[],"/Users/innei/git/mx-core/packages/api-client/models/comment.ts",[],[],{"ruleId":"29","severity":1,"message":"30","line":11,"column":5,"nodeType":"31","messageId":"32","endLine":11,"endColumn":6},"unused-imports/no-unused-vars","'T' is defined but never used. Allowed unused vars must match /^_/u.","Identifier","unusedVar"]
|
|
@@ -533,16 +533,16 @@
|
|
|
533
533
|
}
|
|
534
534
|
});
|
|
535
535
|
|
|
536
|
-
// ../../node_modules/.pnpm/object-inspect@1.12.
|
|
536
|
+
// ../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/util.inspect.js
|
|
537
537
|
var require_util_inspect = __commonJS({
|
|
538
|
-
"../../node_modules/.pnpm/object-inspect@1.12.
|
|
538
|
+
"../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/util.inspect.js"(exports, module) {
|
|
539
539
|
module.exports = __require("util").inspect;
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
|
|
543
|
-
// ../../node_modules/.pnpm/object-inspect@1.12.
|
|
543
|
+
// ../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/index.js
|
|
544
544
|
var require_object_inspect = __commonJS({
|
|
545
|
-
"../../node_modules/.pnpm/object-inspect@1.12.
|
|
545
|
+
"../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/index.js"(exports, module) {
|
|
546
546
|
var hasMap = typeof Map === "function" && Map.prototype;
|
|
547
547
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
548
548
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
@@ -719,16 +719,20 @@
|
|
|
719
719
|
}
|
|
720
720
|
if (isMap(obj)) {
|
|
721
721
|
var mapParts = [];
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
722
|
+
if (mapForEach) {
|
|
723
|
+
mapForEach.call(obj, function(value, key) {
|
|
724
|
+
mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
|
|
725
|
+
});
|
|
726
|
+
}
|
|
725
727
|
return collectionOf("Map", mapSize.call(obj), mapParts, indent);
|
|
726
728
|
}
|
|
727
729
|
if (isSet(obj)) {
|
|
728
730
|
var setParts = [];
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
731
|
+
if (setForEach) {
|
|
732
|
+
setForEach.call(obj, function(value) {
|
|
733
|
+
setParts.push(inspect(value, obj));
|
|
734
|
+
});
|
|
735
|
+
}
|
|
732
736
|
return collectionOf("Set", setSize.call(obj), setParts, indent);
|
|
733
737
|
}
|
|
734
738
|
if (isWeakMap(obj)) {
|
|
@@ -1156,9 +1160,9 @@
|
|
|
1156
1160
|
}
|
|
1157
1161
|
});
|
|
1158
1162
|
|
|
1159
|
-
// ../../node_modules/.pnpm/qs@6.11.
|
|
1163
|
+
// ../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/formats.js
|
|
1160
1164
|
var require_formats = __commonJS({
|
|
1161
|
-
"../../node_modules/.pnpm/qs@6.11.
|
|
1165
|
+
"../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/formats.js"(exports, module) {
|
|
1162
1166
|
"use strict";
|
|
1163
1167
|
var replace = String.prototype.replace;
|
|
1164
1168
|
var percentTwenties = /%20/g;
|
|
@@ -1182,9 +1186,9 @@
|
|
|
1182
1186
|
}
|
|
1183
1187
|
});
|
|
1184
1188
|
|
|
1185
|
-
// ../../node_modules/.pnpm/qs@6.11.
|
|
1189
|
+
// ../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/utils.js
|
|
1186
1190
|
var require_utils = __commonJS({
|
|
1187
|
-
"../../node_modules/.pnpm/qs@6.11.
|
|
1191
|
+
"../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/utils.js"(exports, module) {
|
|
1188
1192
|
"use strict";
|
|
1189
1193
|
var formats = require_formats();
|
|
1190
1194
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -1381,9 +1385,9 @@
|
|
|
1381
1385
|
}
|
|
1382
1386
|
});
|
|
1383
1387
|
|
|
1384
|
-
// ../../node_modules/.pnpm/qs@6.11.
|
|
1388
|
+
// ../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/stringify.js
|
|
1385
1389
|
var require_stringify = __commonJS({
|
|
1386
|
-
"../../node_modules/.pnpm/qs@6.11.
|
|
1390
|
+
"../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/stringify.js"(exports, module) {
|
|
1387
1391
|
"use strict";
|
|
1388
1392
|
var getSideChannel = require_side_channel();
|
|
1389
1393
|
var utils = require_utils();
|
|
@@ -1402,7 +1406,6 @@
|
|
|
1402
1406
|
}
|
|
1403
1407
|
};
|
|
1404
1408
|
var isArray2 = Array.isArray;
|
|
1405
|
-
var split = String.prototype.split;
|
|
1406
1409
|
var push = Array.prototype.push;
|
|
1407
1410
|
var pushToArray = function(arr, valueOrArray) {
|
|
1408
1411
|
push.apply(arr, isArray2(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
@@ -1472,14 +1475,6 @@
|
|
|
1472
1475
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
1473
1476
|
if (encoder) {
|
|
1474
1477
|
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
|
|
1475
|
-
if (generateArrayPrefix === "comma" && encodeValuesOnly) {
|
|
1476
|
-
var valuesArray = split.call(String(obj), ",");
|
|
1477
|
-
var valuesJoined = "";
|
|
1478
|
-
for (var i = 0; i < valuesArray.length; ++i) {
|
|
1479
|
-
valuesJoined += (i === 0 ? "" : ",") + formatter(encoder(valuesArray[i], defaults.encoder, charset, "value", format));
|
|
1480
|
-
}
|
|
1481
|
-
return [formatter(keyValue) + (commaRoundTrip && isArray2(obj) && valuesArray.length === 1 ? "[]" : "") + "=" + valuesJoined];
|
|
1482
|
-
}
|
|
1483
1478
|
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
|
|
1484
1479
|
}
|
|
1485
1480
|
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
@@ -1490,6 +1485,9 @@
|
|
|
1490
1485
|
}
|
|
1491
1486
|
var objKeys;
|
|
1492
1487
|
if (generateArrayPrefix === "comma" && isArray2(obj)) {
|
|
1488
|
+
if (encodeValuesOnly && encoder) {
|
|
1489
|
+
obj = utils.maybeMap(obj, encoder);
|
|
1490
|
+
}
|
|
1493
1491
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
1494
1492
|
} else if (isArray2(filter)) {
|
|
1495
1493
|
objKeys = filter;
|
|
@@ -1515,7 +1513,7 @@
|
|
|
1515
1513
|
commaRoundTrip,
|
|
1516
1514
|
strictNullHandling,
|
|
1517
1515
|
skipNulls,
|
|
1518
|
-
encoder,
|
|
1516
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray2(obj) ? null : encoder,
|
|
1519
1517
|
filter,
|
|
1520
1518
|
sort,
|
|
1521
1519
|
allowDots,
|
|
@@ -1644,9 +1642,9 @@
|
|
|
1644
1642
|
}
|
|
1645
1643
|
});
|
|
1646
1644
|
|
|
1647
|
-
// ../../node_modules/.pnpm/qs@6.11.
|
|
1645
|
+
// ../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/parse.js
|
|
1648
1646
|
var require_parse = __commonJS({
|
|
1649
|
-
"../../node_modules/.pnpm/qs@6.11.
|
|
1647
|
+
"../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/parse.js"(exports, module) {
|
|
1650
1648
|
"use strict";
|
|
1651
1649
|
var utils = require_utils();
|
|
1652
1650
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -1846,9 +1844,9 @@
|
|
|
1846
1844
|
}
|
|
1847
1845
|
});
|
|
1848
1846
|
|
|
1849
|
-
// ../../node_modules/.pnpm/qs@6.11.
|
|
1847
|
+
// ../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/index.js
|
|
1850
1848
|
var require_lib = __commonJS({
|
|
1851
|
-
"../../node_modules/.pnpm/qs@6.11.
|
|
1849
|
+
"../../node_modules/.pnpm/qs@6.11.1/node_modules/qs/lib/index.js"(exports, module) {
|
|
1852
1850
|
"use strict";
|
|
1853
1851
|
var stringify2 = require_stringify();
|
|
1854
1852
|
var parse2 = require_parse();
|
package/dist/index.d.ts
CHANGED
package/models/comment.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A api client for mx-space server@next",
|
|
6
6
|
"author": "Innei",
|
|
@@ -59,19 +59,18 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/cors": "2.8.13",
|
|
62
|
-
"@types/express": "4.17.
|
|
62
|
+
"@types/express": "4.17.17",
|
|
63
63
|
"@types/lodash": "4.14.191",
|
|
64
64
|
"abort-controller": "3.0.0",
|
|
65
65
|
"axios": "^1.3.1",
|
|
66
66
|
"camelcase-keys": "*",
|
|
67
67
|
"cors": "2.8.5",
|
|
68
68
|
"express": "4.18.2",
|
|
69
|
-
"isomorphic-unfetch": "3.1.0",
|
|
70
69
|
"ky": "0.33.2",
|
|
71
70
|
"lodash": "4.17.21",
|
|
72
71
|
"node-fetch": "3.3.0",
|
|
73
72
|
"tsc-alias": "1.8.2",
|
|
74
|
-
"tsup": "6.6.
|
|
73
|
+
"tsup": "6.6.3",
|
|
75
74
|
"umi-request": "1.4.0"
|
|
76
75
|
}
|
|
77
76
|
}
|