esoftplay 0.0.142-u → 0.0.142-v
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/bin/cli.js +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -588,7 +588,7 @@ async function preload_api() {
|
|
|
588
588
|
var cursor = path.join(".")
|
|
589
589
|
if (/\.(jpg|jpeg|png|gif|bmp|webp|svg|pdf|txt)$/i.test(value)) {
|
|
590
590
|
const localFilePath = await downloadFile(value, "./assets/preload_assets/" + lastString)
|
|
591
|
-
objectData = LibObject.set(objectData, localFilePath)(cursor)
|
|
591
|
+
objectData = LibObject.set(objectData, String(localFilePath)?.replace('assets/', ''))(cursor)
|
|
592
592
|
const newData = JSON.stringify(objectData, undefined, 2)
|
|
593
593
|
fs.writeFileSync(`./assets/preload_api/${lastString}.json`, newData, { encoding: "utf8" })
|
|
594
594
|
}
|