2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-17 19:21:20 +03:00

chore(*): update dependencies (#57)

Updated Rollup
Updated Babel
Fixed security problems with some dependencies
This commit is contained in:
Nikolay Kostyurin
2020-01-22 20:25:42 +02:00
committed by GitHub
parent cdc7f66e21
commit aac1ae0e81
52 changed files with 16569 additions and 7723 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
import { N } from './char';
const isTagNode = el => typeof el === 'object' && !!el.tag;
const isStringNode = el => typeof el === 'string';
const isEOL = el => el === N;
const isTagNode = (el) => typeof el === 'object' && !!el.tag;
const isStringNode = (el) => typeof el === 'string';
const isEOL = (el) => el === N;
const getNodeLength = (node) => {
if (isTagNode(node)) {
return node.content.reduce((count, contentNode) => count + getNodeLength(contentNode), 0);
} else if (isStringNode(node)) {
} if (isStringNode(node)) {
return node.length;
}
@@ -27,7 +27,7 @@ const appendToNode = (node, value) => {
* Replaces " to &qquot;
* @param {String} value
*/
const escapeQuote = value => value.replace(/"/g, '"');
const escapeQuote = (value) => value.replace(/"/g, '"');
/**
* Acept name and value and return valid html5 attribute string