@sd-jwt/types
Advanced tools
Comparing version 0.9.2-next.7 to 0.9.2-next.8
@@ -132,3 +132,3 @@ declare const SD_SEPARATOR = "~"; | ||
type Frame<Payload> = Payload extends Array<infer U> ? U extends object ? Record<number, Frame<U>> & SD<Payload> & DECOY : SD<Payload> & DECOY : Payload extends Record<string, unknown> ? NonNever<{ | ||
[K in keyof Payload]?: Payload[K] extends object ? Frame<Payload[K]> : never; | ||
[K in keyof Payload]?: NonNullable<Payload[K]> extends object ? Frame<Payload[K]> : never; | ||
} & SD<Payload> & DECOY> : SD<Payload> & DECOY; | ||
@@ -184,3 +184,3 @@ /** | ||
type PFrame<Payload> = Payload extends Array<infer U> ? U extends object ? Record<number, PFrame<U> | boolean> | boolean : Record<number, boolean> | boolean : { | ||
[K in keyof Payload]?: Payload[K] extends object ? PFrame<Payload[K]> | boolean : boolean; | ||
[K in keyof Payload]?: NonNullable<Payload[K]> extends object ? PFrame<Payload[K]> | boolean : boolean; | ||
}; | ||
@@ -187,0 +187,0 @@ type PresentationFrame<T extends Extensible> = PFrame<T>; |
{ | ||
"name": "@sd-jwt/types", | ||
"version": "0.9.2-next.7+76d1b7b", | ||
"version": "0.9.2-next.8+ed907e3", | ||
"description": "sd-jwt draft 7 implementation in typescript", | ||
@@ -56,3 +56,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "76d1b7bba7e6d779264efe8f1d4f2be891c42a00" | ||
"gitHead": "ed907e33c79f140268a03098af1e8c5cc1003ce9" | ||
} |
@@ -175,3 +175,3 @@ export const SD_SEPARATOR = '~'; | ||
{ | ||
[K in keyof Payload]?: Payload[K] extends object | ||
[K in keyof Payload]?: NonNullable<Payload[K]> extends object | ||
? Frame<Payload[K]> | ||
@@ -239,3 +239,3 @@ : never; | ||
: { | ||
[K in keyof Payload]?: Payload[K] extends object | ||
[K in keyof Payload]?: NonNullable<Payload[K]> extends object | ||
? PFrame<Payload[K]> | boolean | ||
@@ -242,0 +242,0 @@ : boolean; |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
38107