{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/1","id":56583467,"html_url":"https://github.com/sindresorhus/caller-callsite/pull/1","diff_url":"https://github.com/sindresorhus/caller-callsite/pull/1.diff","patch_url":"https://github.com/sindresorhus/caller-callsite/pull/1.patch","issue_url":"https://api.github.com/repos/sindresorhus/caller-callsite/issues/1","number":1,"state":"open","locked":false,"title":"Use getTypeName() instead of receiver","user":{"login":"tomhughes","id":147741,"avatar_url":"https://avatars.githubusercontent.com/u/147741?v=3","gravatar_id":"","url":"https://api.github.com/users/tomhughes","html_url":"https://github.com/tomhughes","followers_url":"https://api.github.com/users/tomhughes/followers","following_url":"https://api.github.com/users/tomhughes/following{/other_user}","gists_url":"https://api.github.com/users/tomhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/tomhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomhughes/subscriptions","organizations_url":"https://api.github.com/users/tomhughes/orgs","repos_url":"https://api.github.com/users/tomhughes/repos","events_url":"https://api.github.com/users/tomhughes/events{/privacy}","received_events_url":"https://api.github.com/users/tomhughes/received_events","type":"User","site_admin":false},"body":"As receiver is now a private property we can't see it in newer versions of Node.js so use getTypeName() instead.\r\n\r\nI basically derived this from https://chromium.googlesource.com/v8/v8/+/4.3.49/src/messages.js?autodive=0%2F%2F#810 where we can see that `getTypeName` gets the type name (if any) of the receiver.","created_at":"2016-01-20T09:37:02Z","updated_at":"2016-01-20T09:37:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/caller-callsite/issues/1/comments","statuses_url":"https://api.github.com/repos/sindresorhus/caller-callsite/statuses/ba9fd93f5c5a7325fb2e326aeb4b065962c3de8e","head":{"label":"tomhughes:receiver","ref":"receiver","sha":"ba9fd93f5c5a7325fb2e326aeb4b065962c3de8e","user":{"login":"tomhughes","id":147741,"avatar_url":"https://avatars.githubusercontent.com/u/147741?v=3","gravatar_id":"","url":"https://api.github.com/users/tomhughes","html_url":"https://github.com/tomhughes","followers_url":"https://api.github.com/users/tomhughes/followers","following_url":"https://api.github.com/users/tomhughes/following{/other_user}","gists_url":"https://api.github.com/users/tomhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/tomhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomhughes/subscriptions","organizations_url":"https://api.github.com/users/tomhughes/orgs","repos_url":"https://api.github.com/users/tomhughes/repos","events_url":"https://api.github.com/users/tomhughes/events{/privacy}","received_events_url":"https://api.github.com/users/tomhughes/received_events","type":"User","site_admin":false},"repo":{"id":50019143,"name":"caller-callsite","full_name":"tomhughes/caller-callsite","owner":{"login":"tomhughes","id":147741,"avatar_url":"https://avatars.githubusercontent.com/u/147741?v=3","gravatar_id":"","url":"https://api.github.com/users/tomhughes","html_url":"https://github.com/tomhughes","followers_url":"https://api.github.com/users/tomhughes/followers","following_url":"https://api.github.com/users/tomhughes/following{/other_user}","gists_url":"https://api.github.com/users/tomhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/tomhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomhughes/subscriptions","organizations_url":"https://api.github.com/users/tomhughes/orgs","repos_url":"https://api.github.com/users/tomhughes/repos","events_url":"https://api.github.com/users/tomhughes/events{/privacy}","received_events_url":"https://api.github.com/users/tomhughes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomhughes/caller-callsite","description":"Get the callsite of the caller function","fork":true,"url":"https://api.github.com/repos/tomhughes/caller-callsite","forks_url":"https://api.github.com/repos/tomhughes/caller-callsite/forks","keys_url":"https://api.github.com/repos/tomhughes/caller-callsite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomhughes/caller-callsite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomhughes/caller-callsite/teams","hooks_url":"https://api.github.com/repos/tomhughes/caller-callsite/hooks","issue_events_url":"https://api.github.com/repos/tomhughes/caller-callsite/issues/events{/number}","events_url":"https://api.github.com/repos/tomhughes/caller-callsite/events","assignees_url":"https://api.github.com/repos/tomhughes/caller-callsite/assignees{/user}","branches_url":"https://api.github.com/repos/tomhughes/caller-callsite/branches{/branch}","tags_url":"https://api.github.com/repos/tomhughes/caller-callsite/tags","blobs_url":"https://api.github.com/repos/tomhughes/caller-callsite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomhughes/caller-callsite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomhughes/caller-callsite/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomhughes/caller-callsite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomhughes/caller-callsite/statuses/{sha}","languages_url":"https://api.github.com/repos/tomhughes/caller-callsite/languages","stargazers_url":"https://api.github.com/repos/tomhughes/caller-callsite/stargazers","contributors_url":"https://api.github.com/repos/tomhughes/caller-callsite/contributors","subscribers_url":"https://api.github.com/repos/tomhughes/caller-callsite/subscribers","subscription_url":"https://api.github.com/repos/tomhughes/caller-callsite/subscription","commits_url":"https://api.github.com/repos/tomhughes/caller-callsite/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomhughes/caller-callsite/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomhughes/caller-callsite/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomhughes/caller-callsite/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomhughes/caller-callsite/contents/{+path}","compare_url":"https://api.github.com/repos/tomhughes/caller-callsite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomhughes/caller-callsite/merges","archive_url":"https://api.github.com/repos/tomhughes/caller-callsite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomhughes/caller-callsite/downloads","issues_url":"https://api.github.com/repos/tomhughes/caller-callsite/issues{/number}","pulls_url":"https://api.github.com/repos/tomhughes/caller-callsite/pulls{/number}","milestones_url":"https://api.github.com/repos/tomhughes/caller-callsite/milestones{/number}","notifications_url":"https://api.github.com/repos/tomhughes/caller-callsite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomhughes/caller-callsite/labels{/name}","releases_url":"https://api.github.com/repos/tomhughes/caller-callsite/releases{/id}","created_at":"2016-01-20T09:25:07Z","updated_at":"2016-01-20T09:25:08Z","pushed_at":"2016-01-20T09:34:22Z","git_url":"git://github.com/tomhughes/caller-callsite.git","ssh_url":"git@github.com:tomhughes/caller-callsite.git","clone_url":"https://github.com/tomhughes/caller-callsite.git","svn_url":"https://github.com/tomhughes/caller-callsite","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sindresorhus:master","ref":"master","sha":"40ece3bdb77cd844acdf22a34c684ba4adffe46f","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":29782297,"name":"caller-callsite","full_name":"sindresorhus/caller-callsite","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/caller-callsite","description":"Get the callsite of the caller function","fork":false,"url":"https://api.github.com/repos/sindresorhus/caller-callsite","forks_url":"https://api.github.com/repos/sindresorhus/caller-callsite/forks","keys_url":"https://api.github.com/repos/sindresorhus/caller-callsite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/caller-callsite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/caller-callsite/teams","hooks_url":"https://api.github.com/repos/sindresorhus/caller-callsite/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/caller-callsite/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/caller-callsite/events","assignees_url":"https://api.github.com/repos/sindresorhus/caller-callsite/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/caller-callsite/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/caller-callsite/tags","blobs_url":"https://api.github.com/repos/sindresorhus/caller-callsite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/caller-callsite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/caller-callsite/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/caller-callsite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/caller-callsite/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/caller-callsite/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/caller-callsite/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/caller-callsite/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/caller-callsite/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/caller-callsite/subscription","commits_url":"https://api.github.com/repos/sindresorhus/caller-callsite/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/caller-callsite/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/caller-callsite/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/caller-callsite/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/caller-callsite/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/caller-callsite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/caller-callsite/merges","archive_url":"https://api.github.com/repos/sindresorhus/caller-callsite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/caller-callsite/downloads","issues_url":"https://api.github.com/repos/sindresorhus/caller-callsite/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/caller-callsite/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/caller-callsite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/caller-callsite/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/caller-callsite/releases{/id}","created_at":"2015-01-24T16:11:34Z","updated_at":"2015-11-12T05:09:15Z","pushed_at":"2015-10-05T15:42:42Z","git_url":"git://github.com/sindresorhus/caller-callsite.git","ssh_url":"git@github.com:sindresorhus/caller-callsite.git","clone_url":"https://github.com/sindresorhus/caller-callsite.git","svn_url":"https://github.com/sindresorhus/caller-callsite","homepage":null,"size":139,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/1"},"html":{"href":"https://github.com/sindresorhus/caller-callsite/pull/1"},"issue":{"href":"https://api.github.com/repos/sindresorhus/caller-callsite/issues/1"},"comments":{"href":"https://api.github.com/repos/sindresorhus/caller-callsite/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/caller-callsite/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/caller-callsite/statuses/ba9fd93f5c5a7325fb2e326aeb4b065962c3de8e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}