aaden-cli 1.6.77 → 1.6.78
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 +19 -15
- package/modules/firebase.js +18 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -120,20 +120,24 @@ async function deviceEcho(data) {
|
|
|
120
120
|
await new Promise(resolve => setTimeout(() => {
|
|
121
121
|
resolve()
|
|
122
122
|
}, waitSecond))
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
123
|
+
try {
|
|
124
|
+
await hillo.jsonPost('https://cloud-v2.aaden.io/deviceLog/create', {
|
|
125
|
+
deviceId: myDeviceId,
|
|
126
|
+
frontendVersion: frontendVersion,
|
|
127
|
+
cliVersion,
|
|
128
|
+
backendVersion: await getCurrentBackendVersion(),
|
|
129
|
+
timestamp: dayjs().valueOf(),
|
|
130
|
+
accessFrom: 'aaden-cli v' + cliVersion,
|
|
131
|
+
diskUsage,
|
|
132
|
+
lastUptime: upTime,
|
|
133
|
+
ngrokOk: ngrokIsNew,
|
|
134
|
+
deviceName: `${name}\n${adress1}\n${postCode} ${city} ${state}`
|
|
135
|
+
})
|
|
136
|
+
console.log('report to remote server complete')
|
|
137
|
+
} catch (e) {
|
|
138
|
+
console.log(e.message)
|
|
139
|
+
console.log('report to remote server failed')
|
|
140
|
+
}
|
|
137
141
|
|
|
138
142
|
|
|
139
143
|
}
|
|
@@ -18503,7 +18507,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
18503
18507
|
/***/ ((module) => {
|
|
18504
18508
|
|
|
18505
18509
|
"use strict";
|
|
18506
|
-
module.exports = {"i8":"1.6.
|
|
18510
|
+
module.exports = {"i8":"1.6.78"};
|
|
18507
18511
|
|
|
18508
18512
|
/***/ })
|
|
18509
18513
|
|
package/modules/firebase.js
CHANGED
|
@@ -24,20 +24,24 @@ export async function deviceEcho(data) {
|
|
|
24
24
|
await new Promise(resolve => setTimeout(() => {
|
|
25
25
|
resolve()
|
|
26
26
|
}, waitSecond))
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
try {
|
|
28
|
+
await hillo.jsonPost('https://cloud-v2.aaden.io/deviceLog/create', {
|
|
29
|
+
deviceId: myDeviceId,
|
|
30
|
+
frontendVersion: frontendVersion,
|
|
31
|
+
cliVersion,
|
|
32
|
+
backendVersion: await getCurrentBackendVersion(),
|
|
33
|
+
timestamp: dayjs().valueOf(),
|
|
34
|
+
accessFrom: 'aaden-cli v' + cliVersion,
|
|
35
|
+
diskUsage,
|
|
36
|
+
lastUptime: upTime,
|
|
37
|
+
ngrokOk: ngrokIsNew,
|
|
38
|
+
deviceName: `${name}\n${adress1}\n${postCode} ${city} ${state}`
|
|
39
|
+
})
|
|
40
|
+
console.log('report to remote server complete')
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.log(e.message)
|
|
43
|
+
console.log('report to remote server failed')
|
|
44
|
+
}
|
|
41
45
|
|
|
42
46
|
|
|
43
47
|
}
|