@relai-team/access-sdk 0.21.1 → 0.21.2
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/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1517,7 +1517,11 @@ var BleTransport = class {
|
|
|
1517
1517
|
return parsed.nonceB64Url;
|
|
1518
1518
|
}
|
|
1519
1519
|
async sendCommand(session, token) {
|
|
1520
|
-
const line = await this.writeAndAwait(
|
|
1520
|
+
const line = await this.writeAndAwait(
|
|
1521
|
+
session,
|
|
1522
|
+
utf8ToBase64(token),
|
|
1523
|
+
(p) => p.kind === "accept" || p.kind === "reject"
|
|
1524
|
+
);
|
|
1521
1525
|
const parsed = parseNotifyLine(line);
|
|
1522
1526
|
if (parsed.kind === "accept") {
|
|
1523
1527
|
return { accepted: true, command: parsed.command, rejectReason: void 0, verbHint: void 0 };
|
package/dist/index.js
CHANGED
|
@@ -1347,7 +1347,11 @@ var BleTransport = class {
|
|
|
1347
1347
|
return parsed.nonceB64Url;
|
|
1348
1348
|
}
|
|
1349
1349
|
async sendCommand(session, token) {
|
|
1350
|
-
const line = await this.writeAndAwait(
|
|
1350
|
+
const line = await this.writeAndAwait(
|
|
1351
|
+
session,
|
|
1352
|
+
utf8ToBase64(token),
|
|
1353
|
+
(p) => p.kind === "accept" || p.kind === "reject"
|
|
1354
|
+
);
|
|
1351
1355
|
const parsed = parseNotifyLine(line);
|
|
1352
1356
|
if (parsed.kind === "accept") {
|
|
1353
1357
|
return { accepted: true, command: parsed.command, rejectReason: void 0, verbHint: void 0 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relai-team/access-sdk",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "Official Relai Access SDK, open Relai Exchange Zone nodes over BLE, backed by the Relai Access platform (server-owns-trust).",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|