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.
Files changed (2) hide show
  1. package/bin/cli.js +1 -1
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.142-u",
3
+ "version": "0.0.142-v",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",