@riebeckite/plugin-diagnostics 0.0.5 → 0.0.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/dist/bin.js CHANGED
@@ -712,7 +712,7 @@ function checkPublishBoundary(source, options, diagnostics) {
712
712
  const position = new LineMapper(note.markdown);
713
713
  for (const match of getWikilinkMatches(note.markdown)) {
714
714
  const resolved = resolveWikilinkTarget(match.target, source.targetIndex);
715
- if (!resolved || resolved.kind !== "note") continue;
715
+ if (resolved?.kind !== "note") continue;
716
716
  const { line, column } = position.positionAt(match.index);
717
717
  reportBoundaryReference(
718
718
  source,
package/dist/index.js CHANGED
@@ -708,7 +708,7 @@ function checkPublishBoundary(source, options, diagnostics2) {
708
708
  const position = new LineMapper(note.markdown);
709
709
  for (const match of getWikilinkMatches(note.markdown)) {
710
710
  const resolved = resolveWikilinkTarget(match.target, source.targetIndex);
711
- if (!resolved || resolved.kind !== "note") continue;
711
+ if (resolved?.kind !== "note") continue;
712
712
  const { line, column } = position.positionAt(match.index);
713
713
  reportBoundaryReference(
714
714
  source,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-diagnostics",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "remark-parse": "^11.0.0",
21
21
  "unified": "^11.0.5",
22
22
  "unist-util-visit": "^5.1.0",
23
- "@riebeckite/core": "0.0.5"
23
+ "@riebeckite/core": "0.0.6"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/mdast": "^4.0.4",