Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

did-jwt

Package Overview
Dependencies
Maintainers
6
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

did-jwt - npm Package Compare versions

Comparing version 6.11.0 to 6.11.1

2

lib/ECDH.d.ts

@@ -10,3 +10,3 @@ /**

*/
export declare type ECDH = (theirPublicKey: Uint8Array) => Promise<Uint8Array>;
export type ECDH = (theirPublicKey: Uint8Array) => Promise<Uint8Array>;
/**

@@ -13,0 +13,0 @@ * Wraps an X25519 secret key into an ECDH method that can be used to compute a shared secret with a public key.

@@ -1,2 +0,2 @@

export declare type ProtectedHeader = Record<string, any> & Partial<RecipientHeader>;
export type ProtectedHeader = Record<string, any> & Partial<RecipientHeader>;
/**

@@ -3,0 +3,0 @@ * The JWK representation of an ephemeral public key.

import type { DIDResolutionResult, Resolvable, VerificationMethod } from 'did-resolver';
import { EcdsaSignature } from './util';
export declare type Signer = (data: string | Uint8Array) => Promise<EcdsaSignature | string>;
export declare type SignerAlgorithm = (payload: string, signer: Signer) => Promise<string>;
export declare type ProofPurposeTypes = 'assertionMethod' | 'authentication' | 'capabilityDelegation' | 'capabilityInvocation';
export type Signer = (data: string | Uint8Array) => Promise<EcdsaSignature | string>;
export type SignerAlgorithm = (payload: string, signer: Signer) => Promise<string>;
export type ProofPurposeTypes = 'assertionMethod' | 'authentication' | 'capabilityDelegation' | 'capabilityInvocation';
export interface JWTOptions {

@@ -7,0 +7,0 @@ issuer: string;

@@ -8,3 +8,3 @@ import type { VerificationMethod } from 'did-resolver';

export declare function verifyEd25519(data: string, signature: string, authenticators: VerificationMethod[]): VerificationMethod;
declare type Verifier = (data: string, signature: string, authenticators: VerificationMethod[]) => VerificationMethod;
type Verifier = (data: string, signature: string, authenticators: VerificationMethod[]) => VerificationMethod;
declare function VerifierAlgorithm(alg: string): Verifier;

@@ -11,0 +11,0 @@ declare namespace VerifierAlgorithm {

@@ -7,3 +7,3 @@ import { Encrypter, Decrypter } from './JWE';

*/
export declare type AuthEncryptParams = {
export type AuthEncryptParams = {
/**

@@ -27,3 +27,3 @@ * recipient key ID

*/
export declare type AnonEncryptParams = {
export type AnonEncryptParams = {
/**

@@ -30,0 +30,0 @@ * recipient key ID

{
"name": "did-jwt",
"version": "6.11.0",
"version": "6.11.1",
"description": "Library for Signing and Verifying JWTs that use DIDs as issuers and JWEs that use DIDs as recipients",

@@ -20,2 +20,3 @@ "type": "module",

".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.cjs",

@@ -62,19 +63,19 @@ "import": "./lib/index.module.js"

"devDependencies": {
"@babel/core": "7.18.10",
"@babel/preset-env": "7.18.10",
"@babel/core": "7.20.12",
"@babel/preset-env": "7.20.2",
"@babel/preset-typescript": "7.18.6",
"@ethersproject/address": "5.6.1",
"@semantic-release/changelog": "6.0.1",
"@ethersproject/address": "5.7.0",
"@semantic-release/changelog": "6.0.2",
"@semantic-release/git": "10.0.1",
"@types/elliptic": "6.4.14",
"@types/jest": "28.1.6",
"@types/jest": "28.1.8",
"@types/jsonwebtoken": "^8.5.9",
"@types/jwk-to-pem": "^2.0.1",
"@typescript-eslint/eslint-plugin": "5.33.0",
"@typescript-eslint/parser": "5.33.0",
"@typescript-eslint/eslint-plugin": "5.50.0",
"@typescript-eslint/parser": "5.50.0",
"codecov": "3.8.3",
"did-key-creator": "^0.3.2",
"eslint": "8.22.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jest": "26.8.2",
"eslint": "8.33.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-jest": "26.9.0",
"eslint-plugin-prettier": "4.2.1",

@@ -87,8 +88,8 @@ "jest": "28.1.3",

"mockdate": "3.0.5",
"prettier": "2.7.1",
"regenerator-runtime": "0.13.9",
"semantic-release": "19.0.3",
"prettier": "2.8.3",
"regenerator-runtime": "0.13.11",
"semantic-release": "19.0.5",
"tweetnacl": "1.0.3",
"typescript": "4.7.4",
"webpack": "5.74.0",
"typescript": "4.9.5",
"webpack": "5.75.0",
"webpack-cli": "4.10.0"

@@ -95,0 +96,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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