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');
|
||||
Generated
+19
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "@bbob/core",
|
||||
"version": "2.5.4",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"@bbob/parser": {
|
||||
"version": "2.5.4",
|
||||
"requires": {
|
||||
"@bbob/plugin-helper": "^2.5.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@bbob/plugin-helper": {
|
||||
"version": "2.5.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,15 +38,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"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
@@ -56,7 +56,7 @@
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "3.2 KB"
|
||||
"maxSize": "3.8 KB"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable no-plusplus */
|
||||
const isObj = value => (typeof value === 'object');
|
||||
const isBool = value => (typeof value === 'boolean');
|
||||
const isObj = (value) => (typeof value === 'object');
|
||||
const isBool = (value) => (typeof value === 'boolean');
|
||||
|
||||
function iterate(t, cb) {
|
||||
const tree = t;
|
||||
@@ -26,7 +26,7 @@ function same(expected, actual) {
|
||||
}
|
||||
|
||||
if (Array.isArray(expected)) {
|
||||
return expected.every(exp => [].some.call(actual, act => same(exp, act)));
|
||||
return expected.every((exp) => [].some.call(actual, (act) => same(exp, act)));
|
||||
}
|
||||
|
||||
return Object.keys(expected).every((key) => {
|
||||
@@ -56,7 +56,7 @@ function match(expression, cb) {
|
||||
|
||||
return node;
|
||||
})
|
||||
: iterate(this, node => (same(expression, node) ? cb(node) : node));
|
||||
: iterate(this, (node) => (same(expression, node) ? cb(node) : node));
|
||||
}
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user