@digitalbazaar/eddsa-rdfc-2022-cryptosuite 1.1.0 → 1.2.0

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/lib/canonize.js +3 -2
  2. package/package.json +2 -2
package/lib/canonize.js CHANGED
@@ -13,9 +13,10 @@ export async function canonize(input, options) {
13
13
  safe: true,
14
14
  ...options
15
15
  };
16
- const opts = {...options, produceGeneralizedRdf: false};
16
+ const opts = {
17
+ rdfDirection: 'i18n-datatype', ...options, produceGeneralizedRdf: false,
18
+ };
17
19
  delete opts.format;
18
- opts.produceGeneralizedRdf = false;
19
20
  const dataset = await jsonld.toRDF(input, opts);
20
21
  return rdfCanonize.canonize(dataset, options);
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalbazaar/eddsa-rdfc-2022-cryptosuite",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.",
5
5
  "homepage": "https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite",
6
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "@digitalbazaar/ed25519-verification-key-2018": "^4.0.0",
26
26
  "@digitalbazaar/ed25519-verification-key-2020": "^4.1.0",
27
27
  "@digitalbazaar/multikey-context": "^2.0.1",
28
- "@digitalbazaar/security-document-loader": "^2.0.0",
28
+ "@digitalbazaar/security-document-loader": "^3.0.0",
29
29
  "c8": "^7.11.3",
30
30
  "chai": "^4.3.6",
31
31
  "cross-env": "^7.0.3",