MCPcopy Index your code
hub / github.com/deepnote/deepnote / getBlockContent

Function getBlockContent

packages/cli/src/commands/diff.ts:286–291  ·  view source on GitHub ↗

* Get the content of a block for comparison.

(block: DeepnoteBlock)

Source from the content-addressed store, hash-verified

284 * Get the content of a block for comparison.
285 */
286function getBlockContent(block: DeepnoteBlock): string | undefined {
287 if ('content' in block && typeof block.content === 'string') {
288 return block.content
289 }
290 return undefined
291}
292
293/**
294 * Output diff as JSON.

Callers 1

computeBlockDiffsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected