@yeepay/client-utils 4.0.1 → 4.0.3
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.d.ts → index-Cv9CvZKu.d.ts} +2 -2
- package/dist/index.js +3 -1
- package/package.json +12 -15
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import debug from "debug";
|
|
2
2
|
import { AxiosError, AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from "axios";
|
|
3
|
+
export * from "@imyangyong/utils";
|
|
3
4
|
|
|
4
5
|
//#region src/debug.d.ts
|
|
5
6
|
declare const logger: Record<string, debug.Debugger> & debug.Debugger;
|
|
@@ -14,7 +15,6 @@ declare global {
|
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
17
|
//#region src/is.d.ts
|
|
17
|
-
declare function isMobileDevice(): boolean;
|
|
18
18
|
declare const BREAKPOINTS: {
|
|
19
19
|
MOBILE_MAX: number;
|
|
20
20
|
TABLET_MIN: number;
|
|
@@ -109,4 +109,4 @@ declare function removeToken(): void;
|
|
|
109
109
|
//#region src/utils.d.ts
|
|
110
110
|
declare function getQueryObject(url?: string): Record<string, string>;
|
|
111
111
|
//#endregion
|
|
112
|
-
export { BREAKPOINTS, MEDIA_QUERIES, logger as debug, getQueryObject, getToken, isDesktop, isMobile,
|
|
112
|
+
export { BREAKPOINTS, MEDIA_QUERIES, logger as debug, getQueryObject, getToken, isDesktop, isMobile, isTablet, removeToken, serviceFactory, setTokenFromUrl, verifySuccessCode };
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,8 @@ import AxiosMockAdapter from "axios-mock-adapter";
|
|
|
6
6
|
import picomatch from "picomatch/posix";
|
|
7
7
|
import Cookie from "js-cookie";
|
|
8
8
|
|
|
9
|
+
export * from "@imyangyong/utils"
|
|
10
|
+
|
|
9
11
|
//#region src/debug.ts
|
|
10
12
|
function createLogger(namespace) {
|
|
11
13
|
return debug(namespace);
|
|
@@ -296,4 +298,4 @@ function serviceFactory(options, callbacks) {
|
|
|
296
298
|
}
|
|
297
299
|
|
|
298
300
|
//#endregion
|
|
299
|
-
export { BREAKPOINTS, MEDIA_QUERIES, logger as debug, getQueryObject, getToken, isDesktop, isMobile,
|
|
301
|
+
export { BREAKPOINTS, MEDIA_QUERIES, logger as debug, getQueryObject, getToken, isDesktop, isMobile, isTablet, removeToken, serviceFactory, setTokenFromUrl, verifySuccessCode };
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yeepay/client-utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
5
|
-
"packageManager": "pnpm@10.17.1",
|
|
4
|
+
"version": "4.0.3",
|
|
6
5
|
"description": "shared utilities for yeepay client packages",
|
|
7
6
|
"author": "Yong Yang",
|
|
8
7
|
"homepage": "http://gitlab.yeepay.com/ued/client-utils#readme",
|
|
@@ -20,19 +19,8 @@
|
|
|
20
19
|
"files": [
|
|
21
20
|
"dist"
|
|
22
21
|
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "tsdown",
|
|
25
|
-
"dev": "tsdown --watch",
|
|
26
|
-
"watch": "tsdown --watch",
|
|
27
|
-
"lint": "eslint .",
|
|
28
|
-
"prepack": "nr build",
|
|
29
|
-
"release": "bumpp && pnpm publish",
|
|
30
|
-
"test": "vitest",
|
|
31
|
-
"prepare": "simple-git-hooks",
|
|
32
|
-
"play": "npm -C playground run dev"
|
|
33
|
-
},
|
|
34
22
|
"dependencies": {
|
|
35
|
-
"@imyangyong/utils": "^
|
|
23
|
+
"@imyangyong/utils": "^9.4.0",
|
|
36
24
|
"@yeepay/client-utils": "link:",
|
|
37
25
|
"ansis": "^4.1.0",
|
|
38
26
|
"axios": "^1.13.2",
|
|
@@ -62,5 +50,14 @@
|
|
|
62
50
|
},
|
|
63
51
|
"lint-staged": {
|
|
64
52
|
"*": "eslint --fix"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsdown",
|
|
56
|
+
"dev": "tsdown --watch",
|
|
57
|
+
"watch": "tsdown --watch",
|
|
58
|
+
"lint": "eslint .",
|
|
59
|
+
"release": "bumpp && pnpm publish",
|
|
60
|
+
"test": "vitest",
|
|
61
|
+
"play": "npm -C playground run dev"
|
|
65
62
|
}
|
|
66
|
-
}
|
|
63
|
+
}
|