Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/structured-text-types

Package Overview
Dependencies
Maintainers
48
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/structured-text-types - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0

15

dist/lib/__test__/index.test.js

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

nodeClass: 'document',
data: {},
content: [],

@@ -19,2 +20,3 @@ };

nodeClass: 'document',
data: {},
content: [

@@ -24,2 +26,3 @@ {

nodeClass: 'block',
data: {},
content: [],

@@ -36,2 +39,3 @@ },

nodeClass: 'block',
data: {},
content: [],

@@ -44,2 +48,3 @@ };

nodeClass: 'block',
data: {},
content: [

@@ -49,2 +54,3 @@ {

nodeClass: 'inline',
data: {},
content: [],

@@ -59,2 +65,3 @@ },

nodeClass: 'block',
data: {},
content: [

@@ -64,2 +71,3 @@ {

value: 'hi',
data: {},
marks: [],

@@ -76,2 +84,3 @@ },

nodeClass: 'inline',
data: {},
content: [],

@@ -84,2 +93,3 @@ };

nodeClass: 'inline',
data: {},
content: [

@@ -89,2 +99,3 @@ {

nodeClass: 'inline',
data: {},
content: [],

@@ -99,2 +110,3 @@ },

nodeClass: 'inline',
data: {},
content: [

@@ -104,2 +116,3 @@ {

value: 'hi',
data: {},
marks: [],

@@ -116,2 +129,3 @@ },

value: '',
data: {},
marks: [],

@@ -123,2 +137,3 @@ };

nodeClass: 'text',
data: {},
value: '',

@@ -125,0 +140,0 @@ marks: [{ type: 'bold' }],

6

dist/lib/schemaConstraints.js

@@ -26,3 +26,7 @@ "use strict";

*/
exports.VOID_BLOCKS = [blocks_1.default.HR, blocks_1.default.EMBEDDED_ENTRY];
exports.VOID_BLOCKS = [
blocks_1.default.HR,
blocks_1.default.EMBEDDED_ENTRY,
blocks_1.default.EMBEDDED_ASSET,
];
/**

@@ -29,0 +33,0 @@ * Dictionary of all container block types, and the set block types they accept as children.

@@ -68,3 +68,7 @@ 'use strict';

*/
var VOID_BLOCKS = [BLOCKS.HR, BLOCKS.EMBEDDED_ENTRY];
var VOID_BLOCKS = [
BLOCKS.HR,
BLOCKS.EMBEDDED_ENTRY,
BLOCKS.EMBEDDED_ASSET,
];
/**

@@ -71,0 +75,0 @@ * Dictionary of all container block types, and the set block types they accept as children.

3

dist/types/types.d.ts
export declare type NodeClass = 'document' | 'block' | 'inline' | 'text';
export declare type NodeData = Record<string, any>;
export interface Node {
readonly nodeType?: string;
readonly nodeClass: NodeClass;
data?: Record<string, any>;
data: NodeData;
}

@@ -7,0 +8,0 @@ export interface Document extends Node {

{
"name": "@contentful/structured-text-types",
"version": "3.3.0",
"version": "3.4.0",
"description": "",

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

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