@grexx/grexxlinter 0.2.1146 → 0.2.1196
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/cli.js +6 -2
- package/lsp.js +5 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -14577,7 +14577,11 @@ function createSchemaRegistry(schemas) {
|
|
|
14577
14577
|
const m = /^https:\/\/grexx\.net\/studio-next\/schemas\/([^/]+)\.schema\.json$/.exec(id);
|
|
14578
14578
|
if (m) casetypes.push(m[1]);
|
|
14579
14579
|
}
|
|
14580
|
-
casetypes.sort()
|
|
14580
|
+
casetypes.sort((a, b) => {
|
|
14581
|
+
if (a < b) return -1;
|
|
14582
|
+
if (a > b) return 1;
|
|
14583
|
+
return 0;
|
|
14584
|
+
});
|
|
14581
14585
|
const cache = /* @__PURE__ */ new Map();
|
|
14582
14586
|
function validatorFor(casetype) {
|
|
14583
14587
|
if (cache.has(casetype)) return cache.get(casetype) ?? null;
|
|
@@ -15113,7 +15117,7 @@ function isLintableYaml(text) {
|
|
|
15113
15117
|
// src/cli.ts
|
|
15114
15118
|
var PARALLEL_THRESHOLD = 200;
|
|
15115
15119
|
var MAX_WORKERS = 8;
|
|
15116
|
-
var VERSION = true ? "0.2.
|
|
15120
|
+
var VERSION = true ? "0.2.1196" : "0.0.0-dev";
|
|
15117
15121
|
function isNewer(latest, current) {
|
|
15118
15122
|
const a = latest.split(".").map(Number);
|
|
15119
15123
|
const b = current.split(".").map(Number);
|
package/lsp.js
CHANGED
|
@@ -23646,7 +23646,11 @@ function createSchemaRegistry(schemas) {
|
|
|
23646
23646
|
const m = /^https:\/\/grexx\.net\/studio-next\/schemas\/([^/]+)\.schema\.json$/.exec(id);
|
|
23647
23647
|
if (m) casetypes.push(m[1]);
|
|
23648
23648
|
}
|
|
23649
|
-
casetypes.sort()
|
|
23649
|
+
casetypes.sort((a, b) => {
|
|
23650
|
+
if (a < b) return -1;
|
|
23651
|
+
if (a > b) return 1;
|
|
23652
|
+
return 0;
|
|
23653
|
+
});
|
|
23650
23654
|
const cache = /* @__PURE__ */ new Map();
|
|
23651
23655
|
function validatorFor(casetype) {
|
|
23652
23656
|
if (cache.has(casetype)) return cache.get(casetype) ?? null;
|