@spyglassmc/nbt 0.3.51 → 0.3.52

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.
@@ -151,11 +151,7 @@ function inferType(node) {
151
151
  case 'nbt:float':
152
152
  return { kind: 'literal', value: { kind: 'float', value: node.value } };
153
153
  case 'nbt:long':
154
- return {
155
- kind: 'literal',
156
- // TODO: this should NOT change type from `bigint` to `number`
157
- value: { kind: 'long', value: Number(node.value) },
158
- };
154
+ return { kind: 'literal', value: { kind: 'long', value: node.value } };
159
155
  case 'nbt:int':
160
156
  return { kind: 'literal', value: { kind: 'int', value: node.value } };
161
157
  case 'nbt:short':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglassmc/nbt",
3
- "version": "0.3.51",
3
+ "version": "0.3.52",
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.45",
29
- "@spyglassmc/locales": "0.3.23",
30
- "@spyglassmc/mcdoc": "0.3.49"
28
+ "@spyglassmc/core": "0.4.46",
29
+ "@spyglassmc/locales": "0.3.24",
30
+ "@spyglassmc/mcdoc": "0.3.50"
31
31
  }
32
32
  }