@scenetest/vite-plugin 0.10.0 → 0.11.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/README.md +6 -0
- package/dist/dashboard.d.ts +8 -2
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/dashboard.js +25 -1210
- package/dist/dashboard.js.map +1 -1
- package/dist/event-hub.d.ts +5 -0
- package/dist/event-hub.d.ts.map +1 -1
- package/dist/event-hub.js +15 -2
- package/dist/event-hub.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +2 -0
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +235 -65
- package/dist/middleware.js.map +1 -1
- package/dist/virtual-module.d.ts +3 -2
- package/dist/virtual-module.d.ts.map +1 -1
- package/dist/virtual-module.js +4 -3
- package/dist/virtual-module.js.map +1 -1
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -15,4 +15,10 @@ export default defineConfig({
|
|
|
15
15
|
})
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
## Security Considerations
|
|
19
|
+
|
|
20
|
+
`serverCheck()` server functions are extracted at build time and executed by the dev-server middleware (`POST /__scenetest/run`) with full Node.js privileges. That code is yours, and it only ever runs on infrastructure you control: your own Vite dev server, whether that's your laptop or a disposable runner box you provision. It is never executed in any cloud worker or other hosted service. Don't expose the dev server to untrusted networks or code.
|
|
21
|
+
|
|
22
|
+
Each `serverCheck()` invocation is subject to a per-check timeout (default 5000ms, configurable via the plugin's `serverCheckTimeout` option); a check that exceeds it is reported as a failed assertion and the RPC response still returns.
|
|
23
|
+
|
|
18
24
|
See the [monorepo](https://github.com/scenetest/scenetest-js) for full documentation.
|
package/dist/dashboard.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Dev-mode shell for the dashboard at `/__scenetest/dashboard`.
|
|
3
|
+
*
|
|
4
|
+
* The dashboard UI itself lives in `@scenetest/dashboard` as a mountable
|
|
5
|
+
* widget (`mountDashboard`), shared with scenetest-cloud. This page is only a
|
|
6
|
+
* host: an importmap that points the widget's bare imports at the plugin's
|
|
7
|
+
* disk-served ESM (see the `/__scenetest/widget/*` and `/__scenetest/vendor/*`
|
|
8
|
+
* middleware routes), a mount point, and a one-line bootstrap that wires the
|
|
9
|
+
* widget to the dev transport (fetch + SSE against this same middleware).
|
|
4
10
|
*/
|
|
5
11
|
export declare function generateDashboardHtml(): string;
|
|
6
12
|
//# sourceMappingURL=dashboard.d.ts.map
|
package/dist/dashboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAgC9C"}
|