statikapi 0.5.0 → 0.6.1

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": "statikapi",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/zonayedpca/statikapi",
@@ -421,9 +421,10 @@ export default async function devCmd(argv) {
421
421
  // Keep process alive until SIGINT
422
422
  await new Promise((resolve) => {
423
423
  const stop = () =>
424
- Promise.allSettled([watcher.close(), new Promise((r) => server.close(() => r()))]).then(() =>
425
- resolve()
426
- );
424
+ Promise.allSettled([
425
+ watcher.close(),
426
+ new Promise((_resolve) => server.close(() => _resolve())),
427
+ ]).then(() => resolve());
427
428
  process.on('SIGINT', stop);
428
429
  process.on('SIGTERM', stop);
429
430
  });