Skip to content

Commit

Permalink
Replace old credentials-context with newer @db/credentials-context.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Aug 2, 2024
1 parent 720e2b0 commit 08727e5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,31 @@
"email": "[email protected]",
"url": "https://www.w3.org/groups/wg/vc/"
},
"contributors": [{
"name": "Digital Bazaar, Inc.",
"email": "[email protected]",
"url": "https://digitalbazaar.com/"
}],
"contributors": [
{
"name": "Digital Bazaar, Inc.",
"email": "[email protected]",
"url": "https://digitalbazaar.com/"
}
],
"engines": {
"node": ">=18"
},
"dependencies": {
"@digitalbazaar/credentials-context": "^3.1.0",
"@digitalbazaar/data-integrity": "^2.0.0",
"@digitalbazaar/data-integrity-context": "^2.0.0",
"@digitalbazaar/did-method-key": "^5.1.0",
"@digitalbazaar/ed25519-multikey": "^1.0.1",
"@digitalbazaar/eddsa-rdfc-2022-cryptosuite": "^1.0.1",
"@digitalbazaar/mocha-w3c-interop-reporter": "^1.6.0",
"@digitalbazaar/http-client": "^4.0.0",
"@digitalbazaar/mocha-w3c-interop-reporter": "^1.6.0",
"@digitalbazaar/multikey-context": "^1.0.0",
"@digitalbazaar/vc": "^6.0.2",
"@digitalcredentials/did-context": "^1.0.0",
"bnid": "^3.0.0",
"canonicalize": "^2.0.0",
"chai": "^4.3.6",
"credentials-context": "^2.0.0",
"data-integrity-test-suite-assertion": "github:w3c-ccg/data-integrity-test-suite-assertion",
"jsonld-document-loader": "^2.0.0",
"klona": "^2.0.5",
Expand Down
11 changes: 4 additions & 7 deletions tests/vc-generator/contexts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
* Copyright (c) 2022-2024 Digital Bazaar, Inc.
* SPDX-License-Identifier: BSD-3-Clause
*/
import credentialsCtx from 'credentials-context';
import {
contexts as credentialsContexts
} from '@digitalbazaar/credentials-context';
import dataIntegrityCtx from '@digitalbazaar/data-integrity-context';
import didCtx from '@digitalcredentials/did-context';
import {klona} from 'klona';
import multikeyCtx from '@digitalbazaar/multikey-context';

const contextMap = new Map();
const contextMap = new Map(credentialsContexts);

const _dataIntegrityCtx = klona(dataIntegrityCtx.CONTEXT);
const diCtx = _dataIntegrityCtx['@context'];
Expand All @@ -33,10 +35,5 @@ contextMap.set(
didCtx.contexts.get(
didCtx.constants.DID_CONTEXT_URL)
);
contextMap.set(
credentialsCtx.constants.CONTEXT_URL,
credentialsCtx.contexts.get(
credentialsCtx.constants.CONTEXT_URL)
);

export {contextMap};

0 comments on commit 08727e5

Please sign in to comment.