@nativescript/cloudflare-desktop 0.1.0-alpha.2 → 0.1.0-alpha.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.
- package/README.md +1 -1
- package/dist/electron.d.ts +0 -2
- package/dist/electron.js +0 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Runs an ns-edge project as a macOS desktop app on the [NativeScript Node-API run
|
|
|
6
6
|
npx @nativescript/cloudflare-desktop 'https://<host>/p/<project id>#<device key>'
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
The device link is in the IDE's **Pair device** dialog.
|
|
9
|
+
The device link is in the IDE's **Pair device** dialog. To create a project and run it in one step, use `npx @nativescript/cloudflare-cli live --mac`. Otherwise create it from the `macos` template (`POST /api/projects?template=macos`). Projects from the `electron` template run in the Electron host instead: see [packages/electron](../electron/README.md).
|
|
10
10
|
|
|
11
11
|
The host asks before joining: the project's code runs in this process with your user account's access to files, network and apps, and anyone with the write key can watch and click its window.
|
|
12
12
|
|
package/dist/electron.d.ts
CHANGED
package/dist/electron.js
CHANGED
|
@@ -12,7 +12,3 @@ export function nativeView(win) {
|
|
|
12
12
|
interop.free(slot);
|
|
13
13
|
return view;
|
|
14
14
|
}
|
|
15
|
-
/** Where a project's `web/` file is served, for `BrowserWindow.loadURL`. */
|
|
16
|
-
export function webUrlFor(projectUrl) {
|
|
17
|
-
return (path = 'index.html') => `${projectUrl}/web/${path.replace(/^\/+/, '')}`;
|
|
18
|
-
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { loadRuntime, type RuntimeOptions } from './runtime.js';
|
|
|
3
3
|
export { startApp } from './app.js';
|
|
4
4
|
export { InputInjector } from './input.js';
|
|
5
5
|
export { WindowStreamer, projectWindow } from './stream.js';
|
|
6
|
-
export { nativeView
|
|
6
|
+
export { nativeView } from './electron.js';
|
package/dist/index.js
CHANGED
|
@@ -3,4 +3,4 @@ export { loadRuntime } from './runtime.js';
|
|
|
3
3
|
export { startApp } from './app.js';
|
|
4
4
|
export { InputInjector } from './input.js';
|
|
5
5
|
export { WindowStreamer, projectWindow } from './stream.js';
|
|
6
|
-
export { nativeView
|
|
6
|
+
export { nativeView } from './electron.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript/cloudflare-desktop",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"description": "Runs an ns-edge project as a macOS desktop app on the NativeScript Node-API runtime, hot-reloaded from the edge and streamed to the browser IDE",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@nativescript/cloudflare-protocol": "0.1.0-beta.2",
|
|
33
|
-
"@nativescript/macos-node-api": "0.
|
|
33
|
+
"@nativescript/macos-node-api": "0.5.0-beta.0",
|
|
34
34
|
"es-module-lexer": "^3.0.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|