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

did-jwt

Package Overview
Dependencies
Maintainers
8
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 5.6.3 to 5.7.0

1

lib/index.d.ts

@@ -12,2 +12,3 @@ import SimpleSigner from './signers/SimpleSigner';

export { SimpleSigner, EllipticSigner, NaclSigner, ES256KSigner, EdDSASigner, verifyJWT, createJWT, decodeJWT, verifyJWS, createJWS, toEthereumAddress, Signer, JWTHeader, JWTPayload, JWTVerified, };
export { JWTOptions, JWTVerifyOptions } from './JWT';
//# sourceMappingURL=index.d.ts.map

4

lib/index.js

@@ -763,3 +763,5 @@ var u8a = require('uint8arrays');

* @param {Object} header optional object to specify or customize the JWS header
* @return {Promise<Object, Error>} a promise which resolves with a JWS string or rejects with an error
* @param {Object} options can be used to trigger automatic canonicalization of header and
* payload properties
* @return {Promise<string>} a Promise which resolves to a JWS string or rejects with an error
*/

@@ -766,0 +768,0 @@ const createJWS = function (payload, signer, header = {}, options = {}) {

@@ -571,3 +571,5 @@ import * as u8a from 'uint8arrays';

* @param {Object} header optional object to specify or customize the JWS header
* @return {Promise<Object, Error>} a promise which resolves with a JWS string or rejects with an error
* @param {Object} options can be used to trigger automatic canonicalization of header and
* payload properties
* @return {Promise<string>} a Promise which resolves to a JWS string or rejects with an error
*/

@@ -574,0 +576,0 @@

@@ -738,3 +738,5 @@ import * as u8a from 'uint8arrays';

* @param {Object} header optional object to specify or customize the JWS header
* @return {Promise<Object, Error>} a promise which resolves with a JWS string or rejects with an error
* @param {Object} options can be used to trigger automatic canonicalization of header and
* payload properties
* @return {Promise<string>} a Promise which resolves to a JWS string or rejects with an error
*/

@@ -741,0 +743,0 @@ const createJWS = function (payload, signer, header = {}, options = {}) {

@@ -94,3 +94,5 @@ import type { DIDResolutionResult, Resolvable, VerificationMethod } from 'did-resolver';

* @param {Object} header optional object to specify or customize the JWS header
* @return {Promise<Object, Error>} a promise which resolves with a JWS string or rejects with an error
* @param {Object} options can be used to trigger automatic canonicalization of header and
* payload properties
* @return {Promise<string>} a Promise which resolves to a JWS string or rejects with an error
*/

@@ -97,0 +99,0 @@ export declare function createJWS(payload: string | Partial<JWTPayload>, signer: Signer, header?: Partial<JWTHeader>, options?: JWSCreationOptions): Promise<string>;

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

@@ -60,3 +60,3 @@ "source": "src/index.ts",

"@types/elliptic": "6.4.12",
"@types/jest": "26.0.23",
"@types/jest": "27.0.1",
"@typescript-eslint/eslint-plugin": "4.28.0",

@@ -63,0 +63,0 @@ "@typescript-eslint/parser": "4.28.0",

@@ -51,1 +51,3 @@ import SimpleSigner from './signers/SimpleSigner'

}
export { JWTOptions, JWTVerifyOptions } from './JWT'

@@ -197,3 +197,5 @@ import canonicalizeData from 'canonicalize'

* @param {Object} header optional object to specify or customize the JWS header
* @return {Promise<Object, Error>} a promise which resolves with a JWS string or rejects with an error
* @param {Object} options can be used to trigger automatic canonicalization of header and
* payload properties
* @return {Promise<string>} a Promise which resolves to a JWS string or rejects with an error
*/

@@ -200,0 +202,0 @@ export async function createJWS(

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 too big to display

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