pinokiod 3.18.5 → 3.18.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.18.5",
3
+ "version": "3.18.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -2480,6 +2480,8 @@ class Server {
2480
2480
  if (options) {
2481
2481
  this.debug = options.debug
2482
2482
  this.browser = options.browser
2483
+ this.onrestart = options.onrestart
2484
+ this.onquit = options.onquit
2483
2485
  }
2484
2486
 
2485
2487
  if (this.listening) {
@@ -4986,6 +4988,7 @@ class Server {
4986
4988
  this.app.post("/onrestart", ex(async (req, res) => {
4987
4989
  console.log("post /onrestart")
4988
4990
  if (this.onrestart) {
4991
+ console.log("onrestart exists")
4989
4992
  this.onrestart()
4990
4993
  } else {
4991
4994
  await this.start({ debug: this.debug, browser: this.browser })