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

@blockprotocol/core

Package Overview
Dependencies
Maintainers
5
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockprotocol/core - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

dist/cjs/html.d.ts

2

dist/cjs/core-block-handler.d.ts

@@ -14,3 +14,3 @@ import { CoreHandler } from "./core-handler";

*/
private initialize;
initialize(): void;
/**

@@ -17,0 +17,0 @@ * Receives the {@link EmbedderInitMessage} sent by the embedding application,

@@ -11,3 +11,2 @@ "use strict";

super({ element, sourceType: "block" });
this.initialize();
}

@@ -38,3 +37,3 @@ /**

void this.callCallback({
message: Object.assign(Object.assign({}, message), { data: data[serviceName][messageName], messageName }),
message: Object.assign(Object.assign({}, message), { data: data[serviceName][messageName], messageName, service: serviceName }),
});

@@ -41,0 +40,0 @@ }

@@ -10,2 +10,3 @@ import { CoreHandler } from "./core-handler";

});
initialize(): void;
/**

@@ -12,0 +13,0 @@ * Update the HTML element messages are exchanged via.

@@ -12,2 +12,3 @@ "use strict";

}
initialize() { }
/**

@@ -14,0 +15,0 @@ * Update the HTML element messages are exchanged via.

@@ -64,2 +64,3 @@ import { ServiceHandler } from "./service-handler";

});
abstract initialize(): void;
private eventListener;

@@ -66,0 +67,0 @@ protected attachEventListeners(this: CoreHandler): void;

export { CoreBlockHandler } from "./core-block-handler";
export { CoreEmbedderHandler } from "./core-embedder-handler";
export { assignBlockprotocolGlobals, blockprotocolGlobals, teardownBlockprotocol, } from "./html";
export { ServiceHandler } from "./service-handler";
export type { BlockMetadata, BlockMetadataRepository, BlockVariant, JsonArray, JsonObject, JsonValue, MessageCallback, MessageData, MessageError, UnknownRecord, } from "./types";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceHandler = exports.CoreEmbedderHandler = exports.CoreBlockHandler = void 0;
exports.ServiceHandler = exports.teardownBlockprotocol = exports.blockprotocolGlobals = exports.assignBlockprotocolGlobals = exports.CoreEmbedderHandler = exports.CoreBlockHandler = void 0;
var core_block_handler_1 = require("./core-block-handler");

@@ -8,4 +8,8 @@ Object.defineProperty(exports, "CoreBlockHandler", { enumerable: true, get: function () { return core_block_handler_1.CoreBlockHandler; } });

Object.defineProperty(exports, "CoreEmbedderHandler", { enumerable: true, get: function () { return core_embedder_handler_1.CoreEmbedderHandler; } });
var html_1 = require("./html");
Object.defineProperty(exports, "assignBlockprotocolGlobals", { enumerable: true, get: function () { return html_1.assignBlockprotocolGlobals; } });
Object.defineProperty(exports, "blockprotocolGlobals", { enumerable: true, get: function () { return html_1.blockprotocolGlobals; } });
Object.defineProperty(exports, "teardownBlockprotocol", { enumerable: true, get: function () { return html_1.teardownBlockprotocol; } });
var service_handler_1 = require("./service-handler");
Object.defineProperty(exports, "ServiceHandler", { enumerable: true, get: function () { return service_handler_1.ServiceHandler; } });
//# sourceMappingURL=index.js.map

@@ -0,1 +1,2 @@

import { CoreHandler } from "./core-handler";
import { GenericMessageCallback, MessageContents, MessageData } from "./types";

@@ -9,3 +10,3 @@ /**

/** the CoreHandler this service is registered with, for passing messages via */
private readonly coreHandler;
readonly coreHandler: CoreHandler;
/** the element messages are sent via */

@@ -12,0 +13,0 @@ private readonly element;

@@ -14,3 +14,3 @@ import { CoreHandler } from "./core-handler";

*/
private initialize;
initialize(): void;
/**

@@ -17,0 +17,0 @@ * Receives the {@link EmbedderInitMessage} sent by the embedding application,

@@ -8,3 +8,2 @@ import { CoreHandler } from "./core-handler";

super({ element, sourceType: "block" });
this.initialize();
}

@@ -35,3 +34,3 @@ /**

void this.callCallback({
message: Object.assign(Object.assign({}, message), { data: data[serviceName][messageName], messageName }),
message: Object.assign(Object.assign({}, message), { data: data[serviceName][messageName], messageName, service: serviceName }),
});

@@ -38,0 +37,0 @@ }

@@ -10,2 +10,3 @@ import { CoreHandler } from "./core-handler";

});
initialize(): void;
/**

@@ -12,0 +13,0 @@ * Update the HTML element messages are exchanged via.

@@ -9,2 +9,3 @@ import { CoreHandler } from "./core-handler";

}
initialize() { }
/**

@@ -11,0 +12,0 @@ * Update the HTML element messages are exchanged via.

@@ -64,2 +64,3 @@ import { ServiceHandler } from "./service-handler";

});
abstract initialize(): void;
private eventListener;

@@ -66,0 +67,0 @@ protected attachEventListeners(this: CoreHandler): void;

export { CoreBlockHandler } from "./core-block-handler";
export { CoreEmbedderHandler } from "./core-embedder-handler";
export { assignBlockprotocolGlobals, blockprotocolGlobals, teardownBlockprotocol, } from "./html";
export { ServiceHandler } from "./service-handler";
export type { BlockMetadata, BlockMetadataRepository, BlockVariant, JsonArray, JsonObject, JsonValue, MessageCallback, MessageData, MessageError, UnknownRecord, } from "./types";
export { CoreBlockHandler } from "./core-block-handler";
export { CoreEmbedderHandler } from "./core-embedder-handler";
export { assignBlockprotocolGlobals, blockprotocolGlobals, teardownBlockprotocol, } from "./html";
export { ServiceHandler } from "./service-handler";
//# sourceMappingURL=index.js.map

@@ -0,1 +1,2 @@

import { CoreHandler } from "./core-handler";
import { GenericMessageCallback, MessageContents, MessageData } from "./types";

@@ -9,3 +10,3 @@ /**

/** the CoreHandler this service is registered with, for passing messages via */
private readonly coreHandler;
readonly coreHandler: CoreHandler;
/** the element messages are sent via */

@@ -12,0 +13,0 @@ private readonly element;

{
"name": "@blockprotocol/core",
"version": "0.0.5",
"version": "0.0.6",
"description": "Implementation of the Block Protocol Core specification for blocks and embedding applications",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,4 +5,4 @@ # Block Protocol Core handler

It is currently for use only as a dependency of packages implementing Block Protocol services.
It is currently for use only as a dependency of packages implementing Block Protocol services, and to export basic types relating to block metadata.
See the `@blockprotocol/graph` package for an example.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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