Skip to content

Commit

Permalink
Update to @types/rdf-js 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Sep 15, 2020
1 parent 4d4ca95 commit c2293ec
Show file tree
Hide file tree
Showing 6 changed files with 2,223 additions and 2,179 deletions.
3 changes: 2 additions & 1 deletion lib/Util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {ContextParser, ERROR_CODES, ErrorCoded, JsonLdContextNormalized,
Util as ContextUtil} from "jsonld-context-parser";
import * as RDF from "rdf-js";
import {DataFactory} from "rdf-data-factory";
import {EntryHandlerContainer} from "./entryhandler/EntryHandlerContainer";
import {ParsingContext} from "./ParsingContext";

Expand Down Expand Up @@ -29,7 +30,7 @@ export class Util {

constructor(options: { parsingContext: ParsingContext, dataFactory?: RDF.DataFactory<RDF.BaseQuad> }) {
this.parsingContext = options.parsingContext;
this.dataFactory = options.dataFactory || require('@rdfjs/data-model');
this.dataFactory = options.dataFactory || new DataFactory();

this.rdfFirst = this.dataFactory.namedNode(Util.RDF + 'first');
this.rdfRest = this.dataFactory.namedNode(Util.RDF + 'rest');
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"index.js"
],
"dependencies": {
"@rdfjs/data-model": "^1.1.2",
"@types/http-link-header": "^1.0.1",
"@types/rdf-js": "^3.0.0",
"@types/rdf-js": "*",
"http-link-header": "^1.0.2",
"canonicalize": "^1.0.1",
"jsonld-context-parser": "^2.0.1",
"jsonparse": "^1.3.1"
"jsonparse": "^1.3.1",
"rdf-data-factory": "^1.0.2"
},
"pre-commit": [
"build",
Expand All @@ -46,19 +46,20 @@
"@types/jest": "^26.0.0",
"@types/jest-each": "^24.3.0",
"@types/node": "^13.1.0",
"@types/rdf-js": "^4.0.0",
"arrayify-stream": "^1.0.0",
"coveralls": "^3.0.0",
"jest": "^26.0.0",
"jest-each": "^26.0.0",
"jest-rdf": "^1.3.0",
"jest-rdf": "^1.6.0",
"manual-git-changelog": "^1.0.1",
"pre-commit": "^1.2.2",
"rdf-test-suite": "^1.13.1",
"rdf-test-suite": "^1.13.4",
"streamify-string": "^1.0.1",
"ts-jest": "^26.0.0",
"tslint": "^6.0.0",
"tslint-eslint-rules": "^5.3.1",
"typescript": "^3.3.1"
"typescript": "^4.0.2"
},
"jest": {
"globals": {
Expand Down
Loading

0 comments on commit c2293ec

Please sign in to comment.