@torpor/adapter-electron 1.1.1 → 1.1.3

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.
@@ -5,21 +5,20 @@ import { i as StartServerOptions, r as RunningServer } from "./types-Ce9F9DiP.mj
5
5
  * Node version supports `process.loadEnvFile` (20.12+). Mirrors the CLI, which
6
6
  * loads `.env` for dev and preview.
7
7
  */
8
- declare function loadEnv(root: string): void;
8
+ export declare function loadEnv(root: string): void;
9
9
  /**
10
10
  * Builds a Fetch API handler for a built site: it serves everything under
11
11
  * `dist/client` statically and routes the rest through `dist/server`'s
12
12
  * `serverEntry.load`. Replaces `runPreview`'s Server setup, which isn't
13
13
  * exported from @torpor/build.
14
14
  */
15
- declare function createRequestHandler(root: string): Promise<(request: Request) => Promise<Response>>;
15
+ export declare function createRequestHandler(root: string): Promise<(request: Request) => Promise<Response>>;
16
16
  /**
17
17
  * Starts the loopback HTTP server for a built site. Requests are handled in
18
18
  * the Electron main process (Node), so cookies, sessions and redirects behave
19
19
  * exactly as they do on a normal Node server -- Chromium's session cookie
20
20
  * store handles persistence across launches.
21
21
  */
22
- declare function startServer(root: string, options?: StartServerOptions): Promise<RunningServer>;
22
+ export declare function startServer(root: string, options?: StartServerOptions): Promise<RunningServer>;
23
23
  //#endregion
24
- export { createRequestHandler, loadEnv, startServer };
25
24
  //# sourceMappingURL=runtime.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/runtime.ts"],"mappings":";;;;;;;iBAcgB,QAAQ;;;;;;;iBAkBF,qBACrB,eACE,SAAS,SAAS,YAAY,QAAQ;;;;;;;iBAkCnB,YACrB,cACA,UAAS,qBACP,QAAQ"}
1
+ {"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/runtime.ts"],"mappings":";;;;;;;wBAcgB,QAAQ;;;;;;;wBAkBF,qBACrB,eACE,SAAS,SAAS,YAAY,QAAQ;;;;;;;wBAkCnB,YACrB,cACA,UAAS,qBACP,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torpor/adapter-electron",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A @torpor/build adapter for building desktop apps with Electron",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,15 +23,15 @@
23
23
  "author": "",
24
24
  "license": "ISC",
25
25
  "dependencies": {
26
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
27
- "@torpor/build": "^1.5.0",
28
- "@torpor/adapter-node": "^1.1.0"
26
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.1.0",
27
+ "@torpor/adapter-node": "^1.1.2",
28
+ "@torpor/build": "^1.6.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "^26.1.2",
31
+ "@types/node": "^26.6.4",
32
32
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
33
33
  "typescript": "^7.0.2",
34
- "vite-plus": "0.3.0"
34
+ "vite-plus": "1.1.0"
35
35
  },
36
36
  "scripts": {
37
37
  "check": "tsgo --noEmit && pnpm dlx oxlint --type-aware",