{"action":"created","comment":{"url":"https://api.github.com/repos/dcousens/cb-node/pulls/comments/26653509","id":26653509,"diff_hunk":"@@ -1,7 +1,46 @@\n var httpify = require('httpify')\n var jsend = require('jsend')\n+var querystring = require('querystring')\n+\n+/**\n+ * helper to copy properties\n+ *\n+ * @param {Object} target\n+ * @returns {Object}\n+ */\n+function extend(target) {","path":"index.js","position":11,"original_position":11,"commit_id":"a91c212b1ac4f93cdd13439d82704c131f0143ae","original_commit_id":"a91c212b1ac4f93cdd13439d82704c131f0143ae","user":{"login":"rubensayshi","id":649160,"avatar_url":"https://avatars.githubusercontent.com/u/649160?v=3","gravatar_id":"","url":"https://api.github.com/users/rubensayshi","html_url":"https://github.com/rubensayshi","followers_url":"https://api.github.com/users/rubensayshi/followers","following_url":"https://api.github.com/users/rubensayshi/following{/other_user}","gists_url":"https://api.github.com/users/rubensayshi/gists{/gist_id}","starred_url":"https://api.github.com/users/rubensayshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubensayshi/subscriptions","organizations_url":"https://api.github.com/users/rubensayshi/orgs","repos_url":"https://api.github.com/users/rubensayshi/repos","events_url":"https://api.github.com/users/rubensayshi/events{/privacy}","received_events_url":"https://api.github.com/users/rubensayshi/received_events","type":"User","site_admin":false},"body":"idk if you want to add `lodash` or something similar to do this or use this simple helper?","created_at":"2015-03-18T11:00:37Z","updated_at":"2015-03-18T11:00:37Z","html_url":"https://github.com/dcousens/cb-node/pull/2#discussion_r26653509","pull_request_url":"https://api.github.com/repos/dcousens/cb-node/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/dcousens/cb-node/pulls/comments/26653509"},"html":{"href":"https://github.com/dcousens/cb-node/pull/2#discussion_r26653509"},"pull_request":{"href":"https://api.github.com/repos/dcousens/cb-node/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/dcousens/cb-node/pulls/2","id":31418271,"html_url":"https://github.com/dcousens/cb-node/pull/2","diff_url":"https://github.com/dcousens/cb-node/pull/2.diff","patch_url":"https://github.com/dcousens/cb-node/pull/2.patch","issue_url":"https://api.github.com/repos/dcousens/cb-node/issues/2","number":2,"state":"open","locked":false,"title":"add option to set default querystring params (for API key)","user":{"login":"rubensayshi","id":649160,"avatar_url":"https://avatars.githubusercontent.com/u/649160?v=3","gravatar_id":"","url":"https://api.github.com/users/rubensayshi","html_url":"https://github.com/rubensayshi","followers_url":"https://api.github.com/users/rubensayshi/followers","following_url":"https://api.github.com/users/rubensayshi/following{/other_user}","gists_url":"https://api.github.com/users/rubensayshi/gists{/gist_id}","starred_url":"https://api.github.com/users/rubensayshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubensayshi/subscriptions","organizations_url":"https://api.github.com/users/rubensayshi/orgs","repos_url":"https://api.github.com/users/rubensayshi/repos","events_url":"https://api.github.com/users/rubensayshi/events{/privacy}","received_events_url":"https://api.github.com/users/rubensayshi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-18T11:00:07Z","updated_at":"2015-03-18T11:00:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0c7bf42961c106c025ca8fc119da0c8679a1b57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dcousens/cb-node/pulls/2/commits","review_comments_url":"https://api.github.com/repos/dcousens/cb-node/pulls/2/comments","review_comment_url":"https://api.github.com/repos/dcousens/cb-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dcousens/cb-node/issues/2/comments","statuses_url":"https://api.github.com/repos/dcousens/cb-node/statuses/a91c212b1ac4f93cdd13439d82704c131f0143ae","head":{"label":"blocktrail:querystring","ref":"querystring","sha":"a91c212b1ac4f93cdd13439d82704c131f0143ae","user":{"login":"blocktrail","id":7208343,"avatar_url":"https://avatars.githubusercontent.com/u/7208343?v=3","gravatar_id":"","url":"https://api.github.com/users/blocktrail","html_url":"https://github.com/blocktrail","followers_url":"https://api.github.com/users/blocktrail/followers","following_url":"https://api.github.com/users/blocktrail/following{/other_user}","gists_url":"https://api.github.com/users/blocktrail/gists{/gist_id}","starred_url":"https://api.github.com/users/blocktrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blocktrail/subscriptions","organizations_url":"https://api.github.com/users/blocktrail/orgs","repos_url":"https://api.github.com/users/blocktrail/repos","events_url":"https://api.github.com/users/blocktrail/events{/privacy}","received_events_url":"https://api.github.com/users/blocktrail/received_events","type":"Organization","site_admin":false},"repo":{"id":32452379,"name":"cb-node","full_name":"blocktrail/cb-node","owner":{"login":"blocktrail","id":7208343,"avatar_url":"https://avatars.githubusercontent.com/u/7208343?v=3","gravatar_id":"","url":"https://api.github.com/users/blocktrail","html_url":"https://github.com/blocktrail","followers_url":"https://api.github.com/users/blocktrail/followers","following_url":"https://api.github.com/users/blocktrail/following{/other_user}","gists_url":"https://api.github.com/users/blocktrail/gists{/gist_id}","starred_url":"https://api.github.com/users/blocktrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blocktrail/subscriptions","organizations_url":"https://api.github.com/users/blocktrail/orgs","repos_url":"https://api.github.com/users/blocktrail/repos","events_url":"https://api.github.com/users/blocktrail/events{/privacy}","received_events_url":"https://api.github.com/users/blocktrail/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blocktrail/cb-node","description":"Common blockchain wrapper for common-blockchain-node-server","fork":true,"url":"https://api.github.com/repos/blocktrail/cb-node","forks_url":"https://api.github.com/repos/blocktrail/cb-node/forks","keys_url":"https://api.github.com/repos/blocktrail/cb-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blocktrail/cb-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blocktrail/cb-node/teams","hooks_url":"https://api.github.com/repos/blocktrail/cb-node/hooks","issue_events_url":"https://api.github.com/repos/blocktrail/cb-node/issues/events{/number}","events_url":"https://api.github.com/repos/blocktrail/cb-node/events","assignees_url":"https://api.github.com/repos/blocktrail/cb-node/assignees{/user}","branches_url":"https://api.github.com/repos/blocktrail/cb-node/branches{/branch}","tags_url":"https://api.github.com/repos/blocktrail/cb-node/tags","blobs_url":"https://api.github.com/repos/blocktrail/cb-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blocktrail/cb-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blocktrail/cb-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/blocktrail/cb-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blocktrail/cb-node/statuses/{sha}","languages_url":"https://api.github.com/repos/blocktrail/cb-node/languages","stargazers_url":"https://api.github.com/repos/blocktrail/cb-node/stargazers","contributors_url":"https://api.github.com/repos/blocktrail/cb-node/contributors","subscribers_url":"https://api.github.com/repos/blocktrail/cb-node/subscribers","subscription_url":"https://api.github.com/repos/blocktrail/cb-node/subscription","commits_url":"https://api.github.com/repos/blocktrail/cb-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/blocktrail/cb-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/blocktrail/cb-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/blocktrail/cb-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/blocktrail/cb-node/contents/{+path}","compare_url":"https://api.github.com/repos/blocktrail/cb-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blocktrail/cb-node/merges","archive_url":"https://api.github.com/repos/blocktrail/cb-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blocktrail/cb-node/downloads","issues_url":"https://api.github.com/repos/blocktrail/cb-node/issues{/number}","pulls_url":"https://api.github.com/repos/blocktrail/cb-node/pulls{/number}","milestones_url":"https://api.github.com/repos/blocktrail/cb-node/milestones{/number}","notifications_url":"https://api.github.com/repos/blocktrail/cb-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blocktrail/cb-node/labels{/name}","releases_url":"https://api.github.com/repos/blocktrail/cb-node/releases{/id}","created_at":"2015-03-18T10:28:16Z","updated_at":"2015-03-18T10:28:17Z","pushed_at":"2015-03-18T10:59:33Z","git_url":"git://github.com/blocktrail/cb-node.git","ssh_url":"git@github.com:blocktrail/cb-node.git","clone_url":"https://github.com/blocktrail/cb-node.git","svn_url":"https://github.com/blocktrail/cb-node","homepage":null,"size":260,"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":"dcousens:master","ref":"master","sha":"29da78e1742575fad892776f2013d752b5dcce2b","user":{"login":"dcousens","id":413395,"avatar_url":"https://avatars.githubusercontent.com/u/413395?v=3","gravatar_id":"","url":"https://api.github.com/users/dcousens","html_url":"https://github.com/dcousens","followers_url":"https://api.github.com/users/dcousens/followers","following_url":"https://api.github.com/users/dcousens/following{/other_user}","gists_url":"https://api.github.com/users/dcousens/gists{/gist_id}","starred_url":"https://api.github.com/users/dcousens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcousens/subscriptions","organizations_url":"https://api.github.com/users/dcousens/orgs","repos_url":"https://api.github.com/users/dcousens/repos","events_url":"https://api.github.com/users/dcousens/events{/privacy}","received_events_url":"https://api.github.com/users/dcousens/received_events","type":"User","site_admin":false},"repo":{"id":29503496,"name":"cb-node","full_name":"dcousens/cb-node","owner":{"login":"dcousens","id":413395,"avatar_url":"https://avatars.githubusercontent.com/u/413395?v=3","gravatar_id":"","url":"https://api.github.com/users/dcousens","html_url":"https://github.com/dcousens","followers_url":"https://api.github.com/users/dcousens/followers","following_url":"https://api.github.com/users/dcousens/following{/other_user}","gists_url":"https://api.github.com/users/dcousens/gists{/gist_id}","starred_url":"https://api.github.com/users/dcousens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcousens/subscriptions","organizations_url":"https://api.github.com/users/dcousens/orgs","repos_url":"https://api.github.com/users/dcousens/repos","events_url":"https://api.github.com/users/dcousens/events{/privacy}","received_events_url":"https://api.github.com/users/dcousens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dcousens/cb-node","description":"Common blockchain wrapper for common-blockchain-node-server","fork":false,"url":"https://api.github.com/repos/dcousens/cb-node","forks_url":"https://api.github.com/repos/dcousens/cb-node/forks","keys_url":"https://api.github.com/repos/dcousens/cb-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcousens/cb-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcousens/cb-node/teams","hooks_url":"https://api.github.com/repos/dcousens/cb-node/hooks","issue_events_url":"https://api.github.com/repos/dcousens/cb-node/issues/events{/number}","events_url":"https://api.github.com/repos/dcousens/cb-node/events","assignees_url":"https://api.github.com/repos/dcousens/cb-node/assignees{/user}","branches_url":"https://api.github.com/repos/dcousens/cb-node/branches{/branch}","tags_url":"https://api.github.com/repos/dcousens/cb-node/tags","blobs_url":"https://api.github.com/repos/dcousens/cb-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcousens/cb-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcousens/cb-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcousens/cb-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcousens/cb-node/statuses/{sha}","languages_url":"https://api.github.com/repos/dcousens/cb-node/languages","stargazers_url":"https://api.github.com/repos/dcousens/cb-node/stargazers","contributors_url":"https://api.github.com/repos/dcousens/cb-node/contributors","subscribers_url":"https://api.github.com/repos/dcousens/cb-node/subscribers","subscription_url":"https://api.github.com/repos/dcousens/cb-node/subscription","commits_url":"https://api.github.com/repos/dcousens/cb-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcousens/cb-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcousens/cb-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcousens/cb-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcousens/cb-node/contents/{+path}","compare_url":"https://api.github.com/repos/dcousens/cb-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcousens/cb-node/merges","archive_url":"https://api.github.com/repos/dcousens/cb-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcousens/cb-node/downloads","issues_url":"https://api.github.com/repos/dcousens/cb-node/issues{/number}","pulls_url":"https://api.github.com/repos/dcousens/cb-node/pulls{/number}","milestones_url":"https://api.github.com/repos/dcousens/cb-node/milestones{/number}","notifications_url":"https://api.github.com/repos/dcousens/cb-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcousens/cb-node/labels{/name}","releases_url":"https://api.github.com/repos/dcousens/cb-node/releases{/id}","created_at":"2015-01-20T00:20:08Z","updated_at":"2015-03-17T23:38:26Z","pushed_at":"2015-03-17T23:38:25Z","git_url":"git://github.com/dcousens/cb-node.git","ssh_url":"git@github.com:dcousens/cb-node.git","clone_url":"https://github.com/dcousens/cb-node.git","svn_url":"https://github.com/dcousens/cb-node","homepage":null,"size":260,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dcousens/cb-node/pulls/2"},"html":{"href":"https://github.com/dcousens/cb-node/pull/2"},"issue":{"href":"https://api.github.com/repos/dcousens/cb-node/issues/2"},"comments":{"href":"https://api.github.com/repos/dcousens/cb-node/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/dcousens/cb-node/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/dcousens/cb-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dcousens/cb-node/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/dcousens/cb-node/statuses/a91c212b1ac4f93cdd13439d82704c131f0143ae"}}}}