@rdfx/parser 0.0.51 → 0.0.52
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/dist/parseSync copy.d.ts +0 -9
- package/dist/parseSync copy.js +0 -9
- package/dist/testData.d.ts +0 -2
- package/dist/testData.js +0 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@rdfx/format": "0.0.
|
|
4
|
-
"@rdfx/stream": "0.0.
|
|
3
|
+
"@rdfx/format": "0.0.52",
|
|
4
|
+
"@rdfx/stream": "0.0.52",
|
|
5
5
|
"@rdfjs/parser-jsonld": "~2.1.3",
|
|
6
6
|
"@rdfjs/parser-n3": "~2.1.0",
|
|
7
7
|
"@rdfjs/sink-map": "~2.0.1",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
},
|
|
36
36
|
"type": "module",
|
|
37
37
|
"types": "./dist/index.d.ts",
|
|
38
|
-
"version": "0.0.
|
|
38
|
+
"version": "0.0.52"
|
|
39
39
|
}
|
package/dist/parseSync copy.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DataFactory, Quad } from "@rdfjs/types";
|
|
2
|
-
import { type ParserOptions as N3ParserOptions, type PrefixCallback } from "n3";
|
|
3
|
-
import { Either } from "purify-ts";
|
|
4
|
-
export declare function parseSync(input: string, { dataFactory, prefixCallback, ...otherOptions }: {
|
|
5
|
-
dataFactory: DataFactory;
|
|
6
|
-
format?: "application/n-quads" | "application/n-triples" | "application/trig" | "text/n3" | "text/turtle";
|
|
7
|
-
prefixCallback?: PrefixCallback;
|
|
8
|
-
} & Omit<N3ParserOptions, "factory" | "format">): Either<Error, readonly Quad[]>;
|
|
9
|
-
//# sourceMappingURL=parseSync%20copy.d.ts.map
|
package/dist/parseSync copy.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Parser as N3Parser, } from "n3";
|
|
2
|
-
import { Either } from "purify-ts";
|
|
3
|
-
export function parseSync(input, { dataFactory, prefixCallback, ...otherOptions }) {
|
|
4
|
-
return Either.encase(() => {
|
|
5
|
-
const n3Parser = new N3Parser({ ...otherOptions, factory: dataFactory });
|
|
6
|
-
return n3Parser.parse(input, undefined, prefixCallback);
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=parseSync%20copy.js.map
|
package/dist/testData.d.ts
DELETED
package/dist/testData.js
DELETED