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:
committed by
GitHub
parent
cdc7f66e21
commit
aac1ae0e81
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user