@rdfx/serializer 0.0.51 → 0.0.53

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 CHANGED
@@ -1,2 +1,4 @@
1
- export { serializers as default } from "./serializers.js";
1
+ export * from "./serialize.js";
2
+ export { serializers, serializers as default } from "./serializers.js";
3
+ export * from "./serializeSync.js";
2
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,2 +1,4 @@
1
- export { serializers as default } from "./serializers.js";
1
+ export * from "./serialize.js";
2
+ export { serializers, serializers as default } from "./serializers.js";
3
+ export * from "./serializeSync.js";
2
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@rdfx/format": "0.0.51",
4
- "@rdfx/stream": "0.0.51",
3
+ "@rdfx/format": "0.0.53",
4
+ "@rdfx/stream": "0.0.53",
5
5
  "@rdfjs/prefix-map": "~0.1.2",
6
6
  "@rdfjs/serializer-jsonld-ext": "~4.0.2",
7
7
  "@rdfjs/serializer-ntriples": "~2.0.1",
@@ -46,5 +46,5 @@
46
46
  },
47
47
  "type": "module",
48
48
  "types": "./dist/index.d.ts",
49
- "version": "0.0.51"
49
+ "version": "0.0.53"
50
50
  }
@@ -1,10 +0,0 @@
1
- import type { DataFactory, Quad } from "@rdfjs/types";
2
- import type { UncompressedRdfFormat } from "@rdfx/format";
3
- import { type ParserOptions as N3ParserOptions, type PrefixCallback } from "n3";
4
- import { Either } from "purify-ts";
5
- export declare function parseSync(input: string, { dataFactory, prefixCallback, ...otherOptions }: {
6
- dataFactory: DataFactory;
7
- format?: Exclude<UncompressedRdfFormat["mimeType"], "application/ld+json">;
8
- prefixCallback?: PrefixCallback;
9
- } & Omit<N3ParserOptions, "factory" | "format">): Either<Error, readonly Quad[]>;
10
- //# sourceMappingURL=parseSync.d.ts.map
package/dist/parseSync.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.js.map