metro-babel7-plugin-react-transform
Advanced tools
Comparing version 0.40.0 to 0.40.1
@@ -27,6 +27,22 @@ /** | ||
const find = require('lodash/find'); | ||
const {addDefault} = require('@babel/helper-module-imports'); | ||
function find(obj, func) { | ||
let value = undefined; | ||
if (!(obj instanceof Array)) { | ||
obj = Object.values(obj); | ||
} | ||
obj.some((v, i) => { | ||
if (func(v)) { | ||
value = v; | ||
return true; | ||
} | ||
return false; | ||
}); | ||
return value; | ||
} | ||
module.exports = function({types: t, template}) { | ||
@@ -33,0 +49,0 @@ function matchesPatterns(path, patterns) { |
{ | ||
"version": "0.40.0", | ||
"version": "0.40.1", | ||
"name": "metro-babel7-plugin-react-transform", | ||
"main": "lib/index.js", | ||
"dependencies": { | ||
"@babel/helper-module-imports": "7.0.0-beta.47", | ||
"lodash": "^4.17.5" | ||
"@babel/helper-module-imports": "7.0.0-beta.47" | ||
} | ||
} |
41649
1
602
- Removedlodash@^4.17.5