{"action":"created","comment":{"url":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/comments/73871976","id":73871976,"diff_hunk":"@@ -127,7 +128,7 @@ AnsiSerializer.prototype.text = function (options) {\n \n                 var open = ansiStyles[styleName].open;\n                 var close = ansiStyles[styleName].close;\n-                if (color16Hex !== color256Hex) {\n+                if (this.supportsColor.has256) {","path":"lib/AnsiSerializer.js","position":13,"original_position":13,"commit_id":"aeaa9975b0b6756e0fe757e54e20dae9b1a6bb31","original_commit_id":"aeaa9975b0b6756e0fe757e54e20dae9b1a6bb31","user":{"login":"papandreou","id":373545,"avatar_url":"https://avatars.githubusercontent.com/u/373545?v=3","gravatar_id":"","url":"https://api.github.com/users/papandreou","html_url":"https://github.com/papandreou","followers_url":"https://api.github.com/users/papandreou/followers","following_url":"https://api.github.com/users/papandreou/following{/other_user}","gists_url":"https://api.github.com/users/papandreou/gists{/gist_id}","starred_url":"https://api.github.com/users/papandreou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papandreou/subscriptions","organizations_url":"https://api.github.com/users/papandreou/orgs","repos_url":"https://api.github.com/users/papandreou/repos","events_url":"https://api.github.com/users/papandreou/events{/privacy}","received_events_url":"https://api.github.com/users/papandreou/received_events","type":"User","site_admin":false},"body":"We can avoid outputting both the 256 color and 16 color preambles here if the terminal supports it (can be fixed subsequently).","created_at":"2016-08-08T13:12:23Z","updated_at":"2016-08-08T13:12:23Z","html_url":"https://github.com/sunesimonsen/magicpen/pull/21#discussion_r73871976","pull_request_url":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/comments/73871976"},"html":{"href":"https://github.com/sunesimonsen/magicpen/pull/21#discussion_r73871976"},"pull_request":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21","id":80445233,"html_url":"https://github.com/sunesimonsen/magicpen/pull/21","diff_url":"https://github.com/sunesimonsen/magicpen/pull/21.diff","patch_url":"https://github.com/sunesimonsen/magicpen/pull/21.patch","issue_url":"https://api.github.com/repos/sunesimonsen/magicpen/issues/21","number":21,"state":"open","locked":false,"title":"Updated supports-color package, using better detection fidelity.","user":{"login":"gertsonderby","id":783639,"avatar_url":"https://avatars.githubusercontent.com/u/783639?v=3","gravatar_id":"","url":"https://api.github.com/users/gertsonderby","html_url":"https://github.com/gertsonderby","followers_url":"https://api.github.com/users/gertsonderby/followers","following_url":"https://api.github.com/users/gertsonderby/following{/other_user}","gists_url":"https://api.github.com/users/gertsonderby/gists{/gist_id}","starred_url":"https://api.github.com/users/gertsonderby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gertsonderby/subscriptions","organizations_url":"https://api.github.com/users/gertsonderby/orgs","repos_url":"https://api.github.com/users/gertsonderby/repos","events_url":"https://api.github.com/users/gertsonderby/events{/privacy}","received_events_url":"https://api.github.com/users/gertsonderby/received_events","type":"User","site_admin":false},"body":"There's some basis for refactoring the code based on the capabilities that `supports-color` now has.\r\n\r\nTests mock it out as a 256-color capable terminal.","created_at":"2016-08-08T12:49:59Z","updated_at":"2016-08-08T13:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"454e3213ca633ef294982e567b2048b25defef6e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21/commits","review_comments_url":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21/comments","review_comment_url":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sunesimonsen/magicpen/issues/21/comments","statuses_url":"https://api.github.com/repos/sunesimonsen/magicpen/statuses/aeaa9975b0b6756e0fe757e54e20dae9b1a6bb31","head":{"label":"gertsonderby:master","ref":"master","sha":"aeaa9975b0b6756e0fe757e54e20dae9b1a6bb31","user":{"login":"gertsonderby","id":783639,"avatar_url":"https://avatars.githubusercontent.com/u/783639?v=3","gravatar_id":"","url":"https://api.github.com/users/gertsonderby","html_url":"https://github.com/gertsonderby","followers_url":"https://api.github.com/users/gertsonderby/followers","following_url":"https://api.github.com/users/gertsonderby/following{/other_user}","gists_url":"https://api.github.com/users/gertsonderby/gists{/gist_id}","starred_url":"https://api.github.com/users/gertsonderby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gertsonderby/subscriptions","organizations_url":"https://api.github.com/users/gertsonderby/orgs","repos_url":"https://api.github.com/users/gertsonderby/repos","events_url":"https://api.github.com/users/gertsonderby/events{/privacy}","received_events_url":"https://api.github.com/users/gertsonderby/received_events","type":"User","site_admin":false},"repo":{"id":65182664,"name":"magicpen","full_name":"gertsonderby/magicpen","owner":{"login":"gertsonderby","id":783639,"avatar_url":"https://avatars.githubusercontent.com/u/783639?v=3","gravatar_id":"","url":"https://api.github.com/users/gertsonderby","html_url":"https://github.com/gertsonderby","followers_url":"https://api.github.com/users/gertsonderby/followers","following_url":"https://api.github.com/users/gertsonderby/following{/other_user}","gists_url":"https://api.github.com/users/gertsonderby/gists{/gist_id}","starred_url":"https://api.github.com/users/gertsonderby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gertsonderby/subscriptions","organizations_url":"https://api.github.com/users/gertsonderby/orgs","repos_url":"https://api.github.com/users/gertsonderby/repos","events_url":"https://api.github.com/users/gertsonderby/events{/privacy}","received_events_url":"https://api.github.com/users/gertsonderby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gertsonderby/magicpen","description":"Styled output in both consoles and browsers","fork":true,"url":"https://api.github.com/repos/gertsonderby/magicpen","forks_url":"https://api.github.com/repos/gertsonderby/magicpen/forks","keys_url":"https://api.github.com/repos/gertsonderby/magicpen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gertsonderby/magicpen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gertsonderby/magicpen/teams","hooks_url":"https://api.github.com/repos/gertsonderby/magicpen/hooks","issue_events_url":"https://api.github.com/repos/gertsonderby/magicpen/issues/events{/number}","events_url":"https://api.github.com/repos/gertsonderby/magicpen/events","assignees_url":"https://api.github.com/repos/gertsonderby/magicpen/assignees{/user}","branches_url":"https://api.github.com/repos/gertsonderby/magicpen/branches{/branch}","tags_url":"https://api.github.com/repos/gertsonderby/magicpen/tags","blobs_url":"https://api.github.com/repos/gertsonderby/magicpen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gertsonderby/magicpen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gertsonderby/magicpen/git/refs{/sha}","trees_url":"https://api.github.com/repos/gertsonderby/magicpen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gertsonderby/magicpen/statuses/{sha}","languages_url":"https://api.github.com/repos/gertsonderby/magicpen/languages","stargazers_url":"https://api.github.com/repos/gertsonderby/magicpen/stargazers","contributors_url":"https://api.github.com/repos/gertsonderby/magicpen/contributors","subscribers_url":"https://api.github.com/repos/gertsonderby/magicpen/subscribers","subscription_url":"https://api.github.com/repos/gertsonderby/magicpen/subscription","commits_url":"https://api.github.com/repos/gertsonderby/magicpen/commits{/sha}","git_commits_url":"https://api.github.com/repos/gertsonderby/magicpen/git/commits{/sha}","comments_url":"https://api.github.com/repos/gertsonderby/magicpen/comments{/number}","issue_comment_url":"https://api.github.com/repos/gertsonderby/magicpen/issues/comments{/number}","contents_url":"https://api.github.com/repos/gertsonderby/magicpen/contents/{+path}","compare_url":"https://api.github.com/repos/gertsonderby/magicpen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gertsonderby/magicpen/merges","archive_url":"https://api.github.com/repos/gertsonderby/magicpen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gertsonderby/magicpen/downloads","issues_url":"https://api.github.com/repos/gertsonderby/magicpen/issues{/number}","pulls_url":"https://api.github.com/repos/gertsonderby/magicpen/pulls{/number}","milestones_url":"https://api.github.com/repos/gertsonderby/magicpen/milestones{/number}","notifications_url":"https://api.github.com/repos/gertsonderby/magicpen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gertsonderby/magicpen/labels{/name}","releases_url":"https://api.github.com/repos/gertsonderby/magicpen/releases{/id}","deployments_url":"https://api.github.com/repos/gertsonderby/magicpen/deployments","created_at":"2016-08-08T07:30:24Z","updated_at":"2016-08-08T07:30:26Z","pushed_at":"2016-08-08T12:47:08Z","git_url":"git://github.com/gertsonderby/magicpen.git","ssh_url":"git@github.com:gertsonderby/magicpen.git","clone_url":"https://github.com/gertsonderby/magicpen.git","svn_url":"https://github.com/gertsonderby/magicpen","homepage":null,"size":783,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sunesimonsen:master","ref":"master","sha":"cfda30a07112ba1cbe74365ca3f6d43376656393","user":{"login":"sunesimonsen","id":90802,"avatar_url":"https://avatars.githubusercontent.com/u/90802?v=3","gravatar_id":"","url":"https://api.github.com/users/sunesimonsen","html_url":"https://github.com/sunesimonsen","followers_url":"https://api.github.com/users/sunesimonsen/followers","following_url":"https://api.github.com/users/sunesimonsen/following{/other_user}","gists_url":"https://api.github.com/users/sunesimonsen/gists{/gist_id}","starred_url":"https://api.github.com/users/sunesimonsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunesimonsen/subscriptions","organizations_url":"https://api.github.com/users/sunesimonsen/orgs","repos_url":"https://api.github.com/users/sunesimonsen/repos","events_url":"https://api.github.com/users/sunesimonsen/events{/privacy}","received_events_url":"https://api.github.com/users/sunesimonsen/received_events","type":"User","site_admin":false},"repo":{"id":21518436,"name":"magicpen","full_name":"sunesimonsen/magicpen","owner":{"login":"sunesimonsen","id":90802,"avatar_url":"https://avatars.githubusercontent.com/u/90802?v=3","gravatar_id":"","url":"https://api.github.com/users/sunesimonsen","html_url":"https://github.com/sunesimonsen","followers_url":"https://api.github.com/users/sunesimonsen/followers","following_url":"https://api.github.com/users/sunesimonsen/following{/other_user}","gists_url":"https://api.github.com/users/sunesimonsen/gists{/gist_id}","starred_url":"https://api.github.com/users/sunesimonsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunesimonsen/subscriptions","organizations_url":"https://api.github.com/users/sunesimonsen/orgs","repos_url":"https://api.github.com/users/sunesimonsen/repos","events_url":"https://api.github.com/users/sunesimonsen/events{/privacy}","received_events_url":"https://api.github.com/users/sunesimonsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sunesimonsen/magicpen","description":"Styled output in both consoles and browsers","fork":false,"url":"https://api.github.com/repos/sunesimonsen/magicpen","forks_url":"https://api.github.com/repos/sunesimonsen/magicpen/forks","keys_url":"https://api.github.com/repos/sunesimonsen/magicpen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunesimonsen/magicpen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunesimonsen/magicpen/teams","hooks_url":"https://api.github.com/repos/sunesimonsen/magicpen/hooks","issue_events_url":"https://api.github.com/repos/sunesimonsen/magicpen/issues/events{/number}","events_url":"https://api.github.com/repos/sunesimonsen/magicpen/events","assignees_url":"https://api.github.com/repos/sunesimonsen/magicpen/assignees{/user}","branches_url":"https://api.github.com/repos/sunesimonsen/magicpen/branches{/branch}","tags_url":"https://api.github.com/repos/sunesimonsen/magicpen/tags","blobs_url":"https://api.github.com/repos/sunesimonsen/magicpen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunesimonsen/magicpen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunesimonsen/magicpen/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunesimonsen/magicpen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunesimonsen/magicpen/statuses/{sha}","languages_url":"https://api.github.com/repos/sunesimonsen/magicpen/languages","stargazers_url":"https://api.github.com/repos/sunesimonsen/magicpen/stargazers","contributors_url":"https://api.github.com/repos/sunesimonsen/magicpen/contributors","subscribers_url":"https://api.github.com/repos/sunesimonsen/magicpen/subscribers","subscription_url":"https://api.github.com/repos/sunesimonsen/magicpen/subscription","commits_url":"https://api.github.com/repos/sunesimonsen/magicpen/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunesimonsen/magicpen/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunesimonsen/magicpen/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunesimonsen/magicpen/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunesimonsen/magicpen/contents/{+path}","compare_url":"https://api.github.com/repos/sunesimonsen/magicpen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunesimonsen/magicpen/merges","archive_url":"https://api.github.com/repos/sunesimonsen/magicpen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunesimonsen/magicpen/downloads","issues_url":"https://api.github.com/repos/sunesimonsen/magicpen/issues{/number}","pulls_url":"https://api.github.com/repos/sunesimonsen/magicpen/pulls{/number}","milestones_url":"https://api.github.com/repos/sunesimonsen/magicpen/milestones{/number}","notifications_url":"https://api.github.com/repos/sunesimonsen/magicpen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunesimonsen/magicpen/labels{/name}","releases_url":"https://api.github.com/repos/sunesimonsen/magicpen/releases{/id}","deployments_url":"https://api.github.com/repos/sunesimonsen/magicpen/deployments","created_at":"2014-07-05T11:14:00Z","updated_at":"2016-07-06T17:33:29Z","pushed_at":"2016-08-08T12:49:59Z","git_url":"git://github.com/sunesimonsen/magicpen.git","ssh_url":"git@github.com:sunesimonsen/magicpen.git","clone_url":"https://github.com/sunesimonsen/magicpen.git","svn_url":"https://github.com/sunesimonsen/magicpen","homepage":null,"size":782,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21"},"html":{"href":"https://github.com/sunesimonsen/magicpen/pull/21"},"issue":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/issues/21"},"comments":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/sunesimonsen/magicpen/statuses/aeaa9975b0b6756e0fe757e54e20dae9b1a6bb31"}}}}
{"actor":{"display_login":"papandreou"}}