{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/sillero/registry-resolve/pulls/2","id":83007153,"html_url":"https://github.com/sillero/registry-resolve/pull/2","diff_url":"https://github.com/sillero/registry-resolve/pull/2.diff","patch_url":"https://github.com/sillero/registry-resolve/pull/2.patch","issue_url":"https://api.github.com/repos/sillero/registry-resolve/issues/2","number":2,"state":"closed","locked":false,"title":"Add 'full' option to get all package details not just version number.","user":{"login":"wmhilton","id":587740,"avatar_url":"https://avatars.githubusercontent.com/u/587740?v=3","gravatar_id":"","url":"https://api.github.com/users/wmhilton","html_url":"https://github.com/wmhilton","followers_url":"https://api.github.com/users/wmhilton/followers","following_url":"https://api.github.com/users/wmhilton/following{/other_user}","gists_url":"https://api.github.com/users/wmhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/wmhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmhilton/subscriptions","organizations_url":"https://api.github.com/users/wmhilton/orgs","repos_url":"https://api.github.com/users/wmhilton/repos","events_url":"https://api.github.com/users/wmhilton/events{/privacy}","received_events_url":"https://api.github.com/users/wmhilton/received_events","type":"User","site_admin":false},"body":"Hi sillero,\r\nWould you be interested in this 'full' option? It returns the full json description rather than just the version. I'm using it because in addition to knowing what version number, I want to know tarball and shasum.\r\n\r\nExample:\r\n\r\n    // For version ranges, we need to do a network request to resolve.\r\n    // Also, get the tarball_url and checksum\r\n    let v = yield resolve({\r\n      name: m.urlsafe_fullname,\r\n      version: m.version,\r\n      registry: 'http://registry.npmjs.org',\r\n      full: true\r\n    })\r\n    m.exact_version = v.version\r\n    m.tarball_sha = v.dist.shasum\r\n    m.tarball_url = v.dist.tarball\r\n\r\nIt's backwards compatible, because if you don't include `full: true` then it works just as before.","created_at":"2016-08-28T05:51:06Z","updated_at":"2016-08-30T00:28:30Z","closed_at":"2016-08-30T00:28:30Z","merged_at":"2016-08-30T00:28:30Z","merge_commit_sha":"1bc82c032c0b8b8a19c1898c8e2882351c958817","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sillero/registry-resolve/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sillero/registry-resolve/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sillero/registry-resolve/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sillero/registry-resolve/issues/2/comments","statuses_url":"https://api.github.com/repos/sillero/registry-resolve/statuses/b91384ff9e6adb7d00afb166bb18e1a55e4d7286","head":{"label":"wmhilton:pkg-details","ref":"pkg-details","sha":"b91384ff9e6adb7d00afb166bb18e1a55e4d7286","user":{"login":"wmhilton","id":587740,"avatar_url":"https://avatars.githubusercontent.com/u/587740?v=3","gravatar_id":"","url":"https://api.github.com/users/wmhilton","html_url":"https://github.com/wmhilton","followers_url":"https://api.github.com/users/wmhilton/followers","following_url":"https://api.github.com/users/wmhilton/following{/other_user}","gists_url":"https://api.github.com/users/wmhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/wmhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmhilton/subscriptions","organizations_url":"https://api.github.com/users/wmhilton/orgs","repos_url":"https://api.github.com/users/wmhilton/repos","events_url":"https://api.github.com/users/wmhilton/events{/privacy}","received_events_url":"https://api.github.com/users/wmhilton/received_events","type":"User","site_admin":false},"repo":{"id":66748225,"name":"registry-resolve","full_name":"wmhilton/registry-resolve","owner":{"login":"wmhilton","id":587740,"avatar_url":"https://avatars.githubusercontent.com/u/587740?v=3","gravatar_id":"","url":"https://api.github.com/users/wmhilton","html_url":"https://github.com/wmhilton","followers_url":"https://api.github.com/users/wmhilton/followers","following_url":"https://api.github.com/users/wmhilton/following{/other_user}","gists_url":"https://api.github.com/users/wmhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/wmhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmhilton/subscriptions","organizations_url":"https://api.github.com/users/wmhilton/orgs","repos_url":"https://api.github.com/users/wmhilton/repos","events_url":"https://api.github.com/users/wmhilton/events{/privacy}","received_events_url":"https://api.github.com/users/wmhilton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wmhilton/registry-resolve","description":"Resolve a package version from an npm-like registry","fork":true,"url":"https://api.github.com/repos/wmhilton/registry-resolve","forks_url":"https://api.github.com/repos/wmhilton/registry-resolve/forks","keys_url":"https://api.github.com/repos/wmhilton/registry-resolve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wmhilton/registry-resolve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wmhilton/registry-resolve/teams","hooks_url":"https://api.github.com/repos/wmhilton/registry-resolve/hooks","issue_events_url":"https://api.github.com/repos/wmhilton/registry-resolve/issues/events{/number}","events_url":"https://api.github.com/repos/wmhilton/registry-resolve/events","assignees_url":"https://api.github.com/repos/wmhilton/registry-resolve/assignees{/user}","branches_url":"https://api.github.com/repos/wmhilton/registry-resolve/branches{/branch}","tags_url":"https://api.github.com/repos/wmhilton/registry-resolve/tags","blobs_url":"https://api.github.com/repos/wmhilton/registry-resolve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wmhilton/registry-resolve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wmhilton/registry-resolve/git/refs{/sha}","trees_url":"https://api.github.com/repos/wmhilton/registry-resolve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wmhilton/registry-resolve/statuses/{sha}","languages_url":"https://api.github.com/repos/wmhilton/registry-resolve/languages","stargazers_url":"https://api.github.com/repos/wmhilton/registry-resolve/stargazers","contributors_url":"https://api.github.com/repos/wmhilton/registry-resolve/contributors","subscribers_url":"https://api.github.com/repos/wmhilton/registry-resolve/subscribers","subscription_url":"https://api.github.com/repos/wmhilton/registry-resolve/subscription","commits_url":"https://api.github.com/repos/wmhilton/registry-resolve/commits{/sha}","git_commits_url":"https://api.github.com/repos/wmhilton/registry-resolve/git/commits{/sha}","comments_url":"https://api.github.com/repos/wmhilton/registry-resolve/comments{/number}","issue_comment_url":"https://api.github.com/repos/wmhilton/registry-resolve/issues/comments{/number}","contents_url":"https://api.github.com/repos/wmhilton/registry-resolve/contents/{+path}","compare_url":"https://api.github.com/repos/wmhilton/registry-resolve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wmhilton/registry-resolve/merges","archive_url":"https://api.github.com/repos/wmhilton/registry-resolve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wmhilton/registry-resolve/downloads","issues_url":"https://api.github.com/repos/wmhilton/registry-resolve/issues{/number}","pulls_url":"https://api.github.com/repos/wmhilton/registry-resolve/pulls{/number}","milestones_url":"https://api.github.com/repos/wmhilton/registry-resolve/milestones{/number}","notifications_url":"https://api.github.com/repos/wmhilton/registry-resolve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wmhilton/registry-resolve/labels{/name}","releases_url":"https://api.github.com/repos/wmhilton/registry-resolve/releases{/id}","deployments_url":"https://api.github.com/repos/wmhilton/registry-resolve/deployments","created_at":"2016-08-28T03:51:26Z","updated_at":"2016-08-28T03:51:27Z","pushed_at":"2016-08-28T05:44:46Z","git_url":"git://github.com/wmhilton/registry-resolve.git","ssh_url":"git@github.com:wmhilton/registry-resolve.git","clone_url":"https://github.com/wmhilton/registry-resolve.git","svn_url":"https://github.com/wmhilton/registry-resolve","homepage":null,"size":4,"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":"sillero:master","ref":"master","sha":"63515e32ce95095f5013f402cc2f477bfd1a7b42","user":{"login":"sillero","id":628355,"avatar_url":"https://avatars.githubusercontent.com/u/628355?v=3","gravatar_id":"","url":"https://api.github.com/users/sillero","html_url":"https://github.com/sillero","followers_url":"https://api.github.com/users/sillero/followers","following_url":"https://api.github.com/users/sillero/following{/other_user}","gists_url":"https://api.github.com/users/sillero/gists{/gist_id}","starred_url":"https://api.github.com/users/sillero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sillero/subscriptions","organizations_url":"https://api.github.com/users/sillero/orgs","repos_url":"https://api.github.com/users/sillero/repos","events_url":"https://api.github.com/users/sillero/events{/privacy}","received_events_url":"https://api.github.com/users/sillero/received_events","type":"User","site_admin":false},"repo":{"id":55820411,"name":"registry-resolve","full_name":"sillero/registry-resolve","owner":{"login":"sillero","id":628355,"avatar_url":"https://avatars.githubusercontent.com/u/628355?v=3","gravatar_id":"","url":"https://api.github.com/users/sillero","html_url":"https://github.com/sillero","followers_url":"https://api.github.com/users/sillero/followers","following_url":"https://api.github.com/users/sillero/following{/other_user}","gists_url":"https://api.github.com/users/sillero/gists{/gist_id}","starred_url":"https://api.github.com/users/sillero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sillero/subscriptions","organizations_url":"https://api.github.com/users/sillero/orgs","repos_url":"https://api.github.com/users/sillero/repos","events_url":"https://api.github.com/users/sillero/events{/privacy}","received_events_url":"https://api.github.com/users/sillero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sillero/registry-resolve","description":"Resolve a package version from an npm-like registry","fork":false,"url":"https://api.github.com/repos/sillero/registry-resolve","forks_url":"https://api.github.com/repos/sillero/registry-resolve/forks","keys_url":"https://api.github.com/repos/sillero/registry-resolve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sillero/registry-resolve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sillero/registry-resolve/teams","hooks_url":"https://api.github.com/repos/sillero/registry-resolve/hooks","issue_events_url":"https://api.github.com/repos/sillero/registry-resolve/issues/events{/number}","events_url":"https://api.github.com/repos/sillero/registry-resolve/events","assignees_url":"https://api.github.com/repos/sillero/registry-resolve/assignees{/user}","branches_url":"https://api.github.com/repos/sillero/registry-resolve/branches{/branch}","tags_url":"https://api.github.com/repos/sillero/registry-resolve/tags","blobs_url":"https://api.github.com/repos/sillero/registry-resolve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sillero/registry-resolve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sillero/registry-resolve/git/refs{/sha}","trees_url":"https://api.github.com/repos/sillero/registry-resolve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sillero/registry-resolve/statuses/{sha}","languages_url":"https://api.github.com/repos/sillero/registry-resolve/languages","stargazers_url":"https://api.github.com/repos/sillero/registry-resolve/stargazers","contributors_url":"https://api.github.com/repos/sillero/registry-resolve/contributors","subscribers_url":"https://api.github.com/repos/sillero/registry-resolve/subscribers","subscription_url":"https://api.github.com/repos/sillero/registry-resolve/subscription","commits_url":"https://api.github.com/repos/sillero/registry-resolve/commits{/sha}","git_commits_url":"https://api.github.com/repos/sillero/registry-resolve/git/commits{/sha}","comments_url":"https://api.github.com/repos/sillero/registry-resolve/comments{/number}","issue_comment_url":"https://api.github.com/repos/sillero/registry-resolve/issues/comments{/number}","contents_url":"https://api.github.com/repos/sillero/registry-resolve/contents/{+path}","compare_url":"https://api.github.com/repos/sillero/registry-resolve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sillero/registry-resolve/merges","archive_url":"https://api.github.com/repos/sillero/registry-resolve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sillero/registry-resolve/downloads","issues_url":"https://api.github.com/repos/sillero/registry-resolve/issues{/number}","pulls_url":"https://api.github.com/repos/sillero/registry-resolve/pulls{/number}","milestones_url":"https://api.github.com/repos/sillero/registry-resolve/milestones{/number}","notifications_url":"https://api.github.com/repos/sillero/registry-resolve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sillero/registry-resolve/labels{/name}","releases_url":"https://api.github.com/repos/sillero/registry-resolve/releases{/id}","deployments_url":"https://api.github.com/repos/sillero/registry-resolve/deployments","created_at":"2016-04-09T01:44:27Z","updated_at":"2016-04-09T01:48:32Z","pushed_at":"2016-08-30T00:28:30Z","git_url":"git://github.com/sillero/registry-resolve.git","ssh_url":"git@github.com:sillero/registry-resolve.git","clone_url":"https://github.com/sillero/registry-resolve.git","svn_url":"https://github.com/sillero/registry-resolve","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sillero/registry-resolve/pulls/2"},"html":{"href":"https://github.com/sillero/registry-resolve/pull/2"},"issue":{"href":"https://api.github.com/repos/sillero/registry-resolve/issues/2"},"comments":{"href":"https://api.github.com/repos/sillero/registry-resolve/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sillero/registry-resolve/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sillero/registry-resolve/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sillero/registry-resolve/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sillero/registry-resolve/statuses/b91384ff9e6adb7d00afb166bb18e1a55e4d7286"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sillero","id":628355,"avatar_url":"https://avatars.githubusercontent.com/u/628355?v=3","gravatar_id":"","url":"https://api.github.com/users/sillero","html_url":"https://github.com/sillero","followers_url":"https://api.github.com/users/sillero/followers","following_url":"https://api.github.com/users/sillero/following{/other_user}","gists_url":"https://api.github.com/users/sillero/gists{/gist_id}","starred_url":"https://api.github.com/users/sillero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sillero/subscriptions","organizations_url":"https://api.github.com/users/sillero/orgs","repos_url":"https://api.github.com/users/sillero/repos","events_url":"https://api.github.com/users/sillero/events{/privacy}","received_events_url":"https://api.github.com/users/sillero/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":11,"deletions":8,"changed_files":1}}
{"actor":{"display_login":"sillero"}}