babel-plugin-transform-taroapi 3.6.6-alpha.3 → 3.6.7-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12,8 +12,8 @@ const plugin = function (babel) {
12
12
  if (!scheme)
13
13
  return false;
14
14
  const o = (0, lodash_1.set)({}, scheme, true);
15
- return (0, lodash_1.isMatchWith)(definition, o, (a, _) => {
16
- if (a === '*')
15
+ return (0, lodash_1.isMatchWith)(definition, o, (a, b) => {
16
+ if (a === '*' || b === true)
17
17
  return true;
18
18
  });
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-transform-taroapi",
3
- "version": "3.6.6-alpha.3",
3
+ "version": "3.6.7-alpha.0",
4
4
  "main": "dist/index.js",
5
5
  "dependencies": {
6
6
  "lodash": "^4.17.21"
package/src/index.ts CHANGED
@@ -23,8 +23,8 @@ const plugin = function (babel: typeof BabelCore): BabelCore.PluginObj<IState> {
23
23
  function canIUse (definition, scheme = '') {
24
24
  if (!scheme) return false
25
25
  const o = set({}, scheme, true)
26
- return isMatchWith(definition, o, (a, _) => {
27
- if (a === '*') return true
26
+ return isMatchWith(definition, o, (a, b) => {
27
+ if (a === '*' || b === true) return true
28
28
  })
29
29
  }
30
30