Skip to content

Commit

Permalink
Add fixtures export to index.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Nov 1, 2024
1 parent 8e926e6 commit 3293ca1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions fixtures.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*!
* Copyright (c) 2024 Digital Bazaar, Inc.
*/

import {createRequire} from 'node:module';

const require = createRequire(import.meta.url);

export const unsecured = new Map([
['1.1', require('./inputs/credentials/v1.1/unsecured.json')],
['2.0', require('./inputs/credentials/v2.0/unsecured.json')]
]);
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright (c) 2022-2023 Digital Bazaar, Inc.
* Copyright (c) 2022-2024 Digital Bazaar, Inc.
*/
import {checkKeyType} from './assertions.js';
import {createRequire} from 'node:module';
Expand Down Expand Up @@ -160,6 +160,7 @@ export function checkDataIntegrityProofVerifyErrors({
}
// export all assertions
export * as assertions from './assertions.js';
export * as fixtures from './fixtures.js';
export {generators} from './vc-generator/generators.js';
export {deriveCloned, issueCloned} from './vc-generator/issuer.js';
export {createDocLoader} from './vc-generator/documentLoader.js';
Expand Down

0 comments on commit 3293ca1

Please sign in to comment.