@trash-kit/core 1.0.0 → 1.0.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.
@@ -2,6 +2,7 @@
2
2
  type APIHeaders = {
3
3
  token: string;
4
4
  locale?: string;
5
+ [key: string]: string | undefined;
5
6
  };
6
7
  type PublicAPIHeaders = Omit<APIHeaders, 'token'>;
7
8
  type APIResponse<T = any> = {
@@ -12,6 +13,7 @@ type APIResponse<T = any> = {
12
13
  type ServiceResponse<T = undefined | null> = {
13
14
  error: false;
14
15
  message: string;
16
+ status: never;
15
17
  data: T;
16
18
  } | {
17
19
  error: true;
@@ -21,4 +23,4 @@ type ServiceResponse<T = undefined | null> = {
21
23
  };
22
24
  //#endregion
23
25
  export { ServiceResponse as i, APIResponse as n, PublicAPIHeaders as r, APIHeaders as t };
24
- //# sourceMappingURL=api-BS3JQgsq.d.ts.map
26
+ //# sourceMappingURL=api-CdNJcCit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-CdNJcCit.d.ts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAMV,MAAA,CAAA,EAAA,MAAA;EAEA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAW,MAAA,GAAA,SAGd;AAGT,CAAA;KARY,gBAAA,GAAmB,KAAK;KAExB;;;QAGJ;;KAGI;;;;QAKA"}
@@ -2,6 +2,7 @@
2
2
  type APIHeaders = {
3
3
  token: string;
4
4
  locale?: string;
5
+ [key: string]: string | undefined;
5
6
  };
6
7
  type PublicAPIHeaders = Omit<APIHeaders, 'token'>;
7
8
  type APIResponse<T = any> = {
@@ -12,6 +13,7 @@ type APIResponse<T = any> = {
12
13
  type ServiceResponse<T = undefined | null> = {
13
14
  error: false;
14
15
  message: string;
16
+ status: never;
15
17
  data: T;
16
18
  } | {
17
19
  error: true;
@@ -21,4 +23,4 @@ type ServiceResponse<T = undefined | null> = {
21
23
  };
22
24
  //#endregion
23
25
  export { ServiceResponse as i, APIResponse as n, PublicAPIHeaders as r, APIHeaders as t };
24
- //# sourceMappingURL=api-Ce9MBzK9.d.mts.map
26
+ //# sourceMappingURL=api-DL6n2zzo.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-DL6n2zzo.d.mts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAMV,MAAA,CAAA,EAAA,MAAA;EAEA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAW,MAAA,GAAA,SAGd;AAGT,CAAA;KARY,gBAAA,GAAmB,KAAK;KAExB;;;QAGJ;;KAGI;;;;QAKA"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as TrashContext } from "./trash-Bqyw-wzx.mjs";
2
- import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-Ce9MBzK9.mjs";
2
+ import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-DL6n2zzo.mjs";
3
3
  import "./index-ColiPbLk.mjs";
4
4
  import { t as Fetch } from "./fetch-n3GlsG0y.mjs";
5
5
  import "./index-DEHBdV_z.mjs";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as TrashContext } from "./trash-BekTp5BK.js";
2
- import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-BS3JQgsq.js";
2
+ import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-CdNJcCit.js";
3
3
  import "./index-gyoEOFQ4.js";
4
4
  import { t as Fetch } from "./fetch-DTnjbhMB.js";
5
5
  import "./index-D0E78WnU.js";
@@ -1,2 +1,2 @@
1
- import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-Ce9MBzK9.mjs";
1
+ import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-DL6n2zzo.mjs";
2
2
  export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse };
@@ -1,2 +1,2 @@
1
- import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-BS3JQgsq.js";
1
+ import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-CdNJcCit.js";
2
2
  export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse };
@@ -1,4 +1,4 @@
1
1
  import { t as TrashContext } from "../trash-Bqyw-wzx.mjs";
2
- import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-Ce9MBzK9.mjs";
2
+ import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-DL6n2zzo.mjs";
3
3
  import "../index-ColiPbLk.mjs";
4
4
  export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse, TrashContext };
@@ -1,4 +1,4 @@
1
1
  import { t as TrashContext } from "../trash-BekTp5BK.js";
2
- import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-BS3JQgsq.js";
2
+ import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-CdNJcCit.js";
3
3
  import "../index-gyoEOFQ4.js";
4
4
  export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse, TrashContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-kit/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": "budchirp <budchirp@gmail.com>",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "files": [
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-BS3JQgsq.d.ts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAKV,MAAA,CAAA,EAAA,MAAA;AAEZ,CAAA;AAMY,KARA,gBAAA,GAAmB,IAYnB,CAZwB,UAYvB,EAAA,OAAA,CAAA;KAVD;;;QAGJ;;KAGI;;;QAIA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-Ce9MBzK9.d.mts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAKV,MAAA,CAAA,EAAA,MAAA;AAEZ,CAAA;AAMY,KARA,gBAAA,GAAmB,IAYnB,CAZwB,UAYvB,EAAA,OAAA,CAAA;KAVD;;;QAGJ;;KAGI;;;QAIA"}