@serverless-devs/s3 0.1.2-beta.2 → 0.1.2
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 +3 -3
- package/lib/daemon/report.js +4 -4
- package/lib/index.js +584 -582
- package/package.json +11 -5
package/lib/daemon/report.js
CHANGED
|
@@ -20,14 +20,14 @@ const { Report } = require('./lib');
|
|
|
20
20
|
console.log('uid', uid);
|
|
21
21
|
console.log('argv', argv);
|
|
22
22
|
console.log('component', component);
|
|
23
|
-
return await instance.reportCommand({ uid, argv, command, component, userAgent })
|
|
23
|
+
return await instance.reportCommand({ uid, argv, command, component, userAgent });
|
|
24
24
|
}
|
|
25
25
|
// 解析异常
|
|
26
26
|
if (type === 'parseException') {
|
|
27
27
|
console.log('uid', uid);
|
|
28
28
|
console.log('argv', argv);
|
|
29
29
|
console.log('message', message);
|
|
30
|
-
return await instance.reportParseException({ argv, command, message, userAgent })
|
|
30
|
+
return await instance.reportParseException({ argv, command, message, userAgent });
|
|
31
31
|
}
|
|
32
32
|
// 执行异常
|
|
33
33
|
if (type === 'runtimeException') {
|
|
@@ -35,9 +35,9 @@ const { Report } = require('./lib');
|
|
|
35
35
|
console.log('argv', argv);
|
|
36
36
|
console.log('component', component);
|
|
37
37
|
console.log('message', message);
|
|
38
|
-
return await instance.reportRuntimeException({ uid, argv, command, component, message, userAgent })
|
|
38
|
+
return await instance.reportRuntimeException({ uid, argv, command, component, message, userAgent });
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
await run();
|
|
42
42
|
console.log('********report successfully in daemon********');
|
|
43
43
|
// Call process exit explicitly to terminate the child process,
|