@shaclmate/cli 4.0.44 → 4.0.47
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/dist/commands/generate.js +2 -2
- package/dist/commands/index.d.ts +4 -0
- package/dist/commands/index.js +4 -0
- package/dist/commands/merge.js +1 -1
- package/dist/commands/validate.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/{commands/parseInputs.js → parseInputs.js} +1 -1
- package/package.json +2 -2
- /package/dist/{commands/parseInputs.d.ts → parseInputs.d.ts} +0 -0
- /package/dist/{commands/shaclShaclDataset.d.ts → shaclShaclDataset.d.ts} +0 -0
- /package/dist/{commands/shaclShaclDataset.js → shaclShaclDataset.js} +0 -0
|
@@ -4,8 +4,8 @@ import { Compiler, ShapesGraph } from "@shaclmate/compiler";
|
|
|
4
4
|
import { EitherAsync } from "purify-ts";
|
|
5
5
|
import SHACLValidator from "rdf-validate-shacl";
|
|
6
6
|
import { logger } from "../logger.js";
|
|
7
|
-
import { parseInputs } from "
|
|
8
|
-
import { shaclShaclDataset } from "
|
|
7
|
+
import { parseInputs } from "../parseInputs.js";
|
|
8
|
+
import { shaclShaclDataset } from "../shaclShaclDataset.js";
|
|
9
9
|
export async function generate({ generator, inputPaths, outputFilePath, }) {
|
|
10
10
|
return EitherAsync(async ({ liftEither }) => {
|
|
11
11
|
if (inputPaths.length === 0) {
|
package/dist/commands/merge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import Serializer from "@rdfjs/serializer-turtle";
|
|
3
3
|
import { EitherAsync } from "purify-ts";
|
|
4
|
-
import { parseInputs } from "
|
|
4
|
+
import { parseInputs } from "../parseInputs.js";
|
|
5
5
|
export async function merge({ inputPaths, outputFilePath, }) {
|
|
6
6
|
return EitherAsync(async ({ liftEither }) => {
|
|
7
7
|
const { dataset, prefixMap } = await liftEither(await parseInputs(inputPaths));
|
|
@@ -7,7 +7,7 @@ import SHACLValidator from "rdf-validate-shacl";
|
|
|
7
7
|
import * as tmp from "tmp-promise";
|
|
8
8
|
import which from "which";
|
|
9
9
|
import { logger } from "../logger.js";
|
|
10
|
-
import { parseInputs } from "
|
|
10
|
+
import { parseInputs } from "../parseInputs.js";
|
|
11
11
|
function execFileStreaming(cmd, args) {
|
|
12
12
|
return new Promise((resolve) => {
|
|
13
13
|
const child = spawn(cmd, args, { stdio: "inherit" });
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -3,7 +3,7 @@ import PrefixMap from "@rdfjs/prefix-map/PrefixMap.js";
|
|
|
3
3
|
import dataFactory from "@rdfx/data-factory";
|
|
4
4
|
import { RdfDirectory, RdfFileSystemEntry } from "@rdfx/fs";
|
|
5
5
|
import { Either, EitherAsync, Left } from "purify-ts";
|
|
6
|
-
import { logger } from "
|
|
6
|
+
import { logger } from "./logger.js";
|
|
7
7
|
export async function parseInputs(inputPaths) {
|
|
8
8
|
return EitherAsync(async ({ liftEither }) => {
|
|
9
9
|
const dataset = datasetFactory.dataset();
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"shaclmate": "dist/cli.js"
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@shaclmate/compiler": "4.0.
|
|
6
|
+
"@shaclmate/compiler": "4.0.47",
|
|
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.
|
|
58
|
+
"version": "4.0.47"
|
|
59
59
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|