@qontinui/ui-bridge-native 0.9.0 → 0.11.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/README.md +50 -2
- package/dist/core/index.js +13 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +13 -3
- package/dist/core/index.mjs.map +1 -1
- package/dist/core/sha256.d.ts +29 -7
- package/dist/core/sha256.d.ts.map +1 -1
- package/dist/debug/index.js.map +1 -1
- package/dist/debug/index.mjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +988 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +978 -33
- package/dist/index.mjs.map +1 -1
- package/dist/react/UIBridgeNativeProvider.d.ts +25 -3
- package/dist/react/UIBridgeNativeProvider.d.ts.map +1 -1
- package/dist/react/index.js +959 -31
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +960 -32
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/http-server.d.ts +120 -2
- package/dist/server/http-server.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +926 -15
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +908 -16
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/pairing.d.ts +295 -0
- package/dist/server/pairing.d.ts.map +1 -0
- package/dist/server/types.d.ts +20 -0
- package/dist/server/types.d.ts.map +1 -1
- package/dist/transport/DeviceAnnouncer.d.ts +0 -2
- package/dist/transport/DeviceAnnouncer.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/core/index.mjs
CHANGED
|
@@ -570,8 +570,7 @@ function utf8Bytes(input) {
|
|
|
570
570
|
return Uint8Array.from(out);
|
|
571
571
|
}
|
|
572
572
|
var rotr = (x, n) => x >>> n | x << 32 - n;
|
|
573
|
-
function
|
|
574
|
-
const bytes = utf8Bytes(input);
|
|
573
|
+
function sha256Bytes(bytes) {
|
|
575
574
|
const blockBytes = Math.ceil((bytes.length + 9) / 64) * 64;
|
|
576
575
|
const buffer = new Uint8Array(blockBytes);
|
|
577
576
|
buffer.set(bytes);
|
|
@@ -615,7 +614,18 @@ function sha256Hex(input) {
|
|
|
615
614
|
h[6] = h[6] + g | 0;
|
|
616
615
|
h[7] = h[7] + hh | 0;
|
|
617
616
|
}
|
|
618
|
-
|
|
617
|
+
const digest = new Uint8Array(32);
|
|
618
|
+
const digestView = new DataView(digest.buffer);
|
|
619
|
+
h.forEach((word, i) => digestView.setUint32(i * 4, word >>> 0));
|
|
620
|
+
return digest;
|
|
621
|
+
}
|
|
622
|
+
function bytesToHex(bytes) {
|
|
623
|
+
let out = "";
|
|
624
|
+
for (let i = 0; i < bytes.length; i++) out += bytes[i].toString(16).padStart(2, "0");
|
|
625
|
+
return out;
|
|
626
|
+
}
|
|
627
|
+
function sha256Hex(input) {
|
|
628
|
+
return bytesToHex(sha256Bytes(utf8Bytes(input)));
|
|
619
629
|
}
|
|
620
630
|
|
|
621
631
|
// src/core/vision-fields.ts
|