Skip to content

Commit

Permalink
fix undefined suiteContext2020 object when importing with jest
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoustachiste committed May 18, 2022
1 parent 57396fc commit 7b2b1de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions lib/Ed25519Signature2020.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const SUITE_CONTEXT_URL_2018 = suiteContext2018.constants.CONTEXT_URL;
// multibase base58-btc header
const MULTIBASE_BASE58BTC_HEADER = 'z';

export {
suiteContext2020 as suiteContext
};

export class Ed25519Signature2020 extends LinkedDataSignature {
/**
* @param {object} options - Options hashmap.
Expand Down
5 changes: 1 addition & 4 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/*!
* Copyright (c) 2020-2021 Digital Bazaar, Inc. All rights reserved.
*/
import suiteContext from 'ed25519-signature-2020-context';

export {Ed25519Signature2020} from './Ed25519Signature2020.js';
export {suiteContext};
export {Ed25519Signature2020, suiteContext} from './Ed25519Signature2020.js';

0 comments on commit 7b2b1de

Please sign in to comment.