@supraio/client-daemon-js 0.0.0-master.231
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/daemon/plain.d.ts +1 -0
- package/daemon/wasm.d.ts +2 -0
- package/daemon.d.ts +1 -0
- package/daemon.html +9 -0
- package/daemon.js +17478 -0
- package/daemon.js.map +7 -0
- package/dom/script.d.ts +1 -0
- package/env/consts.d.ts +1 -0
- package/fs/browserfs.d.ts +5 -0
- package/go/go.d.ts +25 -0
- package/package.json +30 -0
- package/screen/options.d.ts +10 -0
- package/screen/plain.d.ts +1 -0
- package/screen/wasm.d.ts +10 -0
- package/screen.css +5 -0
- package/screen.d.ts +1 -0
- package/screen.html +10 -0
- package/screen.js +17534 -0
- package/screen.js.map +7 -0
- package/sdk.d.ts +4 -0
- package/sdk.js +17563 -0
- package/sdk.js.map +7 -0
- package/supra-client-daemon.js +144469 -0
- package/supra-client-daemon.js.map +1 -0
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +145315 -0
- package/supra-client-screen.js.map +1 -0
- package/supra-client-screen.wasm +0 -0
- package/wasm_exec.js +633 -0
package/dom/script.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function injectScript(url: string): Promise<void>;
|
package/env/consts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FORCE_PLAIN_KEY = "_forcePlain";
|
package/go/go.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import nodeFs from 'fs';
|
|
3
|
+
declare global {
|
|
4
|
+
class Go {
|
|
5
|
+
/** Accessed by x264/decode_wasm.go directly to optimize memory usage */
|
|
6
|
+
h264: WebAssembly.Memory;
|
|
7
|
+
env: {
|
|
8
|
+
[name: string]: string;
|
|
9
|
+
};
|
|
10
|
+
importObject: WebAssembly.Imports;
|
|
11
|
+
argv: string[];
|
|
12
|
+
run(instance: WebAssembly.Instance): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
interface Window {
|
|
15
|
+
/** Make it global accessible for wasm_exec.js */
|
|
16
|
+
fs: typeof nodeFs;
|
|
17
|
+
module: any;
|
|
18
|
+
Go: new () => Go;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare function getGoEnv(): {
|
|
22
|
+
HOME: string;
|
|
23
|
+
USER: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function initGoEnvironment(): Promise<void>;
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@supraio/client-daemon-js",
|
|
3
|
+
"version": "0.0.0-master.231",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "sdk.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build-daemon": "esbuild --bundle --sourcemap --define:'process.env.VERSION'=\\\"$VERSION\\\" --target=chrome79,firefox86,edge89 --outfile=dist/daemon.js daemon.ts",
|
|
8
|
+
"build-screen": "esbuild --bundle --sourcemap --define:'process.env.VERSION'=\\\"$VERSION\\\" --target=chrome79,firefox86,edge89 --outfile=dist/screen.js screen.ts",
|
|
9
|
+
"build-sdk": "esbuild --bundle --sourcemap --define:'process.env.VERSION'=\\\"$VERSION\\\" --target=chrome79,firefox86,edge89 --outfile=dist/sdk.js --format=cjs sdk.ts",
|
|
10
|
+
"build-types": "tsc --declaration --emitDeclarationOnly",
|
|
11
|
+
"clean": "rm -rf dist/*",
|
|
12
|
+
"check": "tsc --noEmit",
|
|
13
|
+
"lint": "eslint \"**/*.ts\""
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/dropboxjs": "0.0.29",
|
|
17
|
+
"@types/filesystem": "0.0.29",
|
|
18
|
+
"@types/node": "14.14.34",
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
|
20
|
+
"@typescript-eslint/parser": "^4.17.0",
|
|
21
|
+
"browserfs": "1.4.3",
|
|
22
|
+
"esbuild": "0.9.2",
|
|
23
|
+
"eslint": "7.22.0",
|
|
24
|
+
"h264decoder": "git+https://github.com/misak113/h264decoder.git#master",
|
|
25
|
+
"querystring": "0.2.1",
|
|
26
|
+
"typescript": "4.2.3"
|
|
27
|
+
},
|
|
28
|
+
"author": "supra.io",
|
|
29
|
+
"license": "ISC"
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function startPlainScreen(): Promise<void>;
|
package/screen/wasm.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../go/go';
|
|
2
|
+
import { H264Decoder } from 'h264decoder';
|
|
3
|
+
import { IScreenOptions } from './options';
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
/** Make it global accessible for x264/decode_wasm.go */
|
|
7
|
+
h264Decoder: H264Decoder;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare function startWasmScreen(options?: IScreenOptions): Promise<void>;
|
package/screen.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/screen.html
ADDED