aaden-cli 1.6.72 → 1.6.73
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 -17
- package/modules/firebase.js +18 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -116,22 +116,24 @@ async function deviceEcho(data) {
|
|
|
116
116
|
}
|
|
117
117
|
const {name, adress1, postCode, city, state} = await getNiceRestaurantInfo()
|
|
118
118
|
const waitSecond = (parseInt(myDeviceId) % 30) * 1000
|
|
119
|
-
console.log(waitSecond,'等待时间')
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
119
|
+
console.log(waitSecond, '等待时间')
|
|
120
|
+
await new Promise(resolve => setTimeout(() => {
|
|
121
|
+
resolve()
|
|
122
|
+
}, waitSecond))
|
|
123
|
+
|
|
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')
|
|
135
137
|
|
|
136
138
|
|
|
137
139
|
}
|
|
@@ -18501,7 +18503,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
18501
18503
|
/***/ ((module) => {
|
|
18502
18504
|
|
|
18503
18505
|
"use strict";
|
|
18504
|
-
module.exports = {"i8":"1.6.
|
|
18506
|
+
module.exports = {"i8":"1.6.73"};
|
|
18505
18507
|
|
|
18506
18508
|
/***/ })
|
|
18507
18509
|
|
package/modules/firebase.js
CHANGED
|
@@ -20,22 +20,24 @@ export async function deviceEcho(data) {
|
|
|
20
20
|
}
|
|
21
21
|
const {name, adress1, postCode, city, state} = await getNiceRestaurantInfo()
|
|
22
22
|
const waitSecond = (parseInt(myDeviceId) % 30) * 1000
|
|
23
|
-
console.log(waitSecond,'等待时间')
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
console.log(waitSecond, '等待时间')
|
|
24
|
+
await new Promise(resolve => setTimeout(() => {
|
|
25
|
+
resolve()
|
|
26
|
+
}, waitSecond))
|
|
27
|
+
|
|
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')
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
}
|