@spyglassmc/nbt 0.3.50 → 0.3.51

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.
@@ -38,7 +38,6 @@ const index = (children, src, ctx) => {
38
38
  if (!src.trySkip('[')) {
39
39
  throw new Error(`NBT path index parser called at illegal position: “${src.peek()}” at ${src.cursor}`);
40
40
  }
41
- src.skipSpace();
42
41
  const c = src.peek();
43
42
  if (c === '{') {
44
43
  node.children = [compound(src, ctx)];
@@ -46,7 +45,6 @@ const index = (children, src, ctx) => {
46
45
  else if (c !== ']') {
47
46
  node.children = [core.integer({ pattern: /^-?\d+$/ })(src, ctx)];
48
47
  }
49
- src.skipSpace();
50
48
  if (!src.trySkip(']')) {
51
49
  ctx.err.report(localize('expected-got', localeQuote(']'), localeQuote(src.peek())), src);
52
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglassmc/nbt",
3
- "version": "0.3.50",
3
+ "version": "0.3.51",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "url": "https://github.com/SpyglassMC/Spyglass/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@spyglassmc/core": "0.4.44",
28
+ "@spyglassmc/core": "0.4.45",
29
29
  "@spyglassmc/locales": "0.3.23",
30
- "@spyglassmc/mcdoc": "0.3.48"
30
+ "@spyglassmc/mcdoc": "0.3.49"
31
31
  }
32
32
  }