New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/rich-text-plain-text-renderer

Package Overview
Dependencies
Maintainers
42
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/rich-text-plain-text-renderer - npm Package Compare versions

Comparing version 12.1.2 to 13.0.0

13

dist/lib/__test__/index.test.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var rich_text_types_1 = require("@contentful/rich-text-types");
var index_1 = __importDefault(require("../index"));
var index_1 = require("../index");
describe('documentToPlainTextString', function () {

@@ -15,3 +12,3 @@ it('returns empty string when given an empty document', function () {

};
expect(index_1.default.documentToPlainTextString(document)).toEqual('');
expect(index_1.documentToPlainTextString(document)).toEqual('');
});

@@ -49,3 +46,3 @@ it('handles a simple case', function () {

};
expect(index_1.default.documentToPlainTextString(document)).toEqual('Trout is a seafood delicacy.');
expect(index_1.documentToPlainTextString(document)).toEqual('Trout is a seafood delicacy.');
});

@@ -162,3 +159,3 @@ describe('rendering deeply nested documents', function () {

it('handles nested nodes gracefully', function () {
expect(index_1.default.documentToPlainTextString(document)).toEqual([
expect(index_1.documentToPlainTextString(document)).toEqual([
'This is text.',

@@ -172,3 +169,3 @@ 'This is text with some marks.',

it('defers to the user-supplied block divisor', function () {
expect(index_1.default.documentToPlainTextString(document, '\n\n')).toEqual([
expect(index_1.documentToPlainTextString(document, '\n\n')).toEqual([
'This is text. This is text with some marks. This is text from a bolded hyperlink.',

@@ -175,0 +172,0 @@ 'This is a list element in a separate block with a link with marks.',

@@ -102,5 +102,3 @@ "use strict";

}
exports.default = {
documentToPlainTextString: documentToPlainTextString,
};
exports.documentToPlainTextString = documentToPlainTextString;
//# sourceMappingURL=index.js.map
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function unwrapExports (x) {

@@ -29,3 +31,3 @@ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x;

var _core = createCommonjsModule$$1(function (module) {
var core = module.exports = { version: '2.6.0' };
var core = module.exports = { version: '2.6.2' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef

@@ -302,3 +304,3 @@ });

mode: 'global',
copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});

@@ -632,7 +634,4 @@ });

}
var index = {
documentToPlainTextString: documentToPlainTextString,
};
module.exports = index;
exports.documentToPlainTextString = documentToPlainTextString;
//# sourceMappingURL=rich-text-plain-text-renderer.es5.js.map

@@ -8,6 +8,2 @@ import { Block, Inline } from '@contentful/rich-text-types';

*/
declare function documentToPlainTextString(rootNode: Block | Inline, blockDivisor?: string): string;
declare const _default: {
documentToPlainTextString: typeof documentToPlainTextString;
};
export default _default;
export declare function documentToPlainTextString(rootNode: Block | Inline, blockDivisor?: string): string;
{
"name": "@contentful/rich-text-plain-text-renderer",
"version": "12.1.2",
"version": "13.0.0",
"main": "dist/rich-text-plain-text-renderer.es5.js",

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

"dependencies": {
"@contentful/rich-text-types": "^12.1.2"
"@contentful/rich-text-types": "^13.0.0"
},

@@ -41,3 +41,3 @@ "devDependencies": {

},
"gitHead": "8cf8bb70502ae01ca8c4b88db96f421ad8a25d24"
"gitHead": "ec8d032ca6dabb4c5a857611739cd0e5f34b52e5"
}

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