{"action":"created","issue":{"url":"https://api.github.com/repos/findhit/util/issues/34","labels_url":"https://api.github.com/repos/findhit/util/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/findhit/util/issues/34/comments","events_url":"https://api.github.com/repos/findhit/util/issues/34/events","html_url":"https://github.com/findhit/util/issues/34","id":57310430,"number":34,"title":"Util.is. failing in comparisons","user":{"login":"ajbloureiro","id":1178701,"avatar_url":"https://avatars.githubusercontent.com/u/1178701?v=3","gravatar_id":"","url":"https://api.github.com/users/ajbloureiro","html_url":"https://github.com/ajbloureiro","followers_url":"https://api.github.com/users/ajbloureiro/followers","following_url":"https://api.github.com/users/ajbloureiro/following{/other_user}","gists_url":"https://api.github.com/users/ajbloureiro/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbloureiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbloureiro/subscriptions","organizations_url":"https://api.github.com/users/ajbloureiro/orgs","repos_url":"https://api.github.com/users/ajbloureiro/repos","events_url":"https://api.github.com/users/ajbloureiro/events{/privacy}","received_events_url":"https://api.github.com/users/ajbloureiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-11T12:35:50Z","updated_at":"2015-02-11T12:46:45Z","closed_at":null,"body":"there's a failing comparison in the Socialite middleware starting at line 240\r\n\r\nvalidSession: function ( session ) \r\nuses Util.is.<type> which in the first comparison Util.is.Object(session) and the last Util.is.String(session.socialite.redirectUrl) fails when it shouldn't\r\n\r\nhad to rewrite the comparison to the following which finally worked\r\n\r\nsession instanceof Object && typeof session === 'object' &&\r\nsession.socialite instanceof Object && typeof session.socialite === 'object' &&\r\nsession.socialite.accounts instanceof Object && typeof session.socialite.accounts === 'object' &&\r\ntypeof session.socialite.redirectURL === 'string';"},"comment":{"url":"https://api.github.com/repos/findhit/util/issues/comments/73875525","html_url":"https://github.com/findhit/util/issues/34#issuecomment-73875525","issue_url":"https://api.github.com/repos/findhit/util/issues/34","id":73875525,"user":{"login":"ajbloureiro","id":1178701,"avatar_url":"https://avatars.githubusercontent.com/u/1178701?v=3","gravatar_id":"","url":"https://api.github.com/users/ajbloureiro","html_url":"https://github.com/ajbloureiro","followers_url":"https://api.github.com/users/ajbloureiro/followers","following_url":"https://api.github.com/users/ajbloureiro/following{/other_user}","gists_url":"https://api.github.com/users/ajbloureiro/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbloureiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbloureiro/subscriptions","organizations_url":"https://api.github.com/users/ajbloureiro/orgs","repos_url":"https://api.github.com/users/ajbloureiro/repos","events_url":"https://api.github.com/users/ajbloureiro/events{/privacy}","received_events_url":"https://api.github.com/users/ajbloureiro/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T12:46:45Z","updated_at":"2015-02-11T12:46:45Z","body":"I've said it already ;)"}}