jose 4.3.5 → 4.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,8 @@ const [major, minor] = process.version
8
8
  .substr(1)
9
9
  .split('.')
10
10
  .map((str) => parseInt(str, 10));
11
- const rsaPssParams = major >= 17 || (major === 16 && minor >= 9);
11
+ const electron = 'electron' in process.versions;
12
+ const rsaPssParams = !electron && (major >= 17 || (major === 16 && minor >= 9));
12
13
  const PSS = {
13
14
  padding: crypto_1.constants.RSA_PKCS1_PSS_PADDING,
14
15
  saltLength: crypto_1.constants.RSA_PSS_SALTLEN_DIGEST,
@@ -6,7 +6,8 @@ const [major, minor] = process.version
6
6
  .substr(1)
7
7
  .split('.')
8
8
  .map((str) => parseInt(str, 10));
9
- const rsaPssParams = major >= 17 || (major === 16 && minor >= 9);
9
+ const electron = 'electron' in process.versions;
10
+ const rsaPssParams = !electron && (major >= 17 || (major === 16 && minor >= 9));
10
11
  const PSS = {
11
12
  padding: constants.RSA_PKCS1_PSS_PADDING,
12
13
  saltLength: constants.RSA_PSS_SALTLEN_DIGEST,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "description": "'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto",
5
5
  "keywords": [
6
6
  "browser",