@did-connect/types
Advanced tools
Comparing version 2.0.3 to 2.0.4
import { LiteralUnion } from 'type-fest'; | ||
import { TAppInfo, TChainInfo, TWalletInfo, TSession, TAnyResponse, TAnyRequest } from './types'; | ||
import { TAppInfo, TChainInfo, TWalletInfo, TSession, TContext, TAnyResponse, TAnyRequest } from './types'; | ||
export * from './schemas'; | ||
@@ -30,2 +30,6 @@ export * from './types'; | ||
}; | ||
export declare type TAuthContext = TContext & { | ||
baseUrl?: string; | ||
request: TAnyObject; | ||
}; | ||
export interface TEvent extends Omit<TSession, 'responseClaims'> { | ||
@@ -47,3 +51,3 @@ type: string; | ||
}; | ||
export declare function isUrl(str: string): boolean; | ||
export declare function isUrl(str: any): boolean; | ||
export declare function isRequestList(claims: TAnyRequest[][]): { | ||
@@ -50,0 +54,0 @@ code: string; |
@@ -42,2 +42,5 @@ "use strict"; | ||
function isUrl(str) { | ||
if (typeof str !== 'string') { | ||
return false; | ||
} | ||
return !urlSchema.validate(str).error; | ||
@@ -44,0 +47,0 @@ } |
{ | ||
"name": "@did-connect/types", | ||
"description": "Type definition and validator for did-connect protocol", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": { | ||
@@ -21,4 +21,4 @@ "name": "wangshijun", | ||
"dependencies": { | ||
"@arcblock/validator": "^1.17.3", | ||
"@ocap/mcrypto": "^1.17.3", | ||
"@arcblock/validator": "^1.17.4", | ||
"@ocap/mcrypto": "^1.17.4", | ||
"joi": "^17.6.0", | ||
@@ -64,3 +64,3 @@ "type-fest": "^2.13.1" | ||
}, | ||
"gitHead": "693f996822618771872b7a85d98c09a0aefaf955" | ||
"gitHead": "e2cec8bd652573e94b838d37d9daddb07c719a47" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40298
725
Updated@arcblock/validator@^1.17.4
Updated@ocap/mcrypto@^1.17.4