@xcpcio/core 0.75.1 → 0.75.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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -1745,7 +1745,7 @@ function getImageSource(image, asset_host) {
|
|
|
1745
1745
|
if (image.url.startsWith("http")) {
|
|
1746
1746
|
return image.url;
|
|
1747
1747
|
}
|
|
1748
|
-
return
|
|
1748
|
+
return new URL(image.url, asset_host === "/" ? window.location.host : asset_host).toString();
|
|
1749
1749
|
}
|
|
1750
1750
|
if (image?.base64) {
|
|
1751
1751
|
return `data:image/${image.type ?? "png"};base64,${image.base64}`;
|
package/dist/index.mjs
CHANGED
|
@@ -1714,7 +1714,7 @@ function getImageSource(image, asset_host) {
|
|
|
1714
1714
|
if (image.url.startsWith("http")) {
|
|
1715
1715
|
return image.url;
|
|
1716
1716
|
}
|
|
1717
|
-
return
|
|
1717
|
+
return new URL(image.url, asset_host === "/" ? window.location.host : asset_host).toString();
|
|
1718
1718
|
}
|
|
1719
1719
|
if (image?.base64) {
|
|
1720
1720
|
return `data:image/${image.type ?? "png"};base64,${image.base64}`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.2",
|
|
5
5
|
"description": "The core library for XCPCIO",
|
|
6
6
|
"author": "Dup4 <hi@dup4.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,33 +35,33 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"chroma-js": "^3.1.2",
|
|
37
37
|
"color-diff": "^1.4.0",
|
|
38
|
-
"dayjs": "^1.11.
|
|
38
|
+
"dayjs": "^1.11.19",
|
|
39
39
|
"js-base64": "^3.7.8",
|
|
40
40
|
"lodash": "^4.17.21",
|
|
41
41
|
"ordinal": "^1.0.3",
|
|
42
42
|
"papaparse": "^5.5.3",
|
|
43
43
|
"string-width": "^8.1.0",
|
|
44
44
|
"xlsx-js-style": "^1.2.0",
|
|
45
|
-
"@xcpcio/types": "0.75.
|
|
45
|
+
"@xcpcio/types": "0.75.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/types": "^7.28.5",
|
|
49
49
|
"@types/chroma-js": "^3.1.2",
|
|
50
50
|
"@types/color-diff": "^1.2.5",
|
|
51
|
-
"@types/lodash": "^4.17.
|
|
52
|
-
"@types/node": "^24.
|
|
53
|
-
"@types/papaparse": "^5.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
55
|
-
"@typescript-eslint/parser": "^8.
|
|
51
|
+
"@types/lodash": "^4.17.21",
|
|
52
|
+
"@types/node": "^24.10.1",
|
|
53
|
+
"@types/papaparse": "^5.5.0",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
55
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
56
56
|
"bumpp": "^10.3.1",
|
|
57
|
-
"eslint": "^9.
|
|
57
|
+
"eslint": "^9.39.1",
|
|
58
58
|
"esmo": "^4.8.0",
|
|
59
59
|
"npm-run-all": "^4.1.5",
|
|
60
|
-
"pnpm": "^10.
|
|
61
|
-
"taze": "^19.
|
|
60
|
+
"pnpm": "^10.23.0",
|
|
61
|
+
"taze": "^19.9.0",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
63
|
"unbuild": "^3.6.1",
|
|
64
|
-
"vite": "^7.
|
|
64
|
+
"vite": "^7.2.4",
|
|
65
65
|
"vitest": "^3.2.4"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|