🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@deepnote/blocks

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepnote/blocks - npm Package Compare versions

Comparing version
4.1.0
to
4.2.0
+27
-3
dist/index.cjs

@@ -138,3 +138,3 @@ //#region rolldown:runtime

//#endregion
//#region src/deserialize-file/deepnote-file-schema.ts
//#region src/deepnote-file/deepnote-file-schema.ts
/** Preprocesses any content value to empty string for blocks that don't use content */

@@ -544,3 +544,3 @@ const emptyContent = () => zod.z.preprocess(() => "", zod.z.literal("").optional());

//#endregion
//#region src/deserialize-file/parse-yaml.ts
//#region src/deepnote-file/parse-yaml.ts
/**

@@ -635,3 +635,3 @@ * Validates UTF-8 encoding from raw bytes before decoding to string.

//#endregion
//#region src/deserialize-file/deserialize-deepnote-file.ts
//#region src/deepnote-file/deserialize-deepnote-file.ts
/**

@@ -653,2 +653,24 @@ * Deserialize a YAML string into a DeepnoteFile object.

//#endregion
//#region src/deepnote-file/serialize-deepnote-file.ts
const yamlOptions = {
indent: 2,
lineWidth: 120,
blockQuote: "folded",
defaultStringType: "PLAIN",
defaultKeyType: "PLAIN"
};
/**
* Serialize a DeepnoteFile to a YAML string.
*/
function serializeDeepnoteFile(file) {
return (0, yaml.stringify)(deepnoteFileSchema.parse(file), yamlOptions);
}
/**
* Serialize a DeepnoteSnapshot to a YAML string.
*/
function serializeDeepnoteSnapshot(snapshot) {
return (0, yaml.stringify)(deepnoteSnapshotSchema.parse(snapshot), yamlOptions);
}
//#endregion
//#region src/blocks/image-blocks.ts

@@ -1196,2 +1218,4 @@ function escapeHtmlAttribute(value) {

exports.parseYaml = parseYaml;
exports.serializeDeepnoteFile = serializeDeepnoteFile;
exports.serializeDeepnoteSnapshot = serializeDeepnoteSnapshot;
exports.stripMarkdown = stripMarkdown;
import { z } from "zod";
import { parseDocument } from "yaml";
import { parseDocument, stringify } from "yaml";
import { dedent } from "ts-dedent";

@@ -112,3 +112,3 @@

//#endregion
//#region src/deserialize-file/deepnote-file-schema.ts
//#region src/deepnote-file/deepnote-file-schema.ts
/** Preprocesses any content value to empty string for blocks that don't use content */

@@ -518,3 +518,3 @@ const emptyContent = () => z.preprocess(() => "", z.literal("").optional());

//#endregion
//#region src/deserialize-file/parse-yaml.ts
//#region src/deepnote-file/parse-yaml.ts
/**

@@ -609,3 +609,3 @@ * Validates UTF-8 encoding from raw bytes before decoding to string.

//#endregion
//#region src/deserialize-file/deserialize-deepnote-file.ts
//#region src/deepnote-file/deserialize-deepnote-file.ts
/**

@@ -627,2 +627,24 @@ * Deserialize a YAML string into a DeepnoteFile object.

//#endregion
//#region src/deepnote-file/serialize-deepnote-file.ts
const yamlOptions = {
indent: 2,
lineWidth: 120,
blockQuote: "folded",
defaultStringType: "PLAIN",
defaultKeyType: "PLAIN"
};
/**
* Serialize a DeepnoteFile to a YAML string.
*/
function serializeDeepnoteFile(file) {
return stringify(deepnoteFileSchema.parse(file), yamlOptions);
}
/**
* Serialize a DeepnoteSnapshot to a YAML string.
*/
function serializeDeepnoteSnapshot(snapshot) {
return stringify(deepnoteSnapshotSchema.parse(snapshot), yamlOptions);
}
//#endregion
//#region src/blocks/image-blocks.ts

@@ -1145,2 +1167,2 @@ function escapeHtmlAttribute(value) {

//#endregion
export { DeepnoteError, EncodingError, INPUT_BLOCK_TYPES, InvalidValueError, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, getSqlEnvVarName, isExecutableBlock, isExecutableBlockType, parseYaml, stripMarkdown };
export { DeepnoteError, EncodingError, INPUT_BLOCK_TYPES, InvalidValueError, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, getSqlEnvVarName, isExecutableBlock, isExecutableBlockType, parseYaml, serializeDeepnoteFile, serializeDeepnoteSnapshot, stripMarkdown };
+1
-1
{
"name": "@deepnote/blocks",
"version": "4.1.0",
"version": "4.2.0",
"description": "",

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display