aaden-cli 1.6.59 → 1.6.61
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.js +6 -3
- package/index.js +1 -2
- package/modules/firebase.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -86,6 +86,10 @@ async function deviceEcho(data) {
|
|
|
86
86
|
hillo.initial('http://localhost/PHP/')
|
|
87
87
|
const myDeviceId = await getCurrentDeviceId()
|
|
88
88
|
console.log('echo for device', myDeviceId)
|
|
89
|
+
console.log('content:')
|
|
90
|
+
Object.entries((key, v) => {
|
|
91
|
+
console.log(key + ':' + v)
|
|
92
|
+
})
|
|
89
93
|
const {frontendVersion, cliVersion, diskUsage, upTime, ngrokIsNew} = Object.assign({}, defaultData, data)
|
|
90
94
|
if (parseInt(myDeviceId) === -1) {
|
|
91
95
|
return
|
|
@@ -18455,7 +18459,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
18455
18459
|
/***/ ((module) => {
|
|
18456
18460
|
|
|
18457
18461
|
"use strict";
|
|
18458
|
-
module.exports = {"i8":"1.6.
|
|
18462
|
+
module.exports = {"i8":"1.6.61"};
|
|
18459
18463
|
|
|
18460
18464
|
/***/ })
|
|
18461
18465
|
|
|
@@ -19118,7 +19122,7 @@ async function removeAllData() {
|
|
|
19118
19122
|
|
|
19119
19123
|
function getUpTime() {
|
|
19120
19124
|
try {
|
|
19121
|
-
return cli.executeInShell([''], program.debug, true).output.split(',')[0]
|
|
19125
|
+
return cli.executeInShell(['uptime'], program.debug, true).output.split(',')[0]
|
|
19122
19126
|
} catch (e) {
|
|
19123
19127
|
return e.message
|
|
19124
19128
|
}
|
|
@@ -19135,7 +19139,6 @@ async function doLog() {
|
|
|
19135
19139
|
const list = log.split('\n')
|
|
19136
19140
|
const frontendVersion = list[list.length - 2].replace(/\s+/g, ' ')
|
|
19137
19141
|
.split(' ')[1]
|
|
19138
|
-
console.log(frontendVersion)
|
|
19139
19142
|
await deviceEcho({
|
|
19140
19143
|
frontendVersion,
|
|
19141
19144
|
cliVersion: version,
|
package/index.js
CHANGED
|
@@ -589,7 +589,7 @@ async function removeAllData() {
|
|
|
589
589
|
|
|
590
590
|
function getUpTime() {
|
|
591
591
|
try {
|
|
592
|
-
return cli.executeInShell([''], program.debug, true).output.split(',')[0]
|
|
592
|
+
return cli.executeInShell(['uptime'], program.debug, true).output.split(',')[0]
|
|
593
593
|
} catch (e) {
|
|
594
594
|
return e.message
|
|
595
595
|
}
|
|
@@ -606,7 +606,6 @@ async function doLog() {
|
|
|
606
606
|
const list = log.split('\n')
|
|
607
607
|
const frontendVersion = list[list.length - 2].replace(/\s+/g, ' ')
|
|
608
608
|
.split(' ')[1]
|
|
609
|
-
console.log(frontendVersion)
|
|
610
609
|
await deviceEcho({
|
|
611
610
|
frontendVersion,
|
|
612
611
|
cliVersion: version,
|
package/modules/firebase.js
CHANGED
|
@@ -8,6 +8,10 @@ export async function deviceEcho(data) {
|
|
|
8
8
|
hillo.initial('http://localhost/PHP/')
|
|
9
9
|
const myDeviceId = await getCurrentDeviceId()
|
|
10
10
|
console.log('echo for device', myDeviceId)
|
|
11
|
+
console.log('content:')
|
|
12
|
+
Object.entries((key, v) => {
|
|
13
|
+
console.log(key + ':' + v)
|
|
14
|
+
})
|
|
11
15
|
const {frontendVersion, cliVersion, diskUsage, upTime, ngrokIsNew} = Object.assign({}, defaultData, data)
|
|
12
16
|
if (parseInt(myDeviceId) === -1) {
|
|
13
17
|
return
|