simple-photo-gallery 2.0.12 → 2.0.14-rc.1
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/index.cjs +3 -1
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.js +3 -1
- package/dist/lib/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -89,7 +89,8 @@ function findSocialCardFontPath() {
|
|
|
89
89
|
path.resolve(__dirname, "../", SOCIAL_CARD_FONT_RELATIVE_PATH),
|
|
90
90
|
path.resolve(__dirname, "../../", SOCIAL_CARD_FONT_RELATIVE_PATH),
|
|
91
91
|
path.resolve(process4.cwd(), SOCIAL_CARD_FONT_RELATIVE_PATH),
|
|
92
|
-
path.resolve(process4.cwd(), "../", SOCIAL_CARD_FONT_RELATIVE_PATH)
|
|
92
|
+
path.resolve(process4.cwd(), "../", SOCIAL_CARD_FONT_RELATIVE_PATH),
|
|
93
|
+
path.resolve(process4.cwd(), "../simple-photo-gallery/", SOCIAL_CARD_FONT_RELATIVE_PATH)
|
|
93
94
|
];
|
|
94
95
|
for (const candidate of fontCandidates) {
|
|
95
96
|
if (fs8.existsSync(candidate)) {
|
|
@@ -103,6 +104,7 @@ function getSocialCardFontBase64() {
|
|
|
103
104
|
return socialCardFontBase64;
|
|
104
105
|
}
|
|
105
106
|
const fontPath = findSocialCardFontPath();
|
|
107
|
+
console.log("DBG:", { fontPath, dirname: __dirname, cwd: process4.cwd() });
|
|
106
108
|
if (!fontPath) {
|
|
107
109
|
socialCardFontBase64 = null;
|
|
108
110
|
return null;
|
|
@@ -1216,7 +1218,7 @@ async function waitForUpdateCheck(checkPromise) {
|
|
|
1216
1218
|
// package.json
|
|
1217
1219
|
var package_default = {
|
|
1218
1220
|
name: "simple-photo-gallery",
|
|
1219
|
-
version: "2.0.
|
|
1221
|
+
version: "2.0.14-rc.1"};
|
|
1220
1222
|
|
|
1221
1223
|
// src/index.ts
|
|
1222
1224
|
var program = new Command();
|