@player-ui/check-path-plugin 0.0.1-next.13 → 0.0.1-next.16

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.cjs.js CHANGED
@@ -45,7 +45,10 @@ class CheckPathPlugin {
45
45
  };
46
46
  this.viewInfo = viewInfo;
47
47
  resolver.hooks.afterResolve.tap(this.name, (value, node) => {
48
- const sourceNode = resolver.getSourceNode(node);
48
+ let sourceNode = resolver.getSourceNode(node);
49
+ if ((sourceNode == null ? void 0 : sourceNode.type) === "applicability") {
50
+ sourceNode = sourceNode.value;
51
+ }
49
52
  if (sourceNode) {
50
53
  viewInfo.resolvedMap.set(sourceNode, {
51
54
  resolved: node,
package/dist/index.esm.js CHANGED
@@ -37,7 +37,10 @@ class CheckPathPlugin {
37
37
  };
38
38
  this.viewInfo = viewInfo;
39
39
  resolver.hooks.afterResolve.tap(this.name, (value, node) => {
40
- const sourceNode = resolver.getSourceNode(node);
40
+ let sourceNode = resolver.getSourceNode(node);
41
+ if ((sourceNode == null ? void 0 : sourceNode.type) === "applicability") {
42
+ sourceNode = sourceNode.value;
43
+ }
41
44
  if (sourceNode) {
42
45
  viewInfo.resolvedMap.set(sourceNode, {
43
46
  resolved: node,
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@player-ui/check-path-plugin",
3
- "version": "0.0.1-next.13",
3
+ "version": "0.0.1-next.16",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"
7
7
  },
8
8
  "peerDependencies": {
9
- "@player-ui/player": "0.0.1-next.13"
9
+ "@player-ui/player": "0.0.1-next.16"
10
10
  },
11
11
  "dependencies": {
12
- "@player-ui/partial-match-registry": "0.0.1-next.13",
12
+ "@player-ui/partial-match-registry": "0.0.1-next.16",
13
13
  "dlv": "^1.1.3",
14
14
  "tapable-ts": "^0.1.0",
15
15
  "@babel/runtime": "7.15.4"
package/src/index.ts CHANGED
@@ -95,7 +95,10 @@ export class CheckPathPlugin implements PlayerPlugin {
95
95
  this.viewInfo = viewInfo;
96
96
 
97
97
  resolver.hooks.afterResolve.tap(this.name, (value, node) => {
98
- const sourceNode = resolver.getSourceNode(node);
98
+ let sourceNode = resolver.getSourceNode(node);
99
+ if (sourceNode?.type === 'applicability') {
100
+ sourceNode = sourceNode.value;
101
+ }
99
102
 
100
103
  if (sourceNode) {
101
104
  viewInfo.resolvedMap.set(sourceNode, {