Skip to content

Commit

Permalink
feat: Create new agent-config module to replace the deps on Veramo cl…
Browse files Browse the repository at this point in the history
…i, which pulls in everything
  • Loading branch information
nklomp committed May 5, 2023
1 parent 673856f commit 6ac4ec0
Show file tree
Hide file tree
Showing 7 changed files with 1,637 additions and 889 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"@veramo/remote-client": "4.2.0",
"@veramo/remote-server": "4.2.0",
"@veramo/selective-disclosure": "4.2.0",
"**/did-jwt-vc": "3.1.3",
"@veramo/url-handler": "4.2.0",
"**/@mattrglobal/jsonld-signatures-bbs/jsonld": "4.0.1",
"**/jsonld" : "link:./node_modules/@digitalcredentials/jsonld",
Expand Down
3 changes: 2 additions & 1 deletion packages/did-auth-siop-op-authenticator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"@veramo/core": "4.2.0",
"@veramo/credential-w3c": "4.2.0",
"cross-fetch": "^3.1.5",
"uuid": "^8.3.2"
"uuid": "^8.3.2",
"did-jwt-vc": "3.1.3"
},
"devDependencies": {
"@sphereon/did-uni-client": "^0.6.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/mnemonic-seed-manager/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const crypto = require('crypto');
globalThis.crypto = crypto;

import * as fs from 'fs'

import { DataSource } from 'typeorm'
Expand All @@ -19,6 +22,7 @@ let databaseFile = 'database.sqlite'
let dbConnection: OrPromise<DataSource>
let agent: any


const setup = async (): Promise<boolean> => {
const db: OrPromise<DataSource> = new DataSource({
type: 'sqlite',
Expand Down
2 changes: 2 additions & 0 deletions packages/mnemonic-seed-manager/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'cross-fetch/polyfill'
const crypto = require('crypto');
globalThis.crypto = crypto;
import * as fs from 'fs'
import { Server } from 'http'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default (testContext: { getAgent: () => ConfiguredAgent; setup: () => Pro
describe('mnemonic generator', () => {
let agent: ConfiguredAgent

beforeAll(() => {
testContext.setup()
beforeAll(async () => {
await testContext.setup()
agent = testContext.getAgent()
})
afterAll(testContext.tearDown)
Expand Down
2 changes: 1 addition & 1 deletion packages/wellknown-did-issuer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@veramo/data-store": "4.2.0",
"@veramo/utils": "4.2.0",
"debug": "^4.3.4",
"did-jwt-vc": "2.1.14",
"did-jwt-vc": "3.1.3",
"typeorm": "^0.3.12",
"uuid": "^8.3.2"
},
Expand Down
2,510 changes: 1,625 additions & 885 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 6ac4ec0

Please sign in to comment.