@digitalbazaar/ed25519-signature-2018 3.0.0 → 4.0.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Copyright (c) 2020-2021 Digital Bazaar, Inc. All rights reserved.
2
+ * Copyright (c) 2020-2022 Digital Bazaar, Inc. All rights reserved.
3
3
  */
4
4
  import * as base58btc from 'base58-universal';
5
5
  import jsonld from 'jsonld';
@@ -134,21 +134,14 @@ export class Ed25519Signature2018 extends JwsLinkedDataSignature {
134
134
  * recommended to use one that provides static known documents, instead of
135
135
  * fetching from the web) for returning contexts, controller documents,
136
136
  * keys, and other relevant URLs needed for the proof.
137
- * @param {Function} [options.expansionMap] - A custom expansion map that is
138
- * passed to the JSON-LD processor; by default a function that will throw
139
- * an error when unmapped properties are detected in the input, use `false`
140
- * to turn this off and allow unmapped properties to be dropped or use a
141
- * custom function.
142
137
  *
143
138
  * @returns {Promise<boolean>} Whether a match for the proof was found.
144
139
  */
145
- async matchProof({proof, document, purpose, documentLoader, expansionMap}) {
140
+ async matchProof({proof, document, purpose, documentLoader}) {
146
141
  if(!_includesCompatibleContext({document})) {
147
142
  return false;
148
143
  }
149
- return super.matchProof({
150
- proof, document, purpose, documentLoader, expansionMap
151
- });
144
+ return super.matchProof({proof, document, purpose, documentLoader});
152
145
  }
153
146
  }
154
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalbazaar/ed25519-signature-2018",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Ed25519Signature2018 Linked Data Proof suite for use with jsonld-signatures.",
5
5
  "homepage": "https://github.com/digitalbazaar/ed25519-signature-2018",
6
6
  "author": {
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@digitalbazaar/ed25519-verification-key-2018": "^4.0.0",
27
27
  "@digitalbazaar/ed25519-verification-key-2020": "^4.0.0",
28
- "@digitalbazaar/jws-linked-data-signature": "^2.0.0",
28
+ "@digitalbazaar/jws-linked-data-signature": "^3.0.0",
29
29
  "base58-universal": "^2.0.0",
30
30
  "ed25519-signature-2018-context": "^1.1.0",
31
31
  "ed25519-signature-2020-context": "^1.1.0",
32
- "jsonld": "^6.0.0"
32
+ "jsonld": "^8.1.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "c8": "^7.11.3",
@@ -41,7 +41,7 @@
41
41
  "eslint-config-digitalbazaar": "^3.0.0",
42
42
  "eslint-plugin-jsdoc": "^39.3.2",
43
43
  "eslint-plugin-unicorn": "^42.0.0",
44
- "jsonld-signatures": "^10.0.0",
44
+ "jsonld-signatures": "^11.0.0",
45
45
  "karma": "^6.3.20",
46
46
  "karma-chai": "^0.1.0",
47
47
  "karma-chrome-launcher": "^3.1.1",