@teacss/inspector 0.10.8 → 0.10.10
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/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export type { ModuleTokens, ProjectResponse, ReplRequest } from "./types.js";
|
|
|
4
4
|
/** Connect-compatible: `server.middlewares.use("/__teacss", createInspectorMiddleware(project))`. */
|
|
5
5
|
export type InspectorMiddleware = (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* `/api/project`, `/api/modules`, `/api/css`, `/api/stats`, `/api/token/<token>`, `/api/suggest?q=` and `POST /api/repl`
|
|
8
|
+
* read `project` through napi, and `/api/module?id=` generates one module's token list (docs/architecture.md §12).
|
|
9
9
|
* Every other path is the static UI. Only loopback requests are answered (403 otherwise).
|
|
10
10
|
*/
|
|
11
11
|
export declare function createInspectorMiddleware(project: Project): InspectorMiddleware;
|
package/dist/index.js
CHANGED
|
@@ -17,8 +17,8 @@ class HttpError extends Error {
|
|
|
17
17
|
/** `/api/suggest` answers at most this many candidates; `limit` can lower it. */
|
|
18
18
|
const MAX_SUGGESTIONS = 100;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* `/api/project`, `/api/modules`, `/api/css`, `/api/stats`, `/api/token/<token>`, `/api/suggest?q=` and `POST /api/repl`
|
|
21
|
+
* read `project` through napi, and `/api/module?id=` generates one module's token list (docs/architecture.md §12).
|
|
22
22
|
* Every other path is the static UI. Only loopback requests are answered (403 otherwise).
|
|
23
23
|
*/
|
|
24
24
|
export function createInspectorMiddleware(project) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teacss/inspector",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10",
|
|
4
4
|
"description": "TeaCSS inspector: the dev-server page @teacss/vite mounts at /__teacss, reading the Rust engine (@teacss/engine)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"node": ">=26"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@teacss/engine": "0.10.
|
|
37
|
+
"@teacss/engine": "0.10.10",
|
|
38
38
|
"sirv": "^3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|