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 +1 -1
- package/src/app.js +1 -1
- package/src/server.js +3 -1
package/package.json
CHANGED
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(
|
|
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
|
|