esoftplay 0.0.134-u → 0.0.134-w

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 +8 -9
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -579,8 +579,8 @@ function publish(notes) {
579
579
  let date_format_str;
580
580
  if (isUpdateExist) {
581
581
  currentUpdate = fs.readdirSync('/var/www/html/ota/updates/' + ajson.expo.runtimeVersion)[0]
582
- var d = new Date(currentUpdate * 1000);
583
- date_format_str = d.getFullYear().toString() + "-" + ((d.getMonth() + 1).toString().length == 2 ? (d.getMonth() + 1).toString() : "0" + (d.getMonth() + 1).toString()) + "-" + (d.getDate().toString().length == 2 ? d.getDate().toString() : "0" + d.getDate().toString());
582
+ var d = new Date(currentUpdate * 1000).toISOString();
583
+ date_format_str = d
584
584
  }
585
585
  var out = false
586
586
  const rl = readline.createInterface({
@@ -595,16 +595,15 @@ isDebug : ${cjson.config.isDebug}
595
595
  runtimeVersion : ${ajson.expo.runtimeVersion}
596
596
  latest update : ${currentUpdate ? date_format_str : '- not found'}
597
597
 
598
- Pastikan data sudah benar sebelum anda melanjutkan?(y/n)
599
-
600
- `, function (input) {
601
- out = input
602
- rl.close();
603
- });
598
+ Pastikan data sudah benar sebelum anda melanjutkan?(y/n)`,
599
+ function (input) {
600
+ out = input
601
+ rl.close();
602
+ });
604
603
 
605
604
  rl.on("close", function () {
606
605
  if (out && out.toLowerCase() == 'y') {
607
- command("rm -rf ./dist && esp start && currentPath=$(pwd) && cd /var/www/html/ota/ && npm run publish $currentPath " + notes + " && cd $currentPath && rm -rf ./dist")
606
+ command("rm -rf ./dist && esp start && currentPath=$(pwd) && cd /var/www/html/ota/ && npm run publish $currentPath \"" + notes + "\" && cd $currentPath && rm -rf ./dist")
608
607
  consoleSucces("Berhasil")
609
608
  const os = require('os')
610
609
  var d = new Date();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.134-u",
3
+ "version": "0.0.134-w",
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",