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
+4 -4
View File
@@ -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 {