@mearl/cloud-connector 2.0.1 → 2.1.0
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/dist/cli.js +3 -2
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -143,7 +143,8 @@ var CloudConnector = class {
|
|
|
143
143
|
const client = await import("@mearl/client");
|
|
144
144
|
const result = await client.invoke(action, data, {
|
|
145
145
|
browser,
|
|
146
|
-
timeoutSec: timeoutSec ?? resolveActionTimeoutSec(action, data, 15)
|
|
146
|
+
timeoutSec: timeoutSec ?? resolveActionTimeoutSec(action, data, 15),
|
|
147
|
+
controlSource: "cloud"
|
|
147
148
|
});
|
|
148
149
|
this.sendResponse({ id, success: true, data: result });
|
|
149
150
|
} catch (error) {
|
|
@@ -309,7 +310,7 @@ function runForeground(options) {
|
|
|
309
310
|
}
|
|
310
311
|
|
|
311
312
|
// src/cli.ts
|
|
312
|
-
var CLOUD_CONNECTOR_VERSION = true ? "2.0
|
|
313
|
+
var CLOUD_CONNECTOR_VERSION = true ? "2.1.0" : "unknown";
|
|
313
314
|
var args = process.argv.slice(2);
|
|
314
315
|
if (args.includes("--version") || args.includes("-v")) {
|
|
315
316
|
console.log(CLOUD_CONNECTOR_VERSION);
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,8 @@ var CloudConnector = class {
|
|
|
132
132
|
const client = await import("@mearl/client");
|
|
133
133
|
const result = await client.invoke(action, data, {
|
|
134
134
|
browser,
|
|
135
|
-
timeoutSec: timeoutSec ?? resolveActionTimeoutSec(action, data, 15)
|
|
135
|
+
timeoutSec: timeoutSec ?? resolveActionTimeoutSec(action, data, 15),
|
|
136
|
+
controlSource: "cloud"
|
|
136
137
|
});
|
|
137
138
|
this.sendResponse({ id, success: true, data: result });
|
|
138
139
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mearl/cloud-connector",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Cloud connector for Mearl — bridges cloud WebSocket server to local native-host",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"ws": "^8.18.0",
|
|
31
|
-
"@mearl/cloud-types": "2.0
|
|
32
|
-
"@mearl/client": "2.0
|
|
33
|
-
"@mearl/daemon-core": "2.0
|
|
31
|
+
"@mearl/cloud-types": "2.1.0",
|
|
32
|
+
"@mearl/client": "2.1.0",
|
|
33
|
+
"@mearl/daemon-core": "2.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^24.9.1",
|