Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix undefined suiteContext2020 object when importing with jest #18

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @digitalbazaar/ed25519-signature-2020 Changelog

## 3.0.1 - 2022-05-18
- fix export of suiteContext which yielded an undefined value
in jest consumers

## 3.0.0 - 2021-06-19

### Fixed
Expand Down
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';