@ichaingo/request 1.1.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/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # request
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ 一个基于 Axios 的 HTTP 请求库,提供了统一的请求拦截器和响应处理。
6
+
7
+ ## 功能特性
8
+
9
+ - 基于 Axios 的 HTTP 客户端
10
+ - 自动添加通用请求头
11
+ - 统一的错误处理
12
+ - 支持返回完整响应对象(包含 headers 信息)
13
+
14
+ ## 使用方法
15
+
16
+ ### 基本用法
17
+
18
+ ```typescript
19
+ import axiosInstance from '@ichaingo/request';
20
+
21
+ // 普通请求,返回 response.data
22
+ const data = await axiosInstance.get('/api/users');
23
+ console.log(data); // 直接是响应数据
24
+ ```
25
+
26
+ ### 获取完整响应对象
27
+
28
+ 当你需要访问响应头信息时,可以使用 `returnFullResponse` 选项:
29
+
30
+ ```typescript
31
+ import axiosInstance from '@ichaingo/request';
32
+ import { ApiRequestConfig } from '@ichaingo/request/types';
33
+
34
+ const config: ApiRequestConfig = {
35
+ returnFullResponse: true // 返回完整的 response 对象
36
+ };
37
+
38
+ const response = await axiosInstance.get('/api/users', config);
39
+
40
+ // 现在可以访问完整的响应信息
41
+ console.log('状态码:', response.status);
42
+ console.log('响应头:', response.headers);
43
+ console.log('响应数据:', response.data);
44
+
45
+ // 读取特定的 header 信息
46
+ const contentType = response.headers['content-type'];
47
+ const customHeader = response.headers['x-custom-header'];
48
+ ```
49
+
50
+ ### POST 请求示例
51
+
52
+ ```typescript
53
+ const config: ApiRequestConfig = {
54
+ returnFullResponse: true,
55
+ headers: {
56
+ 'Content-Type': 'application/json'
57
+ }
58
+ };
59
+
60
+ const response = await axiosInstance.post('/api/users', {
61
+ name: 'John Doe',
62
+ email: 'john@example.com'
63
+ }, config);
64
+
65
+ if (response.status === 201) {
66
+ console.log('用户创建成功');
67
+ console.log('Location header:', response.headers['location']);
68
+ }
69
+ ```
70
+
71
+ ## API 配置选项
72
+
73
+ ### ApiRequestConfig
74
+
75
+ 继承自 Axios 的 `AxiosRequestConfig`,并添加了以下选项:
76
+
77
+ - `withCredentials?: boolean` - 是否包含凭据
78
+ - `returnFullResponse?: boolean` - 是否返回完整的响应对象(默认为 false)
79
+
80
+ 当 `returnFullResponse` 为 `true` 时,请求将返回完整的 Axios 响应对象,包含:
81
+ - `data` - 响应数据
82
+ - `status` - HTTP 状态码
83
+ - `statusText` - HTTP 状态文本
84
+ - `headers` - 响应头信息
85
+ - `config` - 请求配置
86
+
87
+ ## Building
88
+
89
+ Run `nx build request` to build the library.
90
+
91
+ ## Running unit tests
92
+
93
+ Run `nx test request` to execute the unit tests via [Vitest](https://vitest.dev/).
94
+
95
+ ## 更多示例
96
+
97
+ 查看 `example.ts` 文件获取更多使用示例。
@@ -0,0 +1,15 @@
1
+ import { AxiosError } from 'axios';
2
+ export interface ApiResponse<T> {
3
+ status: {
4
+ code: number;
5
+ msg: string;
6
+ };
7
+ data: T;
8
+ }
9
+ export interface ApiError extends AxiosError {
10
+ need?: boolean;
11
+ }
12
+ declare const axiosInstance: import('axios').AxiosInstance;
13
+ export default axiosInstance;
14
+ export type { ApiRequestConfig, Pagination, Status, IResponse, IFilters, IPageRequest, } from './types';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAQ/C,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAGD,QAAA,MAAM,aAAa,+BASjB,CAAC;AASH,eAAe,aAAa,CAAC;AAE7B,YAAY,EACV,gBAAgB,EAChB,UAAU,EACV,MAAM,EACN,SAAS,EACT,QAAQ,EACR,YAAY,GACb,MAAM,SAAS,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,153 @@
1
+ import $, { isAxiosError as C, AxiosError as w } from "axios";
2
+ import N from "qs";
3
+ import x from "js-cookie";
4
+ import { logger as R } from "@ichaingo/logger";
5
+ import q, { isTokenExpired as O, getToken as b } from "@ichaingo/token";
6
+ const B = () => /^(zh-hans|zh-cn|zh-sg|zh-my)$/.test(window == null ? void 0 : window.navigator.language.toLowerCase()), P = () => B() ? "zh-hans" : "";
7
+ async function S(e) {
8
+ var n;
9
+ let t = "", o = "";
10
+ if (process.env.IS_SERVER) {
11
+ const c = await import("http");
12
+ e.httpAgent = new c.Agent({
13
+ keepAlive: !0
14
+ });
15
+ try {
16
+ const s = e.headers.get("Accept-Language");
17
+ e.headers["x-whistle-nohost-env"] = process.env.NO_HOST_ENV || "ichaingo";
18
+ const { cookies: a, headers: u } = await import("next/headers");
19
+ t = ((n = (await a()).get("access_token")) == null ? void 0 : n.value) || "";
20
+ const d = await u();
21
+ o = s || d.get("x-next-intl-locale") || "en";
22
+ } catch (s) {
23
+ console.error("Error accessing cookies in server component:", s);
24
+ }
25
+ } else
26
+ t = x.get("access_token") || "", o = x.get("NEXT_LOCALE") || P() || "en";
27
+ const i = e.headers.isRefreshToken;
28
+ return e.headers["Accept-Language"] = o, t && !i && (e.headers.Authorization = `Bearer ${t}`), e.headers.devicetype = 1, e;
29
+ }
30
+ function z(e) {
31
+ var g, r, T, y, L, h, f, _, I, v, k;
32
+ const t = (r = (g = e.config) == null ? void 0 : g.method) == null ? void 0 : r.toUpperCase(), o = ((T = e.config) == null ? void 0 : T.baseURL) || "", i = (y = e.config) != null && y.url ? `${o || ""}${e.config.url}` : "", n = (L = e.response) == null ? void 0 : L.status, c = (h = e.response) == null ? void 0 : h.statusText, s = (f = e.response) == null ? void 0 : f.data, a = ((I = (_ = e.response) == null ? void 0 : _.headers) == null ? void 0 : I["x-request-id"]) || ((v = s == null ? void 0 : s.status) == null ? void 0 : v.requestId), u = (s == null ? void 0 : s.message) || (s == null ? void 0 : s.msg) || ((k = s == null ? void 0 : s.status) == null ? void 0 : k.msg), m = [
33
+ n ? `HTTP ${n}` : "HTTP ERROR",
34
+ t,
35
+ i,
36
+ c
37
+ ].filter(Boolean).join(" | "), d = u ? `server: ${u}` : void 0, l = a ? `requestId=${a}` : void 0;
38
+ return [m, d, l].filter(Boolean).join(" | ");
39
+ }
40
+ function E(e) {
41
+ var c, s, a, u, m, d, l, g, r;
42
+ const t = e.config;
43
+ let o = t == null ? void 0 : t.data;
44
+ if (typeof o == "string")
45
+ try {
46
+ o = JSON.parse(o);
47
+ } catch {
48
+ }
49
+ const i = t == null ? void 0 : t.baseURL, n = t != null && t.url ? i ? `${i}${t.url}` : t.url : void 0;
50
+ return {
51
+ method: (c = t == null ? void 0 : t.method) == null ? void 0 : c.toUpperCase(),
52
+ url: n,
53
+ params: t == null ? void 0 : t.params,
54
+ data: o,
55
+ status: (s = e.response) == null ? void 0 : s.status,
56
+ statusText: (a = e.response) == null ? void 0 : a.statusText,
57
+ requestId: ((m = (u = e.response) == null ? void 0 : u.headers) == null ? void 0 : m["x-request-id"]) || ((g = (l = (d = e.response) == null ? void 0 : d.data) == null ? void 0 : l.status) == null ? void 0 : g.requestId),
58
+ responseData: (r = e.response) == null ? void 0 : r.data
59
+ };
60
+ }
61
+ function A(e) {
62
+ var n, c, s, a;
63
+ const t = C(e) ? e : new w(String(e));
64
+ if (t.code === "ECONNABORTED" || /timeout/i.test(t.message || "")) {
65
+ const u = (c = (n = t.config) == null ? void 0 : n.method) == null ? void 0 : c.toUpperCase(), m = ((s = t.config) == null ? void 0 : s.baseURL) || "", d = (a = t.config) != null && a.url ? `${m || ""}${t.config.url}` : "", l = ["TIMEOUT", u, d].filter(Boolean).join(" | ");
66
+ return t.summary = l, t.details = JSON.stringify(E(t)), R.error({ message: l, details: t.details, errType: "timeout" }), Promise.reject(t);
67
+ }
68
+ const i = z(t);
69
+ return t.summary = i, t.details = JSON.stringify(E(t)), R.error({ message: i, details: t.details, errType: "server error" }), Promise.reject(t);
70
+ }
71
+ function H(e) {
72
+ var o, i, n, c, s, a, u, m, d, l;
73
+ if (e.config.returnFullResponse)
74
+ return e;
75
+ if (e.status === 401)
76
+ return q.removeAllToken(), window.location.href = `${process.env.NEXT_PUBLIC_AUTH_URL}/login`, e;
77
+ if (e.status === 200) {
78
+ if ((o = e.headers["content-type"]) != null && o.includes("text/event-stream"))
79
+ return e;
80
+ const g = e.data, r = g.status;
81
+ if (r && typeof r.code == "number" && ![0, 200].includes(r.code)) {
82
+ const T = new w(
83
+ (r == null ? void 0 : r.msg) || "Business error",
84
+ String(r.code),
85
+ e.config,
86
+ e.request,
87
+ e
88
+ ), y = `BIZ ${r.code} | ${(n = (i = e.config) == null ? void 0 : i.method) == null ? void 0 : n.toUpperCase()} | ${((c = e.config) == null ? void 0 : c.baseURL) || ""}${((s = e.config) == null ? void 0 : s.url) || ""} | server: ${r == null ? void 0 : r.msg}`, L = {
89
+ method: (u = (a = e.config) == null ? void 0 : a.method) == null ? void 0 : u.toUpperCase(),
90
+ url: (m = e.config) != null && m.baseURL ? `${e.config.baseURL}${e.config.url || ""}` : e.config.url,
91
+ params: (d = e.config) == null ? void 0 : d.params,
92
+ data: (() => {
93
+ var f;
94
+ let h = (f = e.config) == null ? void 0 : f.data;
95
+ if (typeof h == "string")
96
+ try {
97
+ h = JSON.parse(h);
98
+ } catch {
99
+ }
100
+ return h;
101
+ })(),
102
+ status: e.status,
103
+ statusText: e.statusText,
104
+ requestId: ((l = e.headers) == null ? void 0 : l["x-request-id"]) || (r == null ? void 0 : r.requestId),
105
+ responseData: g
106
+ };
107
+ throw process.env.NODE_ENV !== "development" && R.error({ summary: y, details: L, errType: "business error" }), T;
108
+ }
109
+ return g;
110
+ }
111
+ return e;
112
+ }
113
+ let p = null;
114
+ const j = $.create({
115
+ baseURL: process.env.NEXT_PUBLIC_AUTH_URL,
116
+ timeout: 1e4,
117
+ withCredentials: !0,
118
+ // Always include credentials by default
119
+ paramsSerializer: function(e) {
120
+ return N.stringify(e, { arrayFormat: "brackets" });
121
+ }
122
+ });
123
+ async function M(e) {
124
+ const t = e.headers;
125
+ return p ? (await p, e) : (O() && (p = (async () => {
126
+ await j.get("/api/refresh/token", {
127
+ params: {
128
+ grant_type: "refresh_token",
129
+ refresh_token: b("refresh_token")
130
+ },
131
+ headers: {
132
+ ...t
133
+ }
134
+ });
135
+ })().finally(() => {
136
+ p = null;
137
+ }), await p), e);
138
+ }
139
+ const U = $.create({
140
+ baseURL: process.env.ICHAINGO_INNER_API_URL || process.env.NEXT_PUBLIC_ICHAINGO_API_URL,
141
+ timeout: 1e4,
142
+ withCredentials: !0,
143
+ // Always include credentials by default
144
+ paramsSerializer: function(e) {
145
+ return N.stringify(e, { arrayFormat: "brackets" });
146
+ }
147
+ });
148
+ U.interceptors.request.use(M);
149
+ U.interceptors.request.use(S, A);
150
+ U.interceptors.response.use(H, A);
151
+ export {
152
+ U as default
153
+ };
@@ -0,0 +1,3 @@
1
+ import { InternalAxiosRequestConfig } from 'axios';
2
+ export declare function commonHeader(config: InternalAxiosRequestConfig): Promise<InternalAxiosRequestConfig<any>>;
3
+ //# sourceMappingURL=commonHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonHeader.d.ts","sourceRoot":"","sources":["../../src/interceptors/commonHeader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,0BAA0B,EAAE,MAAM,OAAO,CAAC;AAErE,wBAAsB,YAAY,CAChC,MAAM,EAAE,0BAA0B,4CAmCnC"}
@@ -0,0 +1,3 @@
1
+ import { AxiosError } from 'axios';
2
+ export declare function errorInterceptor(error: AxiosError): Promise<never>;
3
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/interceptors/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4C,MAAM,OAAO,CAAC;AAwD7E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,kBA2BjD"}
@@ -0,0 +1,3 @@
1
+ import { InternalAxiosRequestConfig } from 'axios';
2
+ export default function refreshToken(config: InternalAxiosRequestConfig): Promise<InternalAxiosRequestConfig<any>>;
3
+ //# sourceMappingURL=refreshToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refreshToken.d.ts","sourceRoot":"","sources":["../../src/interceptors/refreshToken.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,0BAA0B,EAAE,MAAM,OAAO,CAAC;AAY1D,wBAA8B,YAAY,CACxC,MAAM,EAAE,0BAA0B,4CA0BnC"}
@@ -0,0 +1,3 @@
1
+ import { AxiosResponse } from 'axios';
2
+ export default function ResponseInterceptor(response: AxiosResponse): any;
3
+ //# sourceMappingURL=response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/interceptors/response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,aAAa,EAAE,MAAM,OAAO,CAAC;AAKlD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,QAAQ,EAAE,aAAa,GAAG,GAAG,CAsDxE"}
@@ -0,0 +1,17 @@
1
+ import { AxiosRequestConfig, AxiosError } from 'axios';
2
+ export interface ApiRequestConfig extends AxiosRequestConfig {
3
+ withCredentials?: boolean;
4
+ }
5
+ export interface ApiResponse<T> {
6
+ status: {
7
+ code: number;
8
+ msg: string;
9
+ };
10
+ data: T;
11
+ }
12
+ export interface ApiError extends AxiosError {
13
+ need?: boolean;
14
+ }
15
+ declare const axiosInstance: import('axios').AxiosInstance;
16
+ export default axiosInstance;
17
+ //# sourceMappingURL=request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/lib/request.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAMxE,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAGD,QAAA,MAAM,aAAa,+BASjB,CAAC;AAYH,eAAe,aAAa,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ export interface ApiRequestConfig extends AxiosRequestConfig {
3
+ withCredentials?: boolean;
4
+ returnFullResponse?: boolean;
5
+ }
6
+ export interface Pagination {
7
+ hasMore?: boolean;
8
+ limit: number;
9
+ page: number;
10
+ snapshotTime: number;
11
+ totalCount: number;
12
+ [property: string]: any;
13
+ }
14
+ /**
15
+ * Status
16
+ */
17
+ export interface Status {
18
+ code: number;
19
+ creditCount: number;
20
+ msg: string;
21
+ requestId: string;
22
+ [property: string]: any;
23
+ }
24
+ /**
25
+ * 后端接口返回的格式
26
+ */
27
+ export interface IResponse<T> {
28
+ data: T;
29
+ pagination?: null | Pagination;
30
+ status: Status;
31
+ [property: string]: any;
32
+ }
33
+ /**
34
+ * 过滤条件
35
+ */
36
+ export interface IFilters {
37
+ /**
38
+ * 最大数量
39
+ */
40
+ maxAmount?: number;
41
+ /**
42
+ * 最大价值
43
+ */
44
+ maxValue?: number;
45
+ /**
46
+ * 最小数量
47
+ */
48
+ minAmount?: number;
49
+ /**
50
+ * 最小价值
51
+ */
52
+ minValue?: number;
53
+ /**
54
+ * token列表
55
+ */
56
+ tokenList?: string[];
57
+ [property: string]: any;
58
+ }
59
+ /**
60
+ * 分页请求
61
+ */
62
+ export interface IPageRequest {
63
+ /**
64
+ * 过滤条件
65
+ */
66
+ filters?: IFilters;
67
+ limit: number;
68
+ page: number;
69
+ /**
70
+ * 秒级时间戳
71
+ */
72
+ snapshotTime?: number;
73
+ [property: string]: any;
74
+ }
75
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB;AAED;;EAEE;AACF,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC;IACR,UAAU,CAAC,EAAE,IAAI,GAAG,UAAU,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB;AAED;;EAEE;AACF,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ export declare const isSimplifiedChinese: () => boolean;
2
+ export declare const matchSystemLanguage: () => "zh-hans" | "";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,eAE/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,sBAE/B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@ichaingo/request",
3
+ "version": "1.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "!**/*.tsbuildinfo"
19
+ ],
20
+ "peerDependencies": {
21
+ "axios": "1.10.0",
22
+ "js-cookie": "3.0.5",
23
+ "next": "^15.4.5",
24
+ "qs": "6.14.0",
25
+ "@ichaingo/logger": "1.1.0",
26
+ "@ichaingo/token": "1.1.0"
27
+ },
28
+ "devDependencies": {
29
+ "@types/js-cookie": "^3.0.6",
30
+ "@types/qs": "^6.14.0"
31
+ }
32
+ }