@xfe-repo/web-utils 1.5.0 → 1.5.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.
- package/dist/tools.js +1 -1
- package/dist/tools.mjs +1 -1
- package/package.json +4 -4
package/dist/tools.js
CHANGED
|
@@ -158,7 +158,7 @@ var imgRelative2Absolute = (imgUrl = "") => {
|
|
|
158
158
|
if (!imgUrl) return imgUrl;
|
|
159
159
|
const isAbsoluteUrl = imgUrl.startsWith("https");
|
|
160
160
|
if (!isAbsoluteUrl) {
|
|
161
|
-
imgUrl = `https://imgs.
|
|
161
|
+
imgUrl = `https://imgs.eshetang.com/${imgUrl.replace(/^\//, "")}`;
|
|
162
162
|
}
|
|
163
163
|
return imgUrl;
|
|
164
164
|
};
|
package/dist/tools.mjs
CHANGED
|
@@ -88,7 +88,7 @@ var imgRelative2Absolute = (imgUrl = "") => {
|
|
|
88
88
|
if (!imgUrl) return imgUrl;
|
|
89
89
|
const isAbsoluteUrl = imgUrl.startsWith("https");
|
|
90
90
|
if (!isAbsoluteUrl) {
|
|
91
|
-
imgUrl = `https://imgs.
|
|
91
|
+
imgUrl = `https://imgs.eshetang.com/${imgUrl.replace(/^\//, "")}`;
|
|
92
92
|
}
|
|
93
93
|
return imgUrl;
|
|
94
94
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/web-utils",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"module": "dist/*.js",
|
|
6
6
|
"types": "types/*.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@types/js-cookie": "^3.0.5",
|
|
30
30
|
"@types/node": "^20.17.0",
|
|
31
31
|
"eslint": "8.57.1",
|
|
32
|
-
"@xfe-repo/eslint-config": "1.5.
|
|
33
|
-
"@xfe-repo/typescript-config": "1.5.
|
|
32
|
+
"@xfe-repo/eslint-config": "1.5.2",
|
|
33
|
+
"@xfe-repo/typescript-config": "1.5.1"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"build": "tsup",
|
|
40
40
|
"dev": "tsup --watch",
|
|
41
41
|
"lint": "eslint \"src/**/*.ts*\" --fix",
|
|
42
|
-
"clean": "rm -rf .turbo
|
|
42
|
+
"clean": "rm -rf .turbo coverage dist node_modules"
|
|
43
43
|
}
|
|
44
44
|
}
|