Skip to content

Commit

Permalink
Add support for @direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
gannan08 committed Nov 22, 2024
1 parent 1dc8833 commit c5f9a45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# @digitalbazaar/ecdsa-rdfc-2019-cryptosuite Changelog

## 1.2.0 - 2024-11-xx

### Added
- Add support for `@direction`.

## 1.1.1 - 2024-08-26

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion lib/canonize.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export async function canonize(input, options) {
safe: true,
...options
};
const opts = {...options, produceGeneralizedRdf: false};
const opts = {
...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype'
};
delete opts.format;
opts.produceGeneralizedRdf = false;
const dataset = await jsonld.toRDF(input, opts);
Expand Down

0 comments on commit c5f9a45

Please sign in to comment.