@bedrock/kms 13.0.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -24
  2. package/package.json +7 -12
package/lib/index.js CHANGED
@@ -1,34 +1,12 @@
1
1
  /*!
2
- * Copyright (c) 2019-2022 Digital Bazaar, Inc. All rights reserved.
2
+ * Copyright (c) 2019-2024 Digital Bazaar, Inc. All rights reserved.
3
3
  */
4
4
  import * as keystores from './keystores.js';
5
5
  import {BedrockKmsModuleManager} from './BedrockKmsModuleManager.js';
6
- import {didIo} from '@bedrock/did-io';
7
- import {documentLoader} from '@bedrock/jsonld-document-loader';
8
- import '@bedrock/did-context';
9
- import '@bedrock/security-context';
10
- import '@bedrock/veres-one-context';
11
6
 
12
7
  // load config defaults
13
8
  import './config.js';
14
9
 
15
- async function defaultDocumentLoader(url) {
16
- let document;
17
- if(url.startsWith('did:')) {
18
- document = await didIo.get({did: url});
19
- return {
20
- contextUrl: null,
21
- documentUrl: url,
22
- document
23
- };
24
- }
25
-
26
- // finally, try the bedrock document loader
27
- return documentLoader(url);
28
- }
29
10
  const defaultModuleManager = new BedrockKmsModuleManager();
30
11
 
31
- export {
32
- BedrockKmsModuleManager, keystores,
33
- defaultDocumentLoader, defaultModuleManager
34
- };
12
+ export {BedrockKmsModuleManager, keystores, defaultModuleManager};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/kms",
3
- "version": "13.0.0",
3
+ "version": "15.0.0",
4
4
  "type": "module",
5
5
  "description": "Key management for Bedrock applications",
6
6
  "main": "./lib/index.js",
@@ -31,26 +31,21 @@
31
31
  "homepage": "https://github.com/digitalbazaar/bedrock-kms",
32
32
  "dependencies": {
33
33
  "@digitalbazaar/lru-memoize": "^3.0.0",
34
- "p-all": "^4.0.0"
34
+ "p-all": "^5.0.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@bedrock/core": "^6.0.1",
38
- "@bedrock/did-context": "^4.0.0",
39
- "@bedrock/did-io": "^10.1.0",
40
- "@bedrock/jsonld-document-loader": "^3.0.0",
41
38
  "@bedrock/mongodb": "^10.0.0",
42
- "@bedrock/package-manager": "^3.0.0",
43
- "@bedrock/security-context": "^7.0.0",
44
- "@bedrock/veres-one-context": "^14.0.1"
39
+ "@bedrock/package-manager": "^3.0.0"
45
40
  },
46
41
  "directories": {
47
42
  "lib": "./lib"
48
43
  },
49
44
  "devDependencies": {
50
45
  "eslint": "^8.18.0",
51
- "eslint-config-digitalbazaar": "^4.0.1",
52
- "eslint-plugin-jsdoc": "^39.3.3",
53
- "eslint-plugin-unicorn": "^43.0.0",
54
- "jsdoc-to-markdown": "^7.1.1"
46
+ "eslint-config-digitalbazaar": "^5.0.1",
47
+ "eslint-plugin-jsdoc": "^48.0.2",
48
+ "eslint-plugin-unicorn": "^50.0.1",
49
+ "jsdoc-to-markdown": "^8.0.0"
55
50
  }
56
51
  }