@blockprotocol/core
Advanced tools
Comparing version 0.0.12-canary.0 to 0.0.12-canary.1
@@ -30,2 +30,3 @@ "use strict"; | ||
this.constructor.instanceMap.set(element, this); | ||
console.log("inside constructor", this.constructor.instanceMap, this); | ||
this.attachEventListeners(); | ||
@@ -57,2 +58,3 @@ } | ||
(_a = handler.messageCallbacksByService)[serviceName] ?? (_a[serviceName] = new Map()); | ||
console.log({ handler, map: this.instanceMap }); | ||
return handler; | ||
@@ -86,3 +88,2 @@ } | ||
this.messageCallbacksByService[serviceName].set(messageName, callback); | ||
console.log("Registering ", messageName, serviceName); | ||
} | ||
@@ -89,0 +90,0 @@ /** |
@@ -27,2 +27,3 @@ import { v4 as uuid } from "uuid"; | ||
this.constructor.instanceMap.set(element, this); | ||
console.log("inside constructor", this.constructor.instanceMap, this); | ||
this.attachEventListeners(); | ||
@@ -54,2 +55,3 @@ } | ||
(_a = handler.messageCallbacksByService)[serviceName] ?? (_a[serviceName] = new Map()); | ||
console.log({ handler, map: this.instanceMap }); | ||
return handler; | ||
@@ -83,3 +85,2 @@ } | ||
this.messageCallbacksByService[serviceName].set(messageName, callback); | ||
console.log("Registering ", messageName, serviceName); | ||
} | ||
@@ -86,0 +87,0 @@ /** |
{ | ||
"name": "@blockprotocol/core", | ||
"version": "0.0.12-canary.0", | ||
"version": "0.0.12-canary.1", | ||
"description": "Implementation of the Block Protocol Core specification for blocks and embedding applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125127
2141