{"action":"created","issue":{"url":"https://api.github.com/repos/hueniverse/hawk/issues/223","repository_url":"https://api.github.com/repos/hueniverse/hawk","labels_url":"https://api.github.com/repos/hueniverse/hawk/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/hueniverse/hawk/issues/223/comments","events_url":"https://api.github.com/repos/hueniverse/hawk/issues/223/events","html_url":"https://github.com/hueniverse/hawk/issues/223","id":273172514,"number":223,"title":"ReferenceError: result is not defined","user":{"login":"wrnx","id":6766073,"avatar_url":"https://avatars0.githubusercontent.com/u/6766073?v=4","gravatar_id":"","url":"https://api.github.com/users/wrnx","html_url":"https://github.com/wrnx","followers_url":"https://api.github.com/users/wrnx/followers","following_url":"https://api.github.com/users/wrnx/following{/other_user}","gists_url":"https://api.github.com/users/wrnx/gists{/gist_id}","starred_url":"https://api.github.com/users/wrnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrnx/subscriptions","organizations_url":"https://api.github.com/users/wrnx/orgs","repos_url":"https://api.github.com/users/wrnx/repos","events_url":"https://api.github.com/users/wrnx/events{/privacy}","received_events_url":"https://api.github.com/users/wrnx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-11T20:10:03Z","updated_at":"2017-11-17T14:19:39Z","closed_at":null,"author_association":"NONE","body":"This issue was introduced in #216 as result of minifying the `dist/browser.js` file. See babel/minify#594.\r\n\r\n```\r\nERROR ReferenceError: result is not defined\r\n    at Object.randomString (browser.js:1)\r\n    at Object.header (browser.js:1)\r\n    [...]\r\n```\r\n\r\nRelevant part of the `dist/browser.js` file prettified:\r\n```\r\n// [...]\r\nhawk.utils = {\r\n  // [...]\r\n  randomString: function randomString(c) {\r\n    for (var d = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', e = d.length, f = [], g = 0; g < c; ++g)\r\n      f[g] = d[Math.floor(Math.random() * e)];\r\n    return result.join('')\r\n  },\r\n  // [...]\r\n};\r\n// [...]\r\n```"},"comment":{"url":"https://api.github.com/repos/hueniverse/hawk/issues/comments/345255734","html_url":"https://github.com/hueniverse/hawk/issues/223#issuecomment-345255734","issue_url":"https://api.github.com/repos/hueniverse/hawk/issues/223","id":345255734,"user":{"login":"steffenmllr","id":449563,"avatar_url":"https://avatars0.githubusercontent.com/u/449563?v=4","gravatar_id":"","url":"https://api.github.com/users/steffenmllr","html_url":"https://github.com/steffenmllr","followers_url":"https://api.github.com/users/steffenmllr/followers","following_url":"https://api.github.com/users/steffenmllr/following{/other_user}","gists_url":"https://api.github.com/users/steffenmllr/gists{/gist_id}","starred_url":"https://api.github.com/users/steffenmllr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffenmllr/subscriptions","organizations_url":"https://api.github.com/users/steffenmllr/orgs","repos_url":"https://api.github.com/users/steffenmllr/repos","events_url":"https://api.github.com/users/steffenmllr/events{/privacy}","received_events_url":"https://api.github.com/users/steffenmllr/received_events","type":"User","site_admin":false},"created_at":"2017-11-17T14:19:39Z","updated_at":"2017-11-17T14:19:39Z","author_association":"NONE","body":"Same Error here. Since I'm using babel anyway `import Hawk from 'hawk/lib/browser';` fixed the issue for me."}}
{"actor":{"display_login":"steffenmllr"}}