{"action":"created","issue":{"url":"https://api.github.com/repos/mscdex/node-mariasql/issues/142","repository_url":"https://api.github.com/repos/mscdex/node-mariasql","labels_url":"https://api.github.com/repos/mscdex/node-mariasql/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/mscdex/node-mariasql/issues/142/comments","events_url":"https://api.github.com/repos/mscdex/node-mariasql/issues/142/events","html_url":"https://github.com/mscdex/node-mariasql/issues/142","id":149702789,"number":142,"title":"Drop eval usage","user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-20T08:49:20Z","updated_at":"2016-04-20T13:21:03Z","closed_at":null,"body":"This package uses `new Function` in `createRowBuilder` present in `$root/lib/Client.js`.\r\n\r\nEval usage disallows use of this module in [Electron](https://github.com/electron/electron)\r\n\r\nThe error it produces is\r\n```\r\nRefused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: \"script-src 'self'\".\r\n```"},"comment":{"url":"https://api.github.com/repos/mscdex/node-mariasql/issues/comments/212421534","html_url":"https://github.com/mscdex/node-mariasql/issues/142#issuecomment-212421534","issue_url":"https://api.github.com/repos/mscdex/node-mariasql/issues/142","id":212421534,"user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T13:21:03Z","updated_at":"2016-04-20T13:21:03Z","body":"Last I checked it was. It's basically used to avoid placing objects in dictionary mode and creating a bunch of hidden classes after object creation."}}