@mx-space/api-client 1.13.0 → 1.13.2
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 +3 -2
- package/controllers/activity.ts +2 -1
- package/controllers/aggregate.ts +3 -3
- package/controllers/ai.ts +2 -1
- package/controllers/base.ts +2 -1
- package/controllers/category.ts +6 -4
- package/controllers/comment.ts +2 -1
- package/controllers/link.ts +4 -2
- package/controllers/note.ts +2 -1
- package/controllers/page.ts +2 -1
- package/controllers/post.ts +2 -1
- package/controllers/project.ts +4 -2
- package/controllers/recently.ts +2 -1
- package/controllers/say.ts +4 -2
- package/controllers/search.ts +2 -1
- package/controllers/severless.ts +2 -1
- package/controllers/snippet.ts +2 -1
- package/controllers/subscribe.ts +2 -1
- package/controllers/topic.ts +4 -2
- package/controllers/user.ts +2 -1
- package/dist/adaptors/axios.d.cts +1 -1
- package/dist/adaptors/axios.d.ts +1 -1
- package/dist/adaptors/axios.global.js +698 -422
- package/dist/adaptors/fetch.d.cts +1 -1
- package/dist/adaptors/fetch.d.ts +1 -1
- package/dist/adaptors/umi-request.d.cts +1 -1
- package/dist/adaptors/umi-request.d.ts +1 -1
- package/dist/adaptors/umi-request.global.js +74 -123
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +61 -60
- package/dist/index.d.ts +61 -60
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/models/base.ts +1 -0
- package/models/comment.ts +2 -1
- package/package.json +3 -3
- /package/dist/{adapter-4fDtRx9o.d.cts → adapter-B8tKfr1O.d.cts} +0 -0
- /package/dist/{adapter-4fDtRx9o.d.ts → adapter-B8tKfr1O.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1047,7 +1047,7 @@ var HTTPClient = class {
|
|
|
1047
1047
|
const cameledObject = (Array.isArray(data) || isPlainObject(data)) && that.options.transformResponse ? that.options.transformResponse(data) : data;
|
|
1048
1048
|
let nextObject = cameledObject;
|
|
1049
1049
|
if (cameledObject && typeof cameledObject === "object") {
|
|
1050
|
-
nextObject = { ...cameledObject };
|
|
1050
|
+
nextObject = Array.isArray(cameledObject) ? [...cameledObject] : { ...cameledObject };
|
|
1051
1051
|
Object.defineProperty(nextObject, "$raw", {
|
|
1052
1052
|
get() {
|
|
1053
1053
|
return res;
|
package/models/base.ts
CHANGED
package/models/comment.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CollectionRefTypes } from '@core/constants/db.constant'
|
|
2
1
|
import type { BaseModel } from './base'
|
|
3
2
|
import type { CategoryModel } from './category'
|
|
4
3
|
|
|
4
|
+
import { CollectionRefTypes } from '@core/constants/db.constant'
|
|
5
|
+
|
|
5
6
|
export { CollectionRefTypes }
|
|
6
7
|
export interface CommentModel extends BaseModel {
|
|
7
8
|
refType: CollectionRefTypes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A api client for mx-space server@next",
|
|
6
6
|
"author": "Innei",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/cors": "2.8.17",
|
|
48
48
|
"@types/express": "4.17.21",
|
|
49
|
-
"@types/lodash": "4.17.
|
|
49
|
+
"@types/lodash": "4.17.7",
|
|
50
50
|
"abort-controller": "3.0.0",
|
|
51
51
|
"axios": "^1.6.7",
|
|
52
52
|
"camelcase-keys": "^9.1.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"express": "4.19.2",
|
|
55
55
|
"form-data": "4.0.0",
|
|
56
56
|
"lodash": "4.17.21",
|
|
57
|
-
"tsup": "8.
|
|
57
|
+
"tsup": "8.2.4",
|
|
58
58
|
"umi-request": "1.4.0",
|
|
59
59
|
"vite": "^5.1.7",
|
|
60
60
|
"vitest": "1.5.2"
|
|
File without changes
|
|
File without changes
|