lambda-live-debugger 1.3.0 → 1.4.0
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/README.md
CHANGED
|
@@ -330,6 +330,7 @@ If you have a new feature idea, please create and issue.
|
|
|
330
330
|
|
|
331
331
|
- [Kristian Dreher](https://www.linkedin.com/in/kristiandreher)
|
|
332
332
|
- [Roger Chi](https://rogerchi.com/)
|
|
333
|
+
- [Sebastian / avocadomaster](https://github.com/avocadomaster)
|
|
333
334
|
- [Sebastian Bille](https://blog.sebastianbille.com)
|
|
334
335
|
- ⭐ Your name here for notable code or documentation contributions or sample projects submitted with a bug report that resulted in tool improvement.
|
|
335
336
|
|
|
Binary file
|
|
@@ -53804,7 +53804,11 @@ async function regularMode(context, event) {
|
|
|
53804
53804
|
}, 5 * 1e3);
|
|
53805
53805
|
const ioTService = await IoTService.connect({
|
|
53806
53806
|
onMessage: async (message) => {
|
|
53807
|
-
Logger.
|
|
53807
|
+
if (Logger.isVerbose()) {
|
|
53808
|
+
Logger.verbose("IoT message", message);
|
|
53809
|
+
} else {
|
|
53810
|
+
Logger.log("IoT message", message.type);
|
|
53811
|
+
}
|
|
53808
53812
|
if (message.type === "PING") {
|
|
53809
53813
|
if (message.data.workerId === workerId) {
|
|
53810
53814
|
Logger.log("Pinged by the debugger");
|
|
@@ -53841,11 +53845,14 @@ async function regularMode(context, event) {
|
|
|
53841
53845
|
env: process.env
|
|
53842
53846
|
}
|
|
53843
53847
|
};
|
|
53844
|
-
Logger.
|
|
53845
|
-
|
|
53846
|
-
|
|
53847
|
-
|
|
53848
|
-
|
|
53848
|
+
if (Logger.isVerbose()) {
|
|
53849
|
+
Logger.verbose(
|
|
53850
|
+
`Publishing to IoT ${process.env.LLD_DEBUGGER_ID}/events`,
|
|
53851
|
+
payload
|
|
53852
|
+
);
|
|
53853
|
+
} else {
|
|
53854
|
+
Logger.log(`Publishing to IoT ${process.env.LLD_DEBUGGER_ID}/events`);
|
|
53855
|
+
}
|
|
53849
53856
|
await ioTService.publish(payload, `${process.env.LLD_DEBUGGER_ID}/events`);
|
|
53850
53857
|
return promise;
|
|
53851
53858
|
}
|
|
@@ -53914,11 +53921,14 @@ async function observableMode(context, event) {
|
|
|
53914
53921
|
env: process.env
|
|
53915
53922
|
}
|
|
53916
53923
|
};
|
|
53917
|
-
Logger.
|
|
53918
|
-
|
|
53919
|
-
|
|
53920
|
-
|
|
53921
|
-
|
|
53924
|
+
if (Logger.isVerbose()) {
|
|
53925
|
+
Logger.verbose(
|
|
53926
|
+
`Publishing to IoT ${process.env.LLD_DEBUGGER_ID}/events`,
|
|
53927
|
+
payload
|
|
53928
|
+
);
|
|
53929
|
+
} else {
|
|
53930
|
+
Logger.log(`Publishing to IoT ${process.env.LLD_DEBUGGER_ID}/events`);
|
|
53931
|
+
}
|
|
53922
53932
|
await ioTService.publish(payload, `${process.env.LLD_DEBUGGER_ID}/events`);
|
|
53923
53933
|
};
|
|
53924
53934
|
const regularHandlerPromise = regularHandler();
|