Socket
Socket
Sign inDemoInstall

@did-connect/types

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@did-connect/types - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

8

lib/index.d.ts
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc