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

jose-browser-runtime

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose-browser-runtime - npm Package Compare versions

Comparing version 3.15.1 to 3.15.2

2

dist/types/jwe/compact/decrypt.d.ts

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

import type { KeyLike, DecryptOptions, JWEHeaderParameters, GetKeyFunction, FlattenedJWE, CompactDecryptResult } from '../../types.d';
import type { KeyLike, DecryptOptions, JWEHeaderParameters, GetKeyFunction, FlattenedJWE, CompactDecryptResult } from '../../types';
export interface CompactDecryptGetKey extends GetKeyFunction<JWEHeaderParameters, FlattenedJWE> {

@@ -3,0 +3,0 @@ }

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

import type { KeyLike, JWEKeyManagementHeaderParameters, JWEHeaderParameters, EncryptOptions } from '../../types.d';
import type { KeyLike, JWEKeyManagementHeaderParameters, JWEHeaderParameters, EncryptOptions } from '../../types';
declare class CompactEncrypt {

@@ -3,0 +3,0 @@ private _flattened;

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

import type { FlattenedDecryptResult, KeyLike, FlattenedJWE, JWEHeaderParameters, DecryptOptions, GetKeyFunction } from '../../types.d';
import type { FlattenedDecryptResult, KeyLike, FlattenedJWE, JWEHeaderParameters, DecryptOptions, GetKeyFunction } from '../../types';
export interface FlattenedDecryptGetKey extends GetKeyFunction<JWEHeaderParameters | undefined, FlattenedJWE> {

@@ -3,0 +3,0 @@ }

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

import type { KeyLike, FlattenedJWE, JWEHeaderParameters, JWEKeyManagementHeaderParameters, EncryptOptions } from '../../types.d';
import type { KeyLike, FlattenedJWE, JWEHeaderParameters, JWEKeyManagementHeaderParameters, EncryptOptions } from '../../types';
declare class FlattenedEncrypt {

@@ -3,0 +3,0 @@ private _plaintext;

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

import type { KeyLike, DecryptOptions, JWEHeaderParameters, GetKeyFunction, FlattenedJWE, GeneralJWE, GeneralDecryptResult } from '../../types.d';
import type { KeyLike, DecryptOptions, JWEHeaderParameters, GetKeyFunction, FlattenedJWE, GeneralJWE, GeneralDecryptResult } from '../../types';
export interface GeneralDecryptGetKey extends GetKeyFunction<JWEHeaderParameters, FlattenedJWE> {

@@ -3,0 +3,0 @@ }

/// <reference types="node" />
import type { KeyObject, FlattenedJWSInput, JWSHeaderParameters } from '../types.d';
import type { KeyObject, FlattenedJWSInput, JWSHeaderParameters } from '../types';
declare function EmbeddedJWK(protectedHeader: JWSHeaderParameters, token: FlattenedJWSInput): Promise<CryptoKey | KeyObject>;
export { EmbeddedJWK };
export default EmbeddedJWK;

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

import type { JWK, KeyLike } from '../types.d';
import type { JWK, KeyLike } from '../types';
declare function fromKeyLike(key: KeyLike): Promise<JWK>;

@@ -3,0 +3,0 @@ export { fromKeyLike };

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

import type { JWK, KeyLike } from '../types.d';
import type { JWK, KeyLike } from '../types';
declare function parseJwk(jwk: JWK, alg?: string, octAsKeyObject?: boolean): Promise<KeyLike>;

@@ -3,0 +3,0 @@ export { parseJwk };

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

import type { JWK } from '../types.d';
import type { JWK } from '../types';
declare function calculateThumbprint(jwk: JWK, digestAlgorithm?: 'sha256' | 'sha384' | 'sha512'): Promise<string>;

@@ -3,0 +3,0 @@ export { calculateThumbprint };

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

import type { JWSHeaderParameters, FlattenedJWSInput, GetKeyFunction } from '../types.d';
import type { JWSHeaderParameters, FlattenedJWSInput, GetKeyFunction } from '../types';
export interface RemoteJWKSetOptions {

@@ -3,0 +3,0 @@ timeoutDuration?: number;

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

import type { JWSHeaderParameters, KeyLike, SignOptions } from '../../types.d';
import type { JWSHeaderParameters, KeyLike, SignOptions } from '../../types';
declare class CompactSign {

@@ -3,0 +3,0 @@ private _flattened;

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

import type { CompactVerifyResult, FlattenedJWSInput, GetKeyFunction, JWSHeaderParameters, KeyLike, VerifyOptions } from '../../types.d';
import type { CompactVerifyResult, FlattenedJWSInput, GetKeyFunction, JWSHeaderParameters, KeyLike, VerifyOptions } from '../../types';
export interface CompactVerifyGetKey extends GetKeyFunction<JWSHeaderParameters, FlattenedJWSInput> {

@@ -3,0 +3,0 @@ }

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

import type { KeyLike, FlattenedJWS, JWSHeaderParameters, SignOptions } from '../../types.d';
import type { KeyLike, FlattenedJWS, JWSHeaderParameters, SignOptions } from '../../types';
declare class FlattenedSign {

@@ -3,0 +3,0 @@ private _payload;

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

import type { FlattenedVerifyResult, KeyLike, FlattenedJWSInput, JWSHeaderParameters, VerifyOptions, GetKeyFunction } from '../../types.d';
import type { FlattenedVerifyResult, KeyLike, FlattenedJWSInput, JWSHeaderParameters, VerifyOptions, GetKeyFunction } from '../../types';
export interface FlattenedVerifyGetKey extends GetKeyFunction<JWSHeaderParameters | undefined, FlattenedJWSInput> {

@@ -3,0 +3,0 @@ }

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

import type { KeyLike, GeneralJWS, JWSHeaderParameters, SignOptions } from '../../types.d';
import type { KeyLike, GeneralJWS, JWSHeaderParameters, SignOptions } from '../../types';
export interface Signature {

@@ -3,0 +3,0 @@ setProtectedHeader(protectedHeader: JWSHeaderParameters): Signature;

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

import type { GeneralJWSInput, GeneralVerifyResult, FlattenedJWSInput, GetKeyFunction, JWSHeaderParameters, KeyLike, VerifyOptions } from '../../types.d';
import type { GeneralJWSInput, GeneralVerifyResult, FlattenedJWSInput, GetKeyFunction, JWSHeaderParameters, KeyLike, VerifyOptions } from '../../types';
export interface GeneralVerifyGetKey extends GetKeyFunction<JWSHeaderParameters, FlattenedJWSInput> {

@@ -3,0 +3,0 @@ }

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

import type { KeyLike, DecryptOptions, JWTPayload, JWTClaimVerificationOptions, GetKeyFunction, JWEHeaderParameters, FlattenedJWE, JWTDecryptResult } from '../types.d';
import type { KeyLike, DecryptOptions, JWTPayload, JWTClaimVerificationOptions, GetKeyFunction, JWEHeaderParameters, FlattenedJWE, JWTDecryptResult } from '../types';
interface JWTDecryptOptions extends DecryptOptions, JWTClaimVerificationOptions {

@@ -3,0 +3,0 @@ }

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

import type { EncryptOptions, JWEHeaderParameters, JWEKeyManagementHeaderParameters, JWTPayload, KeyLike } from '../types.d';
import type { EncryptOptions, JWEHeaderParameters, JWEKeyManagementHeaderParameters, JWTPayload, KeyLike } from '../types';
import ProduceJWT from '../lib/jwt_producer';

@@ -3,0 +3,0 @@ declare class EncryptJWT extends ProduceJWT {

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

import type { JWSHeaderParameters, JWTPayload, KeyLike, SignOptions } from '../types.d';
import type { JWSHeaderParameters, JWTPayload, KeyLike, SignOptions } from '../types';
import ProduceJWT from '../lib/jwt_producer';

@@ -3,0 +3,0 @@ declare class SignJWT extends ProduceJWT {

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

import type { JWSHeaderParameters, JWTClaimVerificationOptions, JWTPayload } from '../types.d';
import type { JWSHeaderParameters, JWTClaimVerificationOptions, JWTPayload } from '../types';
import ProduceJWT from '../lib/jwt_producer';

@@ -3,0 +3,0 @@ interface UnsecuredResult {

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

import type { KeyLike, VerifyOptions, JWTPayload, JWTClaimVerificationOptions, JWSHeaderParameters, GetKeyFunction, FlattenedJWSInput, JWTVerifyResult } from '../types.d';
import type { KeyLike, VerifyOptions, JWTPayload, JWTClaimVerificationOptions, JWSHeaderParameters, GetKeyFunction, FlattenedJWSInput, JWTVerifyResult } from '../types';
interface JWTVerifyOptions extends VerifyOptions, JWTClaimVerificationOptions {

@@ -3,0 +3,0 @@ }

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

import type { JWTPayload } from '../types.d';
import type { JWTPayload } from '../types';
export default class ProduceJWT {

@@ -3,0 +3,0 @@ protected _payload: JWTPayload;

@@ -46,3 +46,3 @@ /// <reference lib="dom"/>

payload: string | Uint8Array
signatures: Omit<FlattenedJWSInput, 'payload'>[]
signatures: Omit<FlattenedJWSInput, 'paylo'>[]
}

@@ -55,3 +55,3 @@ export interface FlattenedJWS extends Partial<FlattenedJWSInput> {

payload: string
signatures: Omit<FlattenedJWSInput, 'payload'>[]
signatures: Omit<FlattenedJWSInput, 'paylo'>[]
}

@@ -58,0 +58,0 @@ export interface JoseHeaderParameters {

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

import type { JWSHeaderParameters, JWEHeaderParameters } from '../types.d';
import type { JWSHeaderParameters, JWEHeaderParameters } from '../types';
export declare type ProtectedHeaderParameters = JWSHeaderParameters & JWEHeaderParameters;

@@ -3,0 +3,0 @@ declare function decodeProtectedHeader(token: string | object): ProtectedHeaderParameters;

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

import type { KeyLike } from '../types.d';
import type { KeyLike } from '../types';
export interface GenerateKeyPairResult {

@@ -3,0 +3,0 @@ privateKey: KeyLike;

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

import type { KeyLike } from '../types.d';
import type { KeyLike } from '../types';
export interface GenerateSecretOptions {

@@ -3,0 +3,0 @@ extractable?: boolean;

{
"name": "jose-browser-runtime",
"version": "3.15.1",
"version": "3.15.2",
"description": "(Browser Runtime) 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies",

@@ -5,0 +5,0 @@ "keywords": [

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