Skip to content

Commit

Permalink
refactor: Updated DCQL dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoë Maas committed Jan 16, 2025
1 parent cd9d985 commit eddadd3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
"@noble/hashes": "1.6.1",
"debug": "^4.3.5",
"dcql": "0.2.17",
"dcql": "0.2.19",
"did-jwt": "6.11.6",
"did-jwt-vc": "3.1.3",
"ethr-did": "2.3.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/siopv2-oid4vp-op-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@veramo/core": "4.2.0",
"@veramo/credential-w3c": "4.2.0",
"cross-fetch": "^3.1.8",
"dcql": "0.2.17",
"dcql": "0.2.19",
"did-jwt-vc": "3.1.3",
"i18n-js": "^3.9.2",
"lodash.memoize": "^4.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { v4 as uuidv4 } from 'uuid'
import {
DidAuthSiopOpAuthenticatorOptions,
GetSelectableCredentialsArgs,
IOpSessionArgs,
IOpSessionArgs, Json,
LOGGER_NAMESPACE,
RequiredContext,
schema,
Expand All @@ -43,7 +43,7 @@ import {
IRemoveCustomApprovalForSiopArgs,
IRemoveSiopSessionArgs,
IRequiredContext
} from '../types/IDidAuthSiopOpAuthenticator'
} from '../types'
import { Siopv2Machine as Siopv2MachineId, Siopv2MachineInstanceOpts } from '../types/machine'

import {
Expand All @@ -63,7 +63,6 @@ import { computeEntryHash } from '@veramo/utils'
import { UniqueDigitalCredential } from '@sphereon/ssi-sdk.credential-store'
import { EventEmitter } from 'events'
import { DcqlCredential, DcqlPresentation, DcqlQuery, DcqlSdJwtVcCredential } from 'dcql'
import { Json } from 'dcql/dist/src/u-dcql'

const logger = Loggers.DEFAULT.options(LOGGER_NAMESPACE, {}).get(LOGGER_NAMESPACE)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,9 @@ export interface IGetPresentationExchangeArgs {
hasher?: Hasher
}

// It was added here because it's not exported from DCQL anymore
export type Json = string | number | boolean | null | {
[key: string]: Json;
} | Json[];

export const DEFAULT_JWT_PROOF_TYPE = 'JwtProof2020'
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eddadd3

Please sign in to comment.