wao 0.15.5 → 0.15.6

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/cjs/utils.js CHANGED
@@ -299,7 +299,6 @@ var _getTagVal2 = function _getTagVal(get, res, from) {
299
299
  _step5;
300
300
  try {
301
301
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
302
- var _v$Tags2;
303
302
  var v = _step5.value;
304
303
  if (_typeof(_get) === "object" && (0, _ramda.isNil)(_get.name) && (0, _ramda.isNil)(_get.data)) {
305
304
  _get.data = true;
@@ -314,9 +313,6 @@ var _getTagVal2 = function _getTagVal(get, res, from) {
314
313
  } catch (e) {
315
314
  out = null;
316
315
  }
317
- if (out !== null && typeof _get.match === "function") {
318
- if (!_get.match(out, i, res)) out = null;
319
- }
320
316
  } else if (_typeof(_get) === "object" && typeof _get.name === "string") {
321
317
  var _v$Tags;
322
318
  var _from2 = null;
@@ -328,10 +324,13 @@ var _getTagVal2 = function _getTagVal(get, res, from) {
328
324
  } catch (e) {
329
325
  out = null;
330
326
  }
331
- if (out !== null && typeof _get.match === "function") {
332
- if (!_get.match(out, i, res)) out = null;
333
- }
334
- } else out = getTag((_v$Tags2 = v.Tags) !== null && _v$Tags2 !== void 0 ? _v$Tags2 : [], _get);
327
+ } else {
328
+ var _v$Tags2;
329
+ out = getTag((_v$Tags2 = v.Tags) !== null && _v$Tags2 !== void 0 ? _v$Tags2 : [], _get);
330
+ }
331
+ if (out !== null && typeof _get.match === "function") {
332
+ if (!_get.match(out, i, res)) out = null;
333
+ }
335
334
  if (out) break;
336
335
  i++;
337
336
  }
package/esm/utils.js CHANGED
@@ -186,9 +186,6 @@ const _getTagVal = (get, res, from) => {
186
186
  } catch (e) {
187
187
  out = null
188
188
  }
189
- if (out !== null && typeof _get.match === "function") {
190
- if (!_get.match(out, i, res)) out = null
191
- }
192
189
  } else if (typeof _get === "object" && typeof _get.name === "string") {
193
190
  let _from = null
194
191
  if (is(Object, _get) && _get.from) _from = _get.from
@@ -199,10 +196,12 @@ const _getTagVal = (get, res, from) => {
199
196
  } catch (e) {
200
197
  out = null
201
198
  }
202
- if (out !== null && typeof _get.match === "function") {
203
- if (!_get.match(out, i, res)) out = null
204
- }
205
- } else out = getTag(v.Tags ?? [], _get)
199
+ } else {
200
+ out = getTag(v.Tags ?? [], _get)
201
+ }
202
+ if (out !== null && typeof _get.match === "function") {
203
+ if (!_get.match(out, i, res)) out = null
204
+ }
206
205
  if (out) break
207
206
  i++
208
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wao",
3
- "version": "0.15.5",
3
+ "version": "0.15.6",
4
4
  "bin": {
5
5
  "wao": "./cjs/cli.js",
6
6
  "wao-esm": "./esm/cli.js"