Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alokmenghrajani committed Oct 25, 2016
1 parent e505e6b commit 34f9ccc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
8 changes: 8 additions & 0 deletions dist/jose-commonjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,14 @@ Utils.isCryptoKey = function(rsa_key) {
if (rsa_key.constructor.name == 'CryptoKey') {
return true;
}

// In the presence of minifiers, relying on class names can be problematic,
// so let's also allow objects that have an 'algorithm' property.
if (rsa_key.hasOwnProperty('algorithm')) {
return true;
}

return false;
};

/*-
Expand Down
8 changes: 8 additions & 0 deletions dist/jose-testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,14 @@ Utils.isCryptoKey = function(rsa_key) {
if (rsa_key.constructor.name == 'CryptoKey') {
return true;
}

// In the presence of minifiers, relying on class names can be problematic,
// so let's also allow objects that have an 'algorithm' property.
if (rsa_key.hasOwnProperty('algorithm')) {
return true;
}

return false;
};

/*-
Expand Down
8 changes: 8 additions & 0 deletions dist/jose.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,14 @@ Utils.isCryptoKey = function(rsa_key) {
if (rsa_key.constructor.name == 'CryptoKey') {
return true;
}

// In the presence of minifiers, relying on class names can be problematic,
// so let's also allow objects that have an 'algorithm' property.
if (rsa_key.hasOwnProperty('algorithm')) {
return true;
}

return false;
};

/*-
Expand Down
Loading

0 comments on commit 34f9ccc

Please sign in to comment.