Skip to content

Commit

Permalink
Fix isString call
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldijou committed Feb 25, 2016
1 parent 6fd41b9 commit ee81e5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jwt-client",
"main": "jwt-client.js",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/pauldijou/jwt-client",
"authors": [
"Paul Dijou <[email protected]> (http://pauldijou.fr)"
Expand Down
2 changes: 1 addition & 1 deletion jwt-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
// Just a little bit copy/pasted from Lodash
function isString(value) {
return typeof value == 'string' ||
(value && typeof value == 'object' && toString.call(value) == '[object String]') || false;
(value && typeof value == 'object' && Object.prototype.toString.call(value) == '[object String]') || false;
}

function normalize(key, storage) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jwt-client",
"description": "Micro service to read, write and save JWT headers",
"version": "0.2.0",
"version": "0.2.1",
"author": "Paul Dijou <[email protected]> (http://pauldijou.fr)",
"license": "Apache 2",
"homepage": "https://github.com/pauldijou/jwt-client",
Expand Down

0 comments on commit ee81e5e

Please sign in to comment.