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

@peculiar/jose

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peculiar/jose - npm Package Compare versions

Comparing version 1.7.2 to 1.8.2

6

build/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./jwa"), exports);
(0, tslib_1.__exportStar)(require("./jwk"), exports);
(0, tslib_1.__exportStar)(require("./jws"), exports);
tslib_1.__exportStar(require("./jwa"), exports);
tslib_1.__exportStar(require("./jwk"), exports);
tslib_1.__exportStar(require("./jws"), exports);

@@ -8,3 +8,3 @@ "use strict";

const key_types_1 = require("./key_types");
const pvtsutils = (0, tslib_1.__importStar)(require("pvtsutils"));
const pvtsutils = tslib_1.__importStar(require("pvtsutils"));
class JsonWebKey {

@@ -14,3 +14,3 @@ constructor(cryptoProvider, params = {}) {

Object.assign(this, params);
(0, tslib_1.__classPrivateFieldSet)(this, _JsonWebKey_cryptoProvider, cryptoProvider, "f");
tslib_1.__classPrivateFieldSet(this, _JsonWebKey_cryptoProvider, cryptoProvider, "f");
}

@@ -20,3 +20,3 @@ async exportKey(...args) {

let keyUsages = ["verify"];
let crypto = (0, tslib_1.__classPrivateFieldGet)(this, _JsonWebKey_cryptoProvider, "f");
let crypto = tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f");
if (arguments.length < 2) {

@@ -79,3 +79,3 @@ crypto = args[0] || crypto;

async digest(json, alg) {
const hash = await (0, tslib_1.__classPrivateFieldGet)(this, _JsonWebKey_cryptoProvider, "f").subtle.digest({
const hash = await tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f").subtle.digest({
name: alg,

@@ -99,3 +99,3 @@ }, pvtsutils.BufferSourceConverter.toUint8Array(pvtsutils.Convert.FromUtf8String(json)));

};
return await (0, tslib_1.__classPrivateFieldGet)(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]);
return await tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]);
}

@@ -107,3 +107,3 @@ async getRsaPublicKey() {

};
return await (0, tslib_1.__classPrivateFieldGet)(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]);
return await tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]);
}

@@ -110,0 +110,0 @@ }

{
"name": "@peculiar/jose",
"version": "1.7.2",
"version": "1.8.2",
"description": "Implementation of Javascript Object Signing and Encryption (jose)",

@@ -47,3 +47,3 @@ "keywords": [

"homepage": "https://github.com/PeculiarVentures/acme-ts#readme",
"gitHead": "a7c045bc82a70a84d2079eb336742f7d2ade8749"
"gitHead": "1284b8f912200b9ef98dceb641a0baee169b91b9"
}
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