@shaclmate/cli 4.0.35 → 4.0.37

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/dist/cli.js +6 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from "node:fs";
3
3
  import { AstJsonGenerator, Cx2Generator, TsGenerator, ZodGenerator, } from "@shaclmate/compiler";
4
- import { TS_FEATURES, } from "@shaclmate/compiler/dist/generators/ts/TsFeature.js";
4
+ import { TS_FEATURES } from "@shaclmate/compiler/dist/generators/ts/TsFeature.js";
5
5
  import { command, multioption, option, restPositionals, run, string, subcommands, } from "cmd-ts";
6
6
  import { ExistingPath } from "cmd-ts/dist/cjs/batteries/fs.js";
7
7
  import { generate } from "./commands/generate.js";
@@ -77,8 +77,11 @@ run(subcommands({
77
77
  type: {
78
78
  async from(strings) {
79
79
  return strings.map((string) => {
80
- if (TS_FEATURES.some((tsFeature) => string === tsFeature)) {
81
- return string;
80
+ const stringLowerCase = string.toLowerCase();
81
+ for (const tsFeature of TS_FEATURES) {
82
+ if (tsFeature.toLowerCase() === stringLowerCase) {
83
+ return tsFeature;
84
+ }
82
85
  }
83
86
  throw new RangeError(`invalid feature: ${string}`);
84
87
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "shaclmate": "dist/cli.js"
4
4
  },
5
5
  "dependencies": {
6
- "@shaclmate/compiler": "4.0.35",
6
+ "@shaclmate/compiler": "4.0.37",
7
7
  "@rdfjs/dataset": "~2.0.2",
8
8
  "@rdfjs/prefix-map": "~0.1.2",
9
9
  "@rdfjs/serializer-turtle": "~1.1.5",
@@ -55,5 +55,5 @@
55
55
  },
56
56
  "type": "module",
57
57
  "types": "./dist/index.d.ts",
58
- "version": "4.0.35"
58
+ "version": "4.0.37"
59
59
  }