@stubber/virtual-worker 1.4.1 → 1.4.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.
@@ -22,7 +22,13 @@ export const get_chromium_page = async (params, stubber_context) => {
22
22
  return create_error_conceptual({ message: "session_id is required to get a Chromium page." });
23
23
  }
24
24
 
25
- const slow_mo = params?.slow_mo || process.env.SLOW_MO || 0;
25
+ let slow_mo = params?.slow_mo || process.env.SLOW_MO || 0;
26
+
27
+ slow_mo = Number(slow_mo);
28
+
29
+ if (!isNaN(slow_mo) && slow_mo < 0) {
30
+ slow_mo = 0;
31
+ }
26
32
 
27
33
  // console.log(`get_chromium_page: session_id=${session_id}, slow_mo=${slow_mo}`);
28
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/virtual-worker",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Template to easily create a node app and keep development standards",
5
5
  "main": "app.js",
6
6
  "directories": {