@torpor/adapter-electron 1.1.0 → 1.1.2
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/LICENSE.md +5 -0
- package/dist/runtime.d.mts +3 -4
- package/dist/runtime.d.mts.map +1 -1
- package/package.json +40 -40
package/LICENSE.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Copyright 2024 <OWNER>
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
4
|
+
|
|
5
|
+
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/dist/runtime.d.mts
CHANGED
|
@@ -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
|
package/dist/runtime.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/runtime.ts"],"mappings":";;;;;;;
|
|
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,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
2
|
+
"name": "@torpor/adapter-electron",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "A @torpor/build adapter for building desktop apps with Electron",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.mts",
|
|
9
|
+
"import": "./dist/index.mjs"
|
|
10
|
+
},
|
|
11
|
+
"./runtime": {
|
|
12
|
+
"types": "./dist/runtime.d.mts",
|
|
13
|
+
"import": "./dist/runtime.mjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [],
|
|
23
|
+
"author": "",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.1.0",
|
|
27
|
+
"@torpor/adapter-node": "^1.1.1",
|
|
28
|
+
"@torpor/build": "^1.6.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^26.6.4",
|
|
32
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
33
|
+
"typescript": "^7.0.2",
|
|
34
|
+
"vite-plus": "1.1.0"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"check": "tsgo --noEmit && pnpm dlx oxlint --type-aware",
|
|
38
|
+
"build": "tsgo --noEmit && vp pack",
|
|
39
|
+
"build:watch": "vp pack --watch"
|
|
40
|
+
}
|
|
41
|
+
}
|