@grexx/grexxlinter 0.2.595 → 0.2.723

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.
Files changed (2) hide show
  1. package/cli.js +8 -2
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -14662,6 +14662,12 @@ function loadCaseRefs(dir) {
14662
14662
  return {};
14663
14663
  }
14664
14664
  }
14665
+ function deepFreeze(value) {
14666
+ if (value === null || typeof value !== "object" || Object.isFrozen(value)) return value;
14667
+ Object.freeze(value);
14668
+ for (const k of Object.keys(value)) deepFreeze(value[k]);
14669
+ return value;
14670
+ }
14665
14671
  var docCache = /* @__PURE__ */ new Map();
14666
14672
  function targetDoc(absPath) {
14667
14673
  if (docCache.has(absPath)) return docCache.get(absPath);
@@ -14673,7 +14679,7 @@ function targetDoc(absPath) {
14673
14679
  doc = null;
14674
14680
  }
14675
14681
  }
14676
- docCache.set(absPath, doc);
14682
+ docCache.set(absPath, deepFreeze(doc));
14677
14683
  return doc;
14678
14684
  }
14679
14685
  function targetType(absPath, fragment) {
@@ -15055,7 +15061,7 @@ function isLintableYaml(text) {
15055
15061
  // src/cli.ts
15056
15062
  var PARALLEL_THRESHOLD = 200;
15057
15063
  var MAX_WORKERS = 8;
15058
- var VERSION = true ? "0.2.595" : "0.0.0-dev";
15064
+ var VERSION = true ? "0.2.723" : "0.0.0-dev";
15059
15065
  function isNewer(latest, current) {
15060
15066
  const a = latest.split(".").map(Number);
15061
15067
  const b = current.split(".").map(Number);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grexx/grexxlinter",
3
- "version": "0.2.595",
3
+ "version": "0.2.723",
4
4
  "description": "Lint Grexx Studio casetype YAML against the studio JSON Schemas.",
5
5
  "type": "module",
6
6
  "bin": {