Socket
Socket
Sign inDemoInstall

@contentful/rich-text-types

Package Overview
Dependencies
Maintainers
64
Versions
81
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 14.0.0 to 14.0.1

dist/lib/emptyDocument.js

2

dist/lib/index.js

@@ -22,4 +22,6 @@ "use strict";

__export(require("./schemaConstraints"));
var emptyDocument_1 = require("./emptyDocument");
exports.EMPTY_DOCUMENT = emptyDocument_1.default;
var helpers = __importStar(require("./helpers"));
exports.helpers = helpers;
//# sourceMappingURL=index.js.map

@@ -856,2 +856,25 @@ 'use strict';

/**
* A rich text document considered to be empty.
* Any other document structure than this is not considered empty.
*/
var EMPTY_DOCUMENT = {
nodeType: BLOCKS$1.DOCUMENT,
data: {},
content: [
{
nodeType: BLOCKS$1.PARAGRAPH,
data: {},
content: [
{
nodeType: 'text',
value: '',
marks: [],
data: {},
},
],
},
],
};
/**
* Checks if the node is an instance of Inline.

@@ -883,2 +906,3 @@ */

exports.CONTAINERS = CONTAINERS;
exports.EMPTY_DOCUMENT = EMPTY_DOCUMENT;
exports.INLINES = INLINES$1;

@@ -885,0 +909,0 @@ exports.MARKS = marks;

3

dist/types/index.d.ts

@@ -8,4 +8,5 @@ import 'core-js/features/object/values';

export * from './types';
export * from './nodeTypes';
export { default as EMPTY_DOCUMENT } from './emptyDocument';
import * as helpers from './helpers';
export { helpers };
export * from './nodeTypes';
{
"name": "@contentful/rich-text-types",
"version": "14.0.0",
"version": "14.0.1",
"main": "dist/rich-text-types.es5.js",

@@ -45,3 +45,3 @@ "typings": "dist/types/index.d.ts",

},
"gitHead": "73dac52d408978684bca6bcfdd10a8ac63222c4d"
"gitHead": "e19a498179f6dc5416b1c39d941f6b2f37646575"
}

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