@serverless-devs/s3 0.0.3-beta.4 → 0.0.3-beta.6
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/lib/daemon/lib.js +4 -4
- package/lib/daemon/report.js +3 -2
- package/lib/index.js +595 -595
- package/package.json +17 -17
package/lib/daemon/report.js
CHANGED
|
@@ -6,13 +6,14 @@ const { Report } = require('./lib');
|
|
|
6
6
|
|
|
7
7
|
// Exit process when offline
|
|
8
8
|
setTimeout(process.exit, 1000 * 30);
|
|
9
|
-
const { type, template, uid, argv } = JSON.parse(process.argv[2]);
|
|
9
|
+
const { type, template, uid, argv, component } = JSON.parse(process.argv[2]);
|
|
10
10
|
console.log('type', type);
|
|
11
11
|
console.log('template', template);
|
|
12
12
|
console.log('uid', uid);
|
|
13
13
|
console.log('argv', argv);
|
|
14
|
+
console.log('component', component);
|
|
14
15
|
const instance = new Report();
|
|
15
|
-
type === 'init' ? await instance.reportInit({ template }) : await instance.reportCommand({ uid, argv });
|
|
16
|
+
type === 'init' ? await instance.reportInit({ template }) : await instance.reportCommand({ uid, argv, component });
|
|
16
17
|
console.log('********report successfully in daemon********');
|
|
17
18
|
// Call process exit explicitly to terminate the child process,
|
|
18
19
|
// otherwise the child process will run forever, according to the Node.js docs
|