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

@slate-serializers/html

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slate-serializers/html - npm Package Compare versions

Comparing version 2.1.6 to 2.2.0

src/lib/utilities/blocks.d.ts

19

package.json
{
"name": "@slate-serializers/html",
"version": "2.1.6",
"version": "2.2.0",
"type": "commonjs",

@@ -10,13 +10,10 @@ "dependencies": {

"domutils": "^3.1.0",
"html-entities": "^2.3.3",
"htmlparser2": "~7.2.0",
"postcss": "^8.4.24",
"postcss-js": "^4.0.1",
"slate": "^0.94.1",
"slate-hyperscript": "^0.77.0",
"@slate-serializers/dom": "2.1.6",
"@slate-serializers/utilities": "2.1.5",
"tslib": "2.5.0"
"html-entities": "^2.5.2",
"htmlparser2": "~9.1.0",
"slate": "^0.102.0",
"slate-hyperscript": "^0.100.0",
"@slate-serializers/dom": "2.2.0",
"tslib": "2.6.3"
},
"main": "./src/index.js"
}
}

@@ -10,4 +10,4 @@ "use strict";

const default_1 = require("./config/default");
const utilities_1 = require("@slate-serializers/utilities");
const whitespace_1 = require("./whitespace");
const blocks_1 = require("../../utilities/blocks");
const deserialize = ({ el, config = default_1.config, index = 0, childrenLength = 0, context = '', }) => {

@@ -57,3 +57,3 @@ var _a, _b;

isInlineEnd: Number.isInteger(childrenLength) && isLastChild,
isNextSiblingBlock: (el.next && (0, domhandler_1.isTag)(el.next) && (0, utilities_1.isBlock)(el.next.tagName)) || false,
isNextSiblingBlock: (el.next && (0, domhandler_1.isTag)(el.next) && (0, blocks_1.isBlock)(el.next.tagName)) || false,
shouldTrimWhiteSpace: config.trimWhiteSpace,

@@ -60,0 +60,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getContext = exports.isAllWhitespace = exports.minifyText = exports.processTextValue = void 0;
const utilities_1 = require("@slate-serializers/utilities");
const blocks_1 = require("./../../utilities/blocks");
const processTextValue = ({ text, context = '', isInlineStart = false, isInlineEnd = false, isNextSiblingBlock = false, shouldTrimWhiteSpace = true }) => {

@@ -45,3 +45,3 @@ let parsed = text;

}
if ((0, utilities_1.isBlock)(tagName)) {
if ((0, blocks_1.isBlock)(tagName)) {
return 'block';

@@ -48,0 +48,0 @@ }

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