@vyr/remote 0.0.15 → 0.0.17
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/package.json +18 -1
- package/src/Bridge.ts +1 -4
- package/src/RemoteProcess.ts +1 -1
package/package.json
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@vyr/remote",
|
|
3
|
+
"version": "0.0.17",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./src/index.ts",
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"dom-to-image": "^2.6.0",
|
|
10
|
+
"@vyr/locale": "0.0.17",
|
|
11
|
+
"@vyr/declare": "0.0.17",
|
|
12
|
+
"@vyr/engine": "0.0.17"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"package.json",
|
|
16
|
+
"src/"
|
|
17
|
+
]
|
|
18
|
+
}
|
package/src/Bridge.ts
CHANGED
|
@@ -16,7 +16,6 @@ interface RemoteConfig {
|
|
|
16
16
|
|
|
17
17
|
interface BridgeConfig {
|
|
18
18
|
id: string
|
|
19
|
-
args?: any[]
|
|
20
19
|
useRemote?: () => Promise<Window>
|
|
21
20
|
autoConnect?: boolean
|
|
22
21
|
}
|
|
@@ -38,7 +37,6 @@ class Bridge {
|
|
|
38
37
|
return `${protocol}//${hostname}:${port}`
|
|
39
38
|
}
|
|
40
39
|
private _id
|
|
41
|
-
private _args
|
|
42
40
|
private _remote!: Window
|
|
43
41
|
private _closeId = -1
|
|
44
42
|
private _readyId = -1
|
|
@@ -48,7 +46,6 @@ class Bridge {
|
|
|
48
46
|
|
|
49
47
|
constructor(config: BridgeConfig) {
|
|
50
48
|
this._id = config.id
|
|
51
|
-
this._args = config.args ?? []
|
|
52
49
|
this.comm = Bridge.createBaseUrl()
|
|
53
50
|
window.addEventListener('message', this.onReceive)
|
|
54
51
|
window.addEventListener('beforeunload', () => this.send(new Job.bridge.disconnect.Response({})))
|
|
@@ -100,7 +97,7 @@ class Bridge {
|
|
|
100
97
|
this.onDisconnect()
|
|
101
98
|
break;
|
|
102
99
|
default:
|
|
103
|
-
this._listener.trigger(task.method, task
|
|
100
|
+
this._listener.trigger(task.method, task)
|
|
104
101
|
break;
|
|
105
102
|
}
|
|
106
103
|
}
|
package/src/RemoteProcess.ts
CHANGED
|
@@ -56,7 +56,7 @@ class RemoteProcess {
|
|
|
56
56
|
async listen() {
|
|
57
57
|
for (const setup of privateState.setupCollection) setup(this)
|
|
58
58
|
|
|
59
|
-
this.bridge = new Bridge({ id: this.config.id
|
|
59
|
+
this.bridge = new Bridge({ id: this.config.id })
|
|
60
60
|
|
|
61
61
|
let executor = this.getExecutor()
|
|
62
62
|
if (executor === null) {
|