@spyglassmc/json 0.3.49 → 0.3.50
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/lib/checker/index.js +4 -1
- package/package.json +4 -4
package/lib/checker/index.js
CHANGED
|
@@ -95,7 +95,10 @@ function inferType(node) {
|
|
|
95
95
|
case 'json:number':
|
|
96
96
|
return {
|
|
97
97
|
kind: 'literal',
|
|
98
|
-
value: {
|
|
98
|
+
value: {
|
|
99
|
+
kind: node.value.type,
|
|
100
|
+
value: node.value.value,
|
|
101
|
+
},
|
|
99
102
|
};
|
|
100
103
|
case 'json:null':
|
|
101
104
|
return { kind: 'any' }; // null is always invalid?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/json",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.50",
|
|
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.
|
|
29
|
-
"@spyglassmc/locales": "0.3.
|
|
30
|
-
"@spyglassmc/mcdoc": "0.3.
|
|
28
|
+
"@spyglassmc/core": "0.4.46",
|
|
29
|
+
"@spyglassmc/locales": "0.3.24",
|
|
30
|
+
"@spyglassmc/mcdoc": "0.3.50"
|
|
31
31
|
}
|
|
32
32
|
}
|