New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@automerge/automerge-repo-network-messagechannel

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automerge/automerge-repo-network-messagechannel - npm Package Compare versions

Comparing version 1.0.0-alpha.4 to 1.0.0-alpha.5

3

dist/index.d.ts

@@ -11,4 +11,3 @@ import { type Message, NetworkAdapter, type PeerId } from "@automerge/automerge-repo";

announceConnection(peerId: PeerId): void;
join(): void;
leave(): void;
disconnect(): void;
}

@@ -15,0 +14,0 @@ interface MessageChannelNetworkAdapterConfig {

@@ -56,4 +56,7 @@ import { NetworkAdapter, } from "@automerge/automerge-repo";

});
this.join();
// Mark this messagechannel as ready after 50 ms, at this point there
this.messagePortRef.postMessage({
senderId: this.peerId,
type: "arrive",
});
// Mark this messagechannel as ready after 50 ms, at this point there
// must be something weird going on on the other end to cause us to receive

@@ -87,9 +90,3 @@ // no response

}
join() {
this.messagePortRef.postMessage({
senderId: this.peerId,
type: "arrive",
});
}
leave() {
disconnect() {
// TODO

@@ -96,0 +93,0 @@ throw new Error("Unimplemented: leave on MessagePortNetworkAdapter");

{
"name": "@automerge/automerge-repo-network-messagechannel",
"version": "1.0.0-alpha.4",
"version": "1.0.0-alpha.5",
"description": "MessageChannel network adapter for Automerge Repo",

@@ -17,6 +17,6 @@ "repository": "https://github.com/automerge/automerge-repo",

"dependencies": {
"@automerge/automerge-repo": "^1.0.0-alpha.4"
"@automerge/automerge-repo": "^1.0.0-alpha.5"
},
"peerDependencies": {
"@automerge/automerge": "^2.1.0-alpha.12"
"@automerge/automerge": "^2.1.0-alpha.13"
},

@@ -34,3 +34,3 @@ "watch": {

},
"gitHead": "fbf71f0c3aaa2786a4e279f336f01d665f53ce5b"
"gitHead": "9cd9be160ebda37c8f0d70f2d5cadea5b951a3c3"
}

@@ -79,5 +79,9 @@ import {

})
this.join()
// Mark this messagechannel as ready after 50 ms, at this point there
this.messagePortRef.postMessage({
senderId: this.peerId,
type: "arrive",
})
// Mark this messagechannel as ready after 50 ms, at this point there
// must be something weird going on on the other end to cause us to receive

@@ -120,10 +124,3 @@ // no response

join() {
this.messagePortRef.postMessage({
senderId: this.peerId,
type: "arrive",
})
}
leave() {
disconnect() {
// TODO

@@ -130,0 +127,0 @@ throw new Error("Unimplemented: leave on MessagePortNetworkAdapter")

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc