Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot 42cbb29692 chore(release): 0.1.0-develop.28 [skip ci]
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2024-01-10)

### Bug Fixes

* use addEventListener, on is not available in all environments ([c4c0a94](c4c0a947a9))
2024-01-10 07:55:18 +00:00
Derrick Hammer 11a033b3f7
Merge remote-tracking branch 'origin/develop' into develop 2024-01-10 02:54:25 -05:00
Derrick Hammer c4c0a947a9
fix: use addEventListener, on is not available in all environments 2024-01-10 02:54:20 -05:00
4 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2024-01-10)
### Bug Fixes
* use addEventListener, on is not available in all environments ([c4c0a94](https://git.lumeweb.com/LumeWeb/s5-js/commit/c4c0a947a93c60ea2364b7de9b975d6dccc188cc))
# [0.1.0-develop.27](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.26...v0.1.0-develop.27) (2023-12-28)
# [0.1.0-develop.26](https://git.lumeweb.com/LumeWeb/s5-js/compare/v0.1.0-develop.25...v0.1.0-develop.26) (2023-12-28)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/s5-js",
"version": "0.1.0-develop.27",
"version": "0.1.0-develop.28",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/s5-js",
"version": "0.1.0-develop.27",
"version": "0.1.0-develop.28",
"dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.82",
"@noble/hashes": "^1.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/s5-js",
"version": "0.1.0-develop.27",
"version": "0.1.0-develop.28",
"type": "module",
"module": "lib/index.js",
"main": "lib/index.js",

View File

@ -74,7 +74,7 @@ export async function subscribeToEntry(
const socket = new WS(wsUrl);
socket.on("open", () => {
socket.addEventListener("open", () => {
const packer = new Packer();
packer.pack(2);
packer.pack(publicKey);
@ -84,8 +84,8 @@ export async function subscribeToEntry(
return {
listen(cb: (entry: SignedRegistryEntry) => void) {
socket.on("message", (data) => {
cb(deserializeRegistryEntry(new Uint8Array(data as Buffer)));
socket.addEventListener("message", (data) => {
cb(deserializeRegistryEntry(new Uint8Array(data.data as Buffer)));
});
},
end() {