@rdfx/fs 0.0.11 → 0.0.13

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/RdfFile.js +4 -1
  2. package/package.json +2 -1
package/dist/RdfFile.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import fs from "node:fs";
2
2
  import * as path from "node:path";
3
3
  import zlib from "node:zlib";
4
- import formats from "@rdfjs/formats";
4
+ import formatsDefault from "@rdfjs/formats";
5
+ import Formats from "@rdfjs/formats/lib/Formats.js";
6
+ import dataFactory from "@rdfx/data-factory";
5
7
  import { Mime } from "mime";
6
8
  import otherMimeTypes from "mime/types/other.js";
7
9
  import standardMimeTypes from "mime/types/standard.js";
@@ -9,6 +11,7 @@ import { Either, Just, Left, Nothing, Right } from "purify-ts";
9
11
  import bz2 from "unbzip2-stream";
10
12
  import { AbstractRdfFileSystemEntry } from "./AbstractRdfFileSystemEntry.js";
11
13
  import { RDF_FORMATS } from "./RdfFormat.js";
14
+ const formats = new Formats({ factory: dataFactory }).import(formatsDefault);
12
15
  const mime = new Mime(standardMimeTypes, otherMimeTypes, {
13
16
  "application/x-brotli": ["br"],
14
17
  });
package/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
+ "@rdfx/data-factory": "0.0.13",
3
4
  "@rdfjs/formats": "~4.0.1",
4
5
  "@rdfjs/types": "~2.0.1",
5
6
  "@types/rdfjs__formats": "~4.0.1",
@@ -36,5 +37,5 @@
36
37
  },
37
38
  "type": "module",
38
39
  "types": "./dist/index.d.ts",
39
- "version": "0.0.11"
40
+ "version": "0.0.13"
40
41
  }