@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/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
@@ -9,6 +9,7 @@ export interface Image {
9
9
  type: string
10
10
  accent?: string
11
11
  src: string
12
+ blurHash?: string
12
13
  }
13
14
 
14
15
  export interface Pager {
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.0",
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.1",
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.0.2",
57
+ "tsup": "8.2.4",
58
58
  "umi-request": "1.4.0",
59
59
  "vite": "^5.1.7",
60
60
  "vitest": "1.5.2"