@alivault/pico 0.13.0 → 0.14.0
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/.output/nitro.json +1 -1
- package/.output/public/assets/{index-CW1T9dk-.js → index-DBVxXDtw.js} +4 -4
- package/.output/public/assets/routes-yUxD2q-l.js +2194 -0
- package/.output/public/assets/styles-CUVz7jV9.css +2 -0
- package/.output/public/screenshots/pico-ios-dark.png +0 -0
- package/.output/public/screenshots/pico-ios-light.png +0 -0
- package/.output/public/screenshots/pico-macos-dark.jpg +0 -0
- package/.output/public/screenshots/pico-macos-light.jpg +0 -0
- package/.output/server/_chunks/ssr-renderer.mjs +3 -3
- package/.output/server/_libs/crossws.mjs +2929 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +7 -1
- package/.output/server/_libs/unctx.mjs +1 -1
- package/.output/server/_routes/api/terminal/[id]/ws.mjs +8874 -0
- package/.output/server/_ssr/{router-l__gf5Y7.mjs → router-CN4JMm2A.mjs} +1074 -316
- package/.output/server/_ssr/{routes-DySm_W8N.mjs → routes-BsQ26pbY.mjs} +738 -189
- package/.output/server/_ssr/{routes-CuWg5WTI.mjs → routes-DbjuMLFI.mjs} +19 -10
- package/.output/server/_ssr/ssr.mjs +3 -3
- package/.output/server/_ssr/start-jIczsXlR.mjs +4 -0
- package/.output/server/{_tanstack-start-manifest_v-CVoKKKc_.mjs → _tanstack-start-manifest_v-Bs4g_j1_.mjs} +7 -4
- package/.output/server/index.mjs +621 -542
- package/.output/server/node_modules/node-pty/build/Makefile +2 -2
- package/.output/server/node_modules/node-pty/build/pty.target.mk +14 -14
- package/README.md +68 -6
- package/bin/pico.mjs +103 -1
- package/package.json +4 -4
- package/public/screenshots/pico-ios-dark.png +0 -0
- package/public/screenshots/pico-ios-light.png +0 -0
- package/public/screenshots/pico-macos-dark.jpg +0 -0
- package/public/screenshots/pico-macos-light.jpg +0 -0
- package/.output/public/assets/routes-2LboeUx4.js +0 -2194
- package/.output/public/assets/styles-B1ITYh-r.css +0 -2
- package/.output/server/_ssr/start-Captdpmb.mjs +0 -4
|
@@ -1206,5 +1206,11 @@ var H3Core = class {
|
|
|
1206
1206
|
return routeMiddleware ? [...globalMiddleware, ...routeMiddleware] : globalMiddleware;
|
|
1207
1207
|
}
|
|
1208
1208
|
};
|
|
1209
|
+
function defineWebSocketHandler(hooks) {
|
|
1210
|
+
return defineHandler(function _webSocketHandler(event) {
|
|
1211
|
+
const crossws = typeof hooks === "function" ? hooks(event) : hooks;
|
|
1212
|
+
return Object.assign(new Response("WebSocket upgrade is required.", { status: 426 }), { crossws });
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1209
1215
|
//#endregion
|
|
1210
|
-
export {
|
|
1216
|
+
export { defineWebSocketHandler as a, NodeRequest as c, defineLazyEventHandler as i, NodeResponse as l, HTTPError as n, toEventHandler as o, defineHandler as r, toRequest as s, H3Core as t, serve as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/nitro@3.0.260415-beta_dotenv@17.4.2_jiti@2.7.0_lru-cache@11.
|
|
1
|
+
//#region node_modules/.pnpm/nitro@3.0.260415-beta_dotenv@17.4.2_jiti@2.7.0_lru-cache@11.5.2_rollup@4.60.1_vite@8.0._d577b27b25cebdab9b1ba74e7d64d251/node_modules/nitro/dist/node_modules/unctx/dist/index.mjs
|
|
2
2
|
function createContext(opts = {}) {
|
|
3
3
|
let currentInstance;
|
|
4
4
|
let isSingleton = false;
|