@mx-space/api-client 1.14.2 → 1.15.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/dist/index.cjs CHANGED
@@ -999,7 +999,7 @@ var HTTPClient = class {
999
999
  this._endpoint = _endpoint;
1000
1000
  this._adaptor = _adaptor;
1001
1001
  this.options = options;
1002
- this._endpoint = _endpoint.replace(/\/*$/, "").replace("localhost", "127.0.0.1");
1002
+ this._endpoint = _endpoint.replace(/\/*$/, "");
1003
1003
  this._proxy = this.buildRoute(this)();
1004
1004
  options.transformResponse || (options.transformResponse = (data) => camelcaseKeys(data));
1005
1005
  options.getDataFromResponse || (options.getDataFromResponse = (res) => res.data);
package/dist/index.d.cts CHANGED
@@ -549,6 +549,7 @@ interface AuthUser {
549
549
  image: string;
550
550
  name: string;
551
551
  provider: string;
552
+ handle: string;
552
553
  }
553
554
 
554
555
  interface CommentModel extends BaseModel {
package/dist/index.d.ts CHANGED
@@ -549,6 +549,7 @@ interface AuthUser {
549
549
  image: string;
550
550
  name: string;
551
551
  provider: string;
552
+ handle: string;
552
553
  }
553
554
 
554
555
  interface CommentModel extends BaseModel {
@@ -934,7 +934,7 @@
934
934
  this._endpoint = _endpoint;
935
935
  this._adaptor = _adaptor;
936
936
  this.options = options;
937
- this._endpoint = _endpoint.replace(/\/*$/, "").replace("localhost", "127.0.0.1");
937
+ this._endpoint = _endpoint.replace(/\/*$/, "");
938
938
  this._proxy = this.buildRoute(this)();
939
939
  options.transformResponse || (options.transformResponse = (data) => camelcaseKeys(data));
940
940
  options.getDataFromResponse || (options.getDataFromResponse = (res) => res.data);
package/dist/index.js CHANGED
@@ -932,7 +932,7 @@ var HTTPClient = class {
932
932
  this._endpoint = _endpoint;
933
933
  this._adaptor = _adaptor;
934
934
  this.options = options;
935
- this._endpoint = _endpoint.replace(/\/*$/, "").replace("localhost", "127.0.0.1");
935
+ this._endpoint = _endpoint.replace(/\/*$/, "");
936
936
  this._proxy = this.buildRoute(this)();
937
937
  options.transformResponse || (options.transformResponse = (data) => camelcaseKeys(data));
938
938
  options.getDataFromResponse || (options.getDataFromResponse = (res) => res.data);
package/models/auth.ts CHANGED
@@ -5,4 +5,5 @@ export interface AuthUser {
5
5
  image: string
6
6
  name: string
7
7
  provider: string
8
+ handle: string
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "1.14.2",
3
+ "version": "1.15.0",
4
4
  "type": "module",
5
5
  "description": "A api client for mx-space server@next",
6
6
  "author": "Innei",