@spyglassmc/mcdoc 0.3.47 → 0.3.48

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.
@@ -27,7 +27,8 @@ export const uriBinder = (uris, ctx) => {
27
27
  // file:///root/mcdoc/foo/mod.mcdoc -> foo
28
28
  // file:///root/mcdoc/foo/bar.mcdoc -> foo/bar
29
29
  for (const [uri, rel] of urisAndRels) {
30
- ctx.symbols.query(uri, 'mcdoc', segToIdentifier(rel.split('/'))).ifKnown(() => { }).elseEnter({
30
+ ctx.symbols.query(uri, 'mcdoc', segToIdentifier(rel.split('/'))).ifDefined(() => { })
31
+ .elseEnter({
31
32
  data: { subcategory: 'module' },
32
33
  usage: { type: 'definition' },
33
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglassmc/mcdoc",
3
- "version": "0.3.47",
3
+ "version": "0.3.48",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "url": "https://github.com/SpyglassMC/Spyglass/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@spyglassmc/core": "0.4.43",
29
- "@spyglassmc/locales": "0.3.22"
28
+ "@spyglassmc/core": "0.4.44",
29
+ "@spyglassmc/locales": "0.3.23"
30
30
  }
31
31
  }