mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-20 20:00:33 +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,4 +1,3 @@
|
||||
package-lock.json
|
||||
coverage
|
||||
dist
|
||||
lib
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
module.exports = require('../../babel.config');
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "@bbob/plugin-helper",
|
||||
"version": "2.5.4",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
@@ -23,15 +23,15 @@
|
||||
"url": "git://github.com/JiLiZART/bbob.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build:commonjs": "../../node_modules/.bin/cross-env BABEL_ENV=commonjs ../../node_modules/.bin/babel src --out-dir lib",
|
||||
"build:es": "../../node_modules/.bin/cross-env BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es",
|
||||
"build:umd": "../../node_modules/.bin/cross-env BABEL_ENV=rollup NODE_ENV=development ../../node_modules/.bin/rollup --config ../../rollup.config.js",
|
||||
"build:commonjs": "../../node_modules/.bin/cross-env BABEL_ENV=commonjs NODE_ENV=production ../../node_modules/.bin/babel src --out-dir lib",
|
||||
"build:es": "../../node_modules/.bin/cross-env BABEL_ENV=es NODE_ENV=production ../../node_modules/.bin/babel src --out-dir es",
|
||||
"build:umd": "../../node_modules/.bin/cross-env BABEL_ENV=rollup NODE_ENV=production ../../node_modules/.bin/rollup --config ../../rollup.config.js",
|
||||
"build": "npm run build:commonjs && npm run build:es && npm run build:umd",
|
||||
"test": "../../node_modules/.bin/jest --",
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize",
|
||||
"size": "../../node_modules/.bin/cross-env NODE_ENV=production ../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/cross-env NODE_ENV=production ../../node_modules/.bin/bundlesize",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"size-limit": [
|
||||
@@ -42,7 +42,7 @@
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "500 B"
|
||||
"maxSize": "580 B"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
|
||||
@@ -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