Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
mock-block-dock
Advanced tools
A component which provides mocks for testing Block Protocol blocks.
When developing a block, wrap it in the embedder and pass your block its initial props:
<MockBlockDock>
<TestBlock {...props} />
</MockBlockDock>
The embedder will automatically pass the following Block Protocol functions to your block:
getEntities
createEntities
deleteEntities
updateEntities
getLinks
createLinks
deleteLinks
updateLinks
uploadFile
For example, to update your block's props, get entityId
and updateEntities
from props and call:
updateEntities?.([{ entityId, data: { ...newProps } }]);
Your block will be re-rendered with its new properties.
It will also pass linkGroups
and linkedEntities
, which will be populated once you create links between entities using createLinks
(see linking entities for more).
MockBlockDock
is automatically included in block-template, which you can copy via create-block-app
Only a subset of functionality listed in the Block Protocol spec is currently supported.
We will be adding more in the coming weeks.
FAQs
A mock embedding application for Block Protocol blocks
We found that mock-block-dock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.