bun-plugin-stx 0.2.891 → 0.2.893

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/dist/serve.js +3 -0
  2. package/package.json +3 -3
package/dist/serve.js CHANGED
@@ -11357,6 +11357,9 @@ ${output}`;
11357
11357
  };
11358
11358
  try {
11359
11359
  if (req.method === "OPTIONS") {
11360
+ const hookResult = await options.onRequest?.(req, server);
11361
+ if (hookResult instanceof Response)
11362
+ return hookResult;
11360
11363
  return new Response(null, { headers: corsHeaders });
11361
11364
  }
11362
11365
  if (path === "/_stx/hmr") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-stx",
3
3
  "type": "module",
4
- "version": "0.2.891",
4
+ "version": "0.2.893",
5
5
  "description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -74,7 +74,7 @@
74
74
  "typecheck": "bun tsc --noEmit"
75
75
  },
76
76
  "dependencies": {
77
- "@stacksjs/stx": "0.2.891",
78
- "stx-router": "0.2.891"
77
+ "@stacksjs/stx": "0.2.893",
78
+ "stx-router": "0.2.893"
79
79
  }
80
80
  }