Skip to content

Commit

Permalink
Allow caller to override rdfDirection.
Browse files Browse the repository at this point in the history
  • Loading branch information
gannan08 committed Nov 24, 2024
1 parent 2d592ec commit cfb4a07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/canonicalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ export async function canonicalize(input, options) {
};
if(typeof input !== 'string') {
const opts = {
...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype'
rdfDirection: 'i18n-datatype', ...options, produceGeneralizedRdf: false,
};
delete opts.format;
opts.produceGeneralizedRdf = false;
input = await jsonld.toRDF(input, opts);
}
return rdfCanonize.canonize(input, options);
Expand Down

0 comments on commit cfb4a07

Please sign in to comment.