aaden-cli 1.6.66 → 1.6.68
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 -5
- package/index.js +2 -2
- package/modules/firebase.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -86,7 +86,7 @@ const defaultData = {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
async function deviceEcho(data) {
|
|
89
|
-
|
|
89
|
+
|
|
90
90
|
const myDeviceId = await getCurrentDeviceId()
|
|
91
91
|
console.log('echo for device', myDeviceId)
|
|
92
92
|
console.log('content:')
|
|
@@ -117,7 +117,8 @@ async function logAction(content) {
|
|
|
117
117
|
const deviceId = await getCurrentDeviceId()
|
|
118
118
|
console.log(
|
|
119
119
|
'*******************************************************\n' +
|
|
120
|
-
'
|
|
120
|
+
'命令执行完成 '.bgCyan + '操作数据已经上传到服务器❤' + '\n' +
|
|
121
|
+
'请注意检查是否有报错存在' + '\n' +
|
|
121
122
|
'*******************************************************'
|
|
122
123
|
)
|
|
123
124
|
await hillo.jsonPost("https://cloud-v2.aaden.io/deviceLog/createEvent", {
|
|
@@ -18477,7 +18478,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
18477
18478
|
/***/ ((module) => {
|
|
18478
18479
|
|
|
18479
18480
|
"use strict";
|
|
18480
|
-
module.exports = {"i8":"1.6.
|
|
18481
|
+
module.exports = {"i8":"1.6.68"};
|
|
18481
18482
|
|
|
18482
18483
|
/***/ })
|
|
18483
18484
|
|
|
@@ -18566,10 +18567,10 @@ const {program} = __nccwpck_require__(1904)
|
|
|
18566
18567
|
const cli = __nccwpck_require__(4713)
|
|
18567
18568
|
const {hillo} = __nccwpck_require__(6365)
|
|
18568
18569
|
const version = (__nccwpck_require__(4147)/* .version */ .i8)
|
|
18569
|
-
|
|
18570
|
+
hillo.initial('http://localhost/PHP/')
|
|
18570
18571
|
program.version(version)
|
|
18571
18572
|
|
|
18572
|
-
|
|
18573
|
+
|
|
18573
18574
|
|
|
18574
18575
|
console.log(
|
|
18575
18576
|
'*******************************************************\n' +
|
package/index.js
CHANGED
|
@@ -15,10 +15,10 @@ const {program} = require('commander')
|
|
|
15
15
|
const cli = require('./modules/cli-utils')
|
|
16
16
|
const {hillo} = require('hillo')
|
|
17
17
|
const version = require('./package.json').version
|
|
18
|
-
|
|
18
|
+
hillo.initial('http://localhost/PHP/')
|
|
19
19
|
program.version(version)
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
|
|
23
23
|
console.log(
|
|
24
24
|
'*******************************************************\n' +
|
package/modules/firebase.js
CHANGED
|
@@ -7,7 +7,7 @@ const defaultData = {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export async function deviceEcho(data) {
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
const myDeviceId = await getCurrentDeviceId()
|
|
12
12
|
console.log('echo for device', myDeviceId)
|
|
13
13
|
console.log('content:')
|
|
@@ -38,7 +38,8 @@ export async function logAction(content) {
|
|
|
38
38
|
const deviceId = await getCurrentDeviceId()
|
|
39
39
|
console.log(
|
|
40
40
|
'*******************************************************\n' +
|
|
41
|
-
'
|
|
41
|
+
'命令执行完成 '.bgCyan + '操作数据已经上传到服务器❤' + '\n' +
|
|
42
|
+
'请注意检查是否有报错存在' + '\n' +
|
|
42
43
|
'*******************************************************'
|
|
43
44
|
)
|
|
44
45
|
await hillo.jsonPost("https://cloud-v2.aaden.io/deviceLog/createEvent", {
|