Skip to content

Commit

Permalink
upgrade jsonld dep
Browse files Browse the repository at this point in the history
  • Loading branch information
pietercolpaert committed Jun 12, 2020
1 parent b7c438e commit 2647482
Show file tree
Hide file tree
Showing 3 changed files with 979 additions and 1,165 deletions.
5 changes: 2 additions & 3 deletions lib/ldfetch.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const util = require("util");
const q = require('q');
const Fetcher = require("./NodeHttpFetcher.js");
const jsonld = require('jsonld');
const DataFactory = require('@rdfjs/data-model');
const jsonldframe = require('jsonld').frame;
const rdfParser = require("rdf-parse").default;
const EventEmitter = require('events');
const textStream = require('streamify-string');
Expand Down Expand Up @@ -80,7 +79,7 @@ module.exports = class extends EventEmitter {
}
}
objects["@graph"].push(Object.values(graphs));
return jsonld.frame(objects, frame);
return jsonldframe(objects, frame);
}

addPrefix (prefix, uri) {
Expand Down
Loading

0 comments on commit 2647482

Please sign in to comment.