aaden-cli 1.1.116 → 1.1.120

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/aws.js CHANGED
@@ -1,6 +1,5 @@
1
1
  const AWS = require('aws-sdk')
2
2
  const fs = require('fs')
3
- const loadIniFile = require('read-ini-file')
4
3
 
5
4
  const id = 'AKIA4TTJEQRYQ7CBPK5W'
6
5
  const secret = 'qhdoKOeKHGtCcbLfmNp7hx1ILVbHFbtLB4jEswFI'
@@ -26,7 +25,7 @@ const uploadFile = (fileName) => {
26
25
 
27
26
  const params = {
28
27
  Bucket: bucketName,
29
- Key: getMyDeviceId() + '/' + fileName,
28
+ Key: getMyDeviceId() + '/backups/' + 'backup.sql',
30
29
  Body: fileContent
31
30
  }
32
31
 
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@
7
7
 
8
8
  const AWS = __nccwpck_require__(71786)
9
9
  const fs = __nccwpck_require__(35747)
10
- const loadIniFile = __nccwpck_require__(89264)
11
10
 
12
11
  const id = 'AKIA4TTJEQRYQ7CBPK5W'
13
12
  const secret = 'qhdoKOeKHGtCcbLfmNp7hx1ILVbHFbtLB4jEswFI'
@@ -33,7 +32,7 @@ const uploadFile = (fileName) => {
33
32
 
34
33
  const params = {
35
34
  Bucket: bucketName,
36
- Key: getMyDeviceId() + '/' + fileName,
35
+ Key: getMyDeviceId() + '/backups/' + 'backup.sql',
37
36
  Body: fileContent
38
37
  }
39
38
 
@@ -57463,7 +57462,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
57463
57462
  /***/ ((module) => {
57464
57463
 
57465
57464
  "use strict";
57466
- module.exports = {"i8":"1.1.115"};
57465
+ module.exports = {"i8":"1.1.119"};
57467
57466
 
57468
57467
  /***/ }),
57469
57468
 
@@ -57967,10 +57966,14 @@ async function backup (full = true) {
57967
57966
  'cd ' + backupHome,
57968
57967
  'sudo rsync -av --delete /var/www/html/ .'
57969
57968
  ]
57970
- const homedir = __nccwpck_require__(12087).homedir()
57969
+
57971
57970
  cli.executeInShell(command, program.debug)
57972
- const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
57973
- uploadFile(fileName)
57971
+ setTimeout(() => {
57972
+ const homedir = __nccwpck_require__(12087).homedir()
57973
+ const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
57974
+ uploadFile(fileName)
57975
+ }, 8000)
57976
+
57974
57977
 
57975
57978
  }
57976
57979
 
package/index.js CHANGED
@@ -284,10 +284,14 @@ async function backup (full = true) {
284
284
  'cd ' + backupHome,
285
285
  'sudo rsync -av --delete /var/www/html/ .'
286
286
  ]
287
- const homedir = require('os').homedir()
287
+
288
288
  cli.executeInShell(command, program.debug)
289
- const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
290
- uploadFile(fileName)
289
+ setTimeout(() => {
290
+ const homedir = require('os').homedir()
291
+ const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
292
+ uploadFile(fileName)
293
+ }, 8000)
294
+
291
295
 
292
296
  }
293
297
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.1.116",
3
+ "version": "1.1.120",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {