@sphereon/oid4vci-common 0.16.1-feature.SPRIND.89.245 → 0.16.1-feature.SPRIND.89.246

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.
@@ -1,3 +1,3 @@
1
- import { AuthorizationResponse } from '../types';
2
- export declare const toAuthorizationResponsePayload: (input: AuthorizationResponse | string) => AuthorizationResponse;
1
+ import { AuthorizationChallengeCodeResponse, AuthorizationResponse } from '../types';
2
+ export declare const toAuthorizationResponsePayload: (input: AuthorizationResponse | AuthorizationChallengeCodeResponse | string) => AuthorizationResponse | AuthorizationChallengeCodeResponse;
3
3
  //# sourceMappingURL=AuthorizationResponseUtil.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationResponseUtil.d.ts","sourceRoot":"","sources":["../../lib/functions/AuthorizationResponseUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAIjD,eAAO,MAAM,8BAA8B,UAAW,qBAAqB,GAAG,MAAM,KAAG,qBAatF,CAAC"}
1
+ {"version":3,"file":"AuthorizationResponseUtil.d.ts","sourceRoot":"","sources":["../../lib/functions/AuthorizationResponseUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAIpF,eAAO,MAAM,8BAA8B,UAAW,qBAAqB,GAAG,kCAAkC,GAAG,MAAM,KAAG,qBAAqB,GAAG,kCAanJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationResponseUtil.js","sourceRoot":"","sources":["../../lib/functions/AuthorizationResponseUtil.ts"],"names":[],"mappings":";;;AAEA,yCAAoD;AAE7C,MAAM,8BAA8B,GAAG,CAAC,KAAqC,EAAyB,EAAE;IAC7G,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,KAAK,C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ACH,CAAC;IACD,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,KAAK,CAAC,0DAA0D,KAAK,EAAE,CAAC,CAAC;AACjF,CAAC,CAAC;AAbW,QAAA,8BAA8B,kCAazC"}
@@ -1,8 +1,8 @@
1
- import { AuthorizationResponse } from '../types';
1
+ import { AuthorizationChallengeCodeResponse, AuthorizationResponse } from '../types'
2
2
 
3
3
  import { convertURIToJsonObject } from './Encoding';
4
4
 
5
- export const toAuthorizationResponsePayload = (input: AuthorizationResponse | string): AuthorizationResponse => {
5
+ export const toAuthorizationResponsePayload = (input: AuthorizationResponse | AuthorizationChallengeCodeResponse | string): AuthorizationResponse | AuthorizationChallengeCodeResponse => {
6
6
  let response = input;
7
7
  if (typeof input === 'string') {
8
8
  if (input.trim().startsWith('{') && input.trim().endsWith('}')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/oid4vci-common",
3
- "version": "0.16.1-feature.SPRIND.89.245+3a426b5",
3
+ "version": "0.16.1-feature.SPRIND.89.246+1825b96",
4
4
  "description": "OpenID 4 Verifiable Credential Issuance Common Types",
5
5
  "source": "lib/index.ts",
6
6
  "main": "dist/index.js",
@@ -10,7 +10,7 @@
10
10
  "build:clean": "tsc --build --clean && tsc --build"
11
11
  },
12
12
  "dependencies": {
13
- "@sphereon/oid4vc-common": "0.16.1-feature.SPRIND.89.245+3a426b5",
13
+ "@sphereon/oid4vc-common": "0.16.1-feature.SPRIND.89.246+1825b96",
14
14
  "@sphereon/ssi-types": "0.30.2-feature.mdoc.funke2.367",
15
15
  "cross-fetch": "^3.1.8",
16
16
  "debug": "^4.3.5",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "3a426b544f5cfd38f7ec41c4619e30ab9eac51e7"
55
+ "gitHead": "1825b96189a780e37c6ff50d8c3d16c0d5d6228d"
56
56
  }