unprint 0.19.3 → 0.19.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unprint",
3
- "version": "0.19.3",
3
+ "version": "0.19.4",
4
4
  "description": "Simplify common web scraping tasks while staying in control of the data.",
5
5
  "main": "src/app.js",
6
6
  "repository": {
package/src/app.js CHANGED
@@ -1408,7 +1408,7 @@ function useRemoteRequest(options, method) {
1408
1408
  return true;
1409
1409
  }
1410
1410
 
1411
- if (options.remote.methods.includes(method.toLowerCase())) {
1411
+ if (options.remote.methods.includes(method.toLowerCase()) && options.useRemote !== false) {
1412
1412
  return true;
1413
1413
  }
1414
1414
  }
package/src/server.js CHANGED
@@ -81,7 +81,7 @@ async function handleRequest(req, res, unprint, method) {
81
81
  }
82
82
 
83
83
  async function monitorBrowsers(unprint) {
84
- await timers.setTimeout(10000);
84
+ await timers.setTimeout(60_000);
85
85
 
86
86
  const clients = unprint.getAllBrowsers();
87
87
 
@@ -135,6 +135,8 @@ async function initServer(address, unprint) {
135
135
 
136
136
  unprint.options(curateOptions(req.body));
137
137
 
138
+ logger.info('Configuration updated');
139
+
138
140
  res.status(204).send();
139
141
  });
140
142