Skip to content

Commit

Permalink
Use @digitalbazaar/security-context package.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed May 13, 2023
1 parent e05341a commit bb15961
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
`LinkedDataSignature`. It will also be passed to `createVerifyData` in
`LinkedDataSignature`.

### Changed
- Use `@digitalbazaar/security-context` to provide security contexts instead
of the old `security-context` package.

## 11.1.0 - 2023-02-07

### Added
Expand Down
6 changes: 4 additions & 2 deletions lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*!
* Copyright (c) 2017-2018 Digital Bazaar, Inc. All rights reserved.
* Copyright (c) 2017-2023 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';

const {constants: securityConstants} = require('security-context');
const {
constants: securityConstants
} = require('@digitalbazaar/security-context');

module.exports = {
SECURITY_CONTEXT_URL: securityConstants.SECURITY_CONTEXT_V2_URL,
Expand Down
6 changes: 3 additions & 3 deletions lib/contexts.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* Copyright (c) 2017-2021 Digital Bazaar, Inc. All rights reserved.
/*!
* Copyright (c) 2017-2023 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';

const constants = require('./constants');
const {contexts: securityContexts} = require('security-context');
const {contexts: securityContexts} = require('@digitalbazaar/security-context');

module.exports = new Map([
[constants.SECURITY_CONTEXT_V1_URL,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"lib/**/*.js"
],
"dependencies": {
"@digitalbazaar/security-context": "^1.0.0",
"jsonld": "^8.0.0",
"security-context": "^4.0.0",
"serialize-error": "^8.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit bb15961

Please sign in to comment.