@peculiar/jose
Advanced tools
Comparing version 1.6.1 to 1.7.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./jwa"), exports); | ||
tslib_1.__exportStar(require("./jwk"), exports); | ||
tslib_1.__exportStar(require("./jws"), exports); | ||
(0, tslib_1.__exportStar)(require("./jwa"), exports); | ||
(0, tslib_1.__exportStar)(require("./jwk"), exports); | ||
(0, tslib_1.__exportStar)(require("./jws"), exports); |
@@ -8,3 +8,3 @@ "use strict"; | ||
const key_types_1 = require("./key_types"); | ||
const pvtsutils = require("pvtsutils"); | ||
const pvtsutils = (0, tslib_1.__importStar)(require("pvtsutils")); | ||
class JsonWebKey { | ||
@@ -14,3 +14,3 @@ constructor(cryptoProvider, params = {}) { | ||
Object.assign(this, params); | ||
tslib_1.__classPrivateFieldSet(this, _JsonWebKey_cryptoProvider, cryptoProvider, "f"); | ||
(0, tslib_1.__classPrivateFieldSet)(this, _JsonWebKey_cryptoProvider, cryptoProvider, "f"); | ||
} | ||
@@ -20,3 +20,3 @@ async exportKey(...args) { | ||
let keyUsages = ["verify"]; | ||
let crypto = tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f"); | ||
let crypto = (0, 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 tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f").subtle.digest({ | ||
const hash = await (0, tslib_1.__classPrivateFieldGet)(this, _JsonWebKey_cryptoProvider, "f").subtle.digest({ | ||
name: alg, | ||
@@ -99,3 +99,3 @@ }, pvtsutils.BufferSourceConverter.toUint8Array(pvtsutils.Convert.FromUtf8String(json))); | ||
}; | ||
return await tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]); | ||
return await (0, tslib_1.__classPrivateFieldGet)(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]); | ||
} | ||
@@ -107,3 +107,3 @@ async getRsaPublicKey() { | ||
}; | ||
return await tslib_1.__classPrivateFieldGet(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]); | ||
return await (0, tslib_1.__classPrivateFieldGet)(this, _JsonWebKey_cryptoProvider, "f").subtle.importKey("jwk", this, alg, true, ["verify"]); | ||
} | ||
@@ -110,0 +110,0 @@ } |
{ | ||
"name": "@peculiar/jose", | ||
"version": "1.6.1", | ||
"version": "1.7.0", | ||
"description": "Implementation of Javascript Object Signing and Encryption (jose)", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"pvtsutils": "^1.1.6" | ||
"pvtsutils": "^1.2.1" | ||
}, | ||
@@ -48,3 +48,3 @@ "scripts": { | ||
"homepage": "https://github.com/PeculiarVentures/acme-ts#readme", | ||
"gitHead": "3368f601d1ffb048a9dc9ffb6e69fcbd3d7669d8" | ||
"gitHead": "545ed632e0ada0541101cfcd3c7e4e025d43991c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74463
Updatedpvtsutils@^1.2.1