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

@contentful/rich-text-types

Package Overview
Dependencies
Maintainers
45
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 4.2.0 to 5.0.0

19

dist/lib/__test__/index.test.js

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

nodeType: blocks_1.default.DOCUMENT,
nodeClass: 'document',
data: {},

@@ -19,3 +18,2 @@ content: [],

nodeType: blocks_1.default.DOCUMENT,
nodeClass: 'document',
data: {},

@@ -25,3 +23,2 @@ content: [

nodeType: faker_1.default.name.title(),
nodeClass: 'block',
data: {},

@@ -38,3 +35,2 @@ content: [],

nodeType: blocks_1.default.PARAGRAPH,
nodeClass: 'block',
data: {},

@@ -47,3 +43,2 @@ content: [],

nodeType: blocks_1.default.PARAGRAPH,
nodeClass: 'block',
data: {},

@@ -53,3 +48,2 @@ content: [

nodeType: faker_1.default.name.title(),
nodeClass: 'inline',
data: {},

@@ -64,7 +58,6 @@ content: [],

nodeType: blocks_1.default.PARAGRAPH,
nodeClass: 'block',
data: {},
content: [
{
nodeClass: 'text',
nodeType: 'text',
value: 'hi',

@@ -82,3 +75,2 @@ data: {},

nodeType: inlines_1.default.HYPERLINK,
nodeClass: 'inline',
data: {},

@@ -91,3 +83,2 @@ content: [],

nodeType: inlines_1.default.HYPERLINK,
nodeClass: 'inline',
data: {},

@@ -97,3 +88,2 @@ content: [

nodeType: faker_1.default.name.title(),
nodeClass: 'inline',
data: {},

@@ -108,7 +98,6 @@ content: [],

nodeType: faker_1.default.name.title(),
nodeClass: 'inline',
data: {},
content: [
{
nodeClass: 'text',
nodeType: 'text',
value: 'hi',

@@ -125,3 +114,3 @@ data: {},

var text = {
nodeClass: 'text',
nodeType: 'text',
value: '',

@@ -134,3 +123,3 @@ data: {},

var textWithMarks = {
nodeClass: 'text',
nodeType: 'text',
data: {},

@@ -137,0 +126,0 @@ value: '',

@@ -1,22 +0,17 @@

export declare type NodeClass = 'document' | 'block' | 'inline' | 'text';
export declare type NodeData = Record<string, any>;
export interface Node {
readonly nodeType?: string;
readonly nodeClass: NodeClass;
readonly nodeType: string;
data: NodeData;
}
export interface Document extends Node {
nodeClass: 'document';
content: Block[];
}
export interface Block extends Node {
nodeClass: 'block';
content: Array<Block | Inline | Text>;
}
export interface Inline extends Node {
nodeClass: 'inline';
content: Array<Inline | Text>;
}
export interface Text extends Node {
nodeClass: 'text';
nodeType: 'text';
value: string;

@@ -23,0 +18,0 @@ marks: Mark[];

{
"name": "@contentful/rich-text-types",
"version": "4.2.0",
"version": "5.0.0",
"description": "",

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

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