@danypops/pi-packed 0.28.14 → 0.28.15
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.
|
@@ -46,7 +46,9 @@ function defaultClient(): VehicleClient {
|
|
|
46
46
|
async () => {
|
|
47
47
|
const resolved = currentVehicleClientTarget();
|
|
48
48
|
if (!resolved) throw new Error("Packed daemon is not running");
|
|
49
|
-
|
|
49
|
+
const remote = new RemoteVehicleClient({ baseUrl: resolved.baseUrl, token: resolved.token });
|
|
50
|
+
await remote.negotiate({ minimumVersion: 1, maximumVersion: 1, requiredCapabilities: [], optionalCapabilities: [] });
|
|
51
|
+
return remote;
|
|
50
52
|
},
|
|
51
53
|
{ connectRetry: true },
|
|
52
54
|
);
|
|
@@ -86,7 +86,9 @@ export async function registerPackedVehicle(pi: ExtensionAPI): Promise<void> {
|
|
|
86
86
|
async () => {
|
|
87
87
|
const resolved = currentVehicleClientTarget();
|
|
88
88
|
if (!resolved) throw new Error("Packed daemon is not running");
|
|
89
|
-
|
|
89
|
+
const remote = new RemoteVehicleClient({ baseUrl: resolved.baseUrl, token: resolved.token });
|
|
90
|
+
await remote.negotiate({ minimumVersion: 1, maximumVersion: 1, requiredCapabilities: [], optionalCapabilities: [] });
|
|
91
|
+
return remote;
|
|
90
92
|
},
|
|
91
93
|
{ connectRetry: true },
|
|
92
94
|
),
|