melonykit 0.10.2 → 0.11.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.
@@ -40,7 +40,11 @@ export async function importRestEndpoints(
40
40
  connectClientEvents(app);
41
41
  };
42
42
 
43
- // --------------------------------------------------------------------- Private
43
+
44
+
45
+ //
46
+ // Helpers
47
+
44
48
  function _createEndpointHandler(expressHandler) {
45
49
  return async function handler(req, res) {
46
50
  const context = {
@@ -48,6 +52,7 @@ function _createEndpointHandler(expressHandler) {
48
52
  res,
49
53
  handle,
50
54
  invoke,
55
+ debug,
51
56
  sendClientEvent,
52
57
  respondSuccess(data = {}, statusCode = 200) {
53
58
  return res.status(statusCode).json(data);
@@ -55,8 +60,7 @@ function _createEndpointHandler(expressHandler) {
55
60
  respondError(error, statusCode = 500) {
56
61
  debug(error);
57
62
  return res.status(statusCode).json(null);
58
- },
59
- debug
63
+ }
60
64
  };
61
65
 
62
66
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Vadim Hermann",
3
3
  "name": "melonykit",
4
- "version": "0.10.2",
4
+ "version": "0.11.1",
5
5
  "type": "module",
6
6
  "description": "Preact based ui and utility functions toolkit",
7
7
  "main": "./dist/index.js",
@@ -35,10 +35,10 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@pivanov/vite-plugin-svg-sprite": "3.1.8",
38
- "@playwright/test": "1.62.1",
38
+ "@playwright/test": "1.63.0",
39
39
  "@preact/preset-vite": "2.10.6",
40
- "@preact/signals": "2.11.1",
41
- "@types/node": "26.4.0",
40
+ "@preact/signals": "2.11.2",
41
+ "@types/node": "26.4.1",
42
42
  "preact": "10.29.8",
43
43
  "vite": "8.2.2",
44
44
  "vite-plugin-mkcert": "2.1.0"