@blockprotocol/core
Advanced tools
Comparing version 0.0.8 to 0.0.9-canary.1
@@ -103,3 +103,3 @@ "use strict"; | ||
} | ||
const fullMessage = Object.assign(Object.assign({}, partialMessage), { requestId: requestId !== null && requestId !== void 0 ? requestId : (0, uuid_1.v4)(), respondedToBy: "respondedToBy" in args ? args.respondedToBy : undefined, service: sender.serviceName, source: this.sourceType }); | ||
const fullMessage = Object.assign(Object.assign({}, partialMessage), { requestId: requestId !== null && requestId !== void 0 ? requestId : (0, uuid_1.v4)(), respondedToBy: "respondedToBy" in args ? args.respondedToBy : undefined, service: sender.serviceName, source: this.sourceType, timestamp: new Date().toISOString() }); | ||
const event = new CustomEvent(CoreHandler.customEventName, { | ||
@@ -106,0 +106,0 @@ bubbles: true, |
@@ -56,3 +56,3 @@ import { CoreHandler } from "./core-handler"; | ||
/** | ||
* The dependencies a block relies on but expects the embedding application to provide, e.g. { "react": "^17.0.2" } | ||
* The dependencies a block relies on but expects the embedding application to provide, e.g. { "react": "^18.0.0" } | ||
*/ | ||
@@ -118,2 +118,3 @@ externals?: JsonObject; | ||
source: "block" | "embedder"; | ||
timestamp: string; | ||
} | ||
@@ -120,0 +121,0 @@ export declare type MessageCallback<InputData, InputErrorCode extends string | null, ReturnData extends any | null = null, ReturnErrorCode extends ReturnData extends null ? null : string | null = null> = { |
@@ -100,3 +100,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
const fullMessage = Object.assign(Object.assign({}, partialMessage), { requestId: requestId !== null && requestId !== void 0 ? requestId : uuid(), respondedToBy: "respondedToBy" in args ? args.respondedToBy : undefined, service: sender.serviceName, source: this.sourceType }); | ||
const fullMessage = Object.assign(Object.assign({}, partialMessage), { requestId: requestId !== null && requestId !== void 0 ? requestId : uuid(), respondedToBy: "respondedToBy" in args ? args.respondedToBy : undefined, service: sender.serviceName, source: this.sourceType, timestamp: new Date().toISOString() }); | ||
const event = new CustomEvent(CoreHandler.customEventName, { | ||
@@ -103,0 +103,0 @@ bubbles: true, |
@@ -56,3 +56,3 @@ import { CoreHandler } from "./core-handler"; | ||
/** | ||
* The dependencies a block relies on but expects the embedding application to provide, e.g. { "react": "^17.0.2" } | ||
* The dependencies a block relies on but expects the embedding application to provide, e.g. { "react": "^18.0.0" } | ||
*/ | ||
@@ -118,2 +118,3 @@ externals?: JsonObject; | ||
source: "block" | "embedder"; | ||
timestamp: string; | ||
} | ||
@@ -120,0 +121,0 @@ export declare type MessageCallback<InputData, InputErrorCode extends string | null, ReturnData extends any | null = null, ReturnErrorCode extends ReturnData extends null ? null : string | null = null> = { |
{ | ||
"name": "@blockprotocol/core", | ||
"version": "0.0.8", | ||
"version": "0.0.9-canary.1", | ||
"description": "Implementation of the Block Protocol Core specification for blocks and embedding applications", | ||
@@ -44,4 +44,4 @@ "keywords": [ | ||
"rimraf": "^3.0.2", | ||
"typescript": "4.7.2" | ||
"typescript": "4.7.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
127500
2155
3