jose-node-esm-runtime
Advanced tools
Comparing version 4.3.6 to 4.3.7
import { Buffer } from 'buffer'; | ||
import { KeyObject, createDecipheriv, createCipheriv } from 'crypto'; | ||
import { KeyObject, createDecipheriv, createCipheriv, createSecretKey } from 'crypto'; | ||
import { JOSENotSupported } from '../util/errors.js'; | ||
import { concat } from '../lib/buffer_utils.js'; | ||
import getSecretKey from './secret_key.js'; | ||
import { isCryptoKey } from './webcrypto.js'; | ||
@@ -22,3 +21,3 @@ import { checkEncCryptoKey } from '../lib/crypto_key.js'; | ||
if (key instanceof Uint8Array) { | ||
return getSecretKey(key); | ||
return createSecretKey(key); | ||
} | ||
@@ -25,0 +24,0 @@ if (isCryptoKey(key)) { |
@@ -1,5 +0,4 @@ | ||
import { KeyObject } from 'crypto'; | ||
import { KeyObject, createSecretKey } from 'crypto'; | ||
import { isCryptoKey } from './webcrypto.js'; | ||
import { checkSigCryptoKey } from '../lib/crypto_key.js'; | ||
import getSecretKey from './secret_key.js'; | ||
import invalidKeyInput from '../lib/invalid_key_input.js'; | ||
@@ -12,3 +11,3 @@ import { types } from './is_key_like.js'; | ||
} | ||
return getSecretKey(key); | ||
return createSecretKey(key); | ||
} | ||
@@ -15,0 +14,0 @@ if (key instanceof KeyObject) { |
@@ -265,3 +265,3 @@ /** | ||
export interface JWTHeaderParameters extends CompactJWSHeaderParameters { | ||
b64?: never | ||
b64?: true | ||
} | ||
@@ -268,0 +268,0 @@ export interface CompactJWEHeaderParameters extends JWEHeaderParameters { |
{ | ||
"name": "jose-node-esm-runtime", | ||
"version": "4.3.6", | ||
"version": "4.3.7", | ||
"homepage": "https://github.com/panva/jose", | ||
@@ -5,0 +5,0 @@ "repository": "panva/jose", |
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
175073
113
4432