@player-ui/check-path-plugin 0.14.1-next.6 → 0.14.1

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.
@@ -430,7 +430,7 @@ var CheckPathPlugin = function() {
430
430
  }
431
431
  }
432
432
  };
433
- var createMatcher = function createMatcher(partialObj) {
433
+ var createObjectMatcher = function createObjectMatcher(partialObj) {
434
434
  var pairs = traverseObj(partialObj);
435
435
  var matchFunction = function(searchObj) {
436
436
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
@@ -1495,17 +1495,17 @@ var CheckPathPlugin = function() {
1495
1495
  });
1496
1496
  return batchTxn;
1497
1497
  };
1498
- var createMatcher2 = // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/check-path/core/src/index.ts
1499
- function createMatcher2(match) {
1498
+ var createMatcher = // ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/plugins/check-path/core/src/index.ts
1499
+ function createMatcher(match) {
1500
1500
  if (typeof match === "string" || typeof match === "number") {
1501
- return createMatcher({
1501
+ return createObjectMatcher({
1502
1502
  type: match
1503
1503
  });
1504
1504
  }
1505
1505
  if (typeof match === "function") {
1506
1506
  return match;
1507
1507
  }
1508
- return createMatcher(match);
1508
+ return createObjectMatcher(match);
1509
1509
  };
1510
1510
  var getParent = function getParent(node, viewInfo) {
1511
1511
  var working = node;
@@ -2554,7 +2554,7 @@ var CheckPathPlugin = function() {
2554
2554
  {
2555
2555
  /** Add match -> value mapping to the registry */ key: "set",
2556
2556
  value: function set(match, value) {
2557
- var matcher = (typeof match === "undefined" ? "undefined" : _type_of(match)) === "object" ? createMatcher(match) : createBasicMatcher(match);
2557
+ var matcher = (typeof match === "undefined" ? "undefined" : _type_of(match)) === "object" ? createObjectMatcher(match) : createBasicMatcher(match);
2558
2558
  this.store.insert({
2559
2559
  key: match,
2560
2560
  value: value,
@@ -7917,7 +7917,7 @@ var CheckPathPlugin = function() {
7917
7917
  if (depth++ >= 50) {
7918
7918
  throw new Error("Recursion depth exceeded. Check for cycles in the AST graph");
7919
7919
  }
7920
- var matcher = createMatcher2(parentQuery);
7920
+ var matcher = createMatcher(parentQuery);
7921
7921
  var resolved = this.getAssetFromAssetNode(potentialMatch);
7922
7922
  if (resolved && matcher(resolved)) {
7923
7923
  if (queryArray.length === 0) {
@@ -7994,7 +7994,7 @@ var CheckPathPlugin = function() {
7994
7994
  return true;
7995
7995
  }
7996
7996
  var _query = _to_array(query), first = _query[0], rest = _query.slice(1);
7997
- var matcher = createMatcher2(first);
7997
+ var matcher = createMatcher(first);
7998
7998
  if (node.type === NodeType.Asset || node.type === NodeType.View || node.type === NodeType.Applicability) {
7999
7999
  var resolvedValue = this.getResolvedValue(node);
8000
8000
  var _ref;
@@ -8109,7 +8109,7 @@ var CheckPathPlugin = function() {
8109
8109
  path = _to_consumable_array((_childProp_path = childProp === null || childProp === void 0 ? void 0 : childProp.path) !== null && _childProp_path !== void 0 ? _childProp_path : []).concat(_to_consumable_array(path));
8110
8110
  }
8111
8111
  if (parentQuery) {
8112
- var matcher = createMatcher2(parentQuery);
8112
+ var matcher = createMatcher(parentQuery);
8113
8113
  if (matcher(this.getResolvedValue(parent))) {
8114
8114
  parentQuery = queryArray.shift();
8115
8115
  if (!parentQuery) return path;