@mx-space/api-client 1.5.0 → 1.5.1

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.
@@ -32,8 +32,10 @@ export class ActivityController<ResponseWrapper> implements IController {
32
32
 
33
33
  likeIt(type: 'Post' | 'Note', id: string) {
34
34
  return this.proxy.like.post<never>({
35
- type,
36
- id,
35
+ data: {
36
+ type,
37
+ id,
38
+ },
37
39
  })
38
40
  }
39
41
  }
package/dist/index.cjs CHANGED
@@ -176,8 +176,10 @@ var ActivityController = class {
176
176
  }
177
177
  likeIt(type, id) {
178
178
  return this.proxy.like.post({
179
- type,
180
- id
179
+ data: {
180
+ type,
181
+ id
182
+ }
181
183
  });
182
184
  }
183
185
  };
@@ -113,8 +113,10 @@
113
113
  }
114
114
  likeIt(type, id) {
115
115
  return this.proxy.like.post({
116
- type,
117
- id
116
+ data: {
117
+ type,
118
+ id
119
+ }
118
120
  });
119
121
  }
120
122
  };
package/dist/index.js CHANGED
@@ -111,8 +111,10 @@ var ActivityController = class {
111
111
  }
112
112
  likeIt(type, id) {
113
113
  return this.proxy.like.post({
114
- type,
115
- id
114
+ data: {
115
+ type,
116
+ id
117
+ }
116
118
  });
117
119
  }
118
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "description": "A api client for mx-space server@next",
6
6
  "author": "Innei",