{"action":"opened","number":14,"pull_request":{"url":"https://api.github.com/repos/thlorenz/exposify/pulls/14","id":37000770,"html_url":"https://github.com/thlorenz/exposify/pull/14","diff_url":"https://github.com/thlorenz/exposify/pull/14.diff","patch_url":"https://github.com/thlorenz/exposify/pull/14.patch","issue_url":"https://api.github.com/repos/thlorenz/exposify/issues/14","number":14,"state":"open","locked":false,"title":"Use replace-requires to perform replacements","user":{"login":"bendrucker","id":808808,"avatar_url":"https://avatars.githubusercontent.com/u/808808?v=3","gravatar_id":"","url":"https://api.github.com/users/bendrucker","html_url":"https://github.com/bendrucker","followers_url":"https://api.github.com/users/bendrucker/followers","following_url":"https://api.github.com/users/bendrucker/following{/other_user}","gists_url":"https://api.github.com/users/bendrucker/gists{/gist_id}","starred_url":"https://api.github.com/users/bendrucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendrucker/subscriptions","organizations_url":"https://api.github.com/users/bendrucker/orgs","repos_url":"https://api.github.com/users/bendrucker/repos","events_url":"https://api.github.com/users/bendrucker/events{/privacy}","received_events_url":"https://api.github.com/users/bendrucker/received_events","type":"User","site_admin":false},"body":"This removes the major of the library code so I definitely figured you'd want to review. No changes to functionality, including regexing the code to potentially avoid an AST parse. Avoids some misdirection with requires.strings.\r\n\r\nComing full circle on https://github.com/thlorenz/proxyquireify/issues/20#issuecomment-59933424 :smile: \r\n\r\nI'd duplicated some exposify/proxyquireify stuff in proxyquire-universal, which is basically empty now:\r\n\r\nhttps://github.com/bendrucker/proxyquire-universal/blob/master/transform.js","created_at":"2015-06-05T04:47:35Z","updated_at":"2015-06-05T04:47:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thlorenz/exposify/pulls/14/commits","review_comments_url":"https://api.github.com/repos/thlorenz/exposify/pulls/14/comments","review_comment_url":"https://api.github.com/repos/thlorenz/exposify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thlorenz/exposify/issues/14/comments","statuses_url":"https://api.github.com/repos/thlorenz/exposify/statuses/4043c15e5b3ba830fa60e034cec390edae7aed49","head":{"label":"thlorenz:replace-requires","ref":"replace-requires","sha":"4043c15e5b3ba830fa60e034cec390edae7aed49","user":{"login":"thlorenz","id":192891,"avatar_url":"https://avatars.githubusercontent.com/u/192891?v=3","gravatar_id":"","url":"https://api.github.com/users/thlorenz","html_url":"https://github.com/thlorenz","followers_url":"https://api.github.com/users/thlorenz/followers","following_url":"https://api.github.com/users/thlorenz/following{/other_user}","gists_url":"https://api.github.com/users/thlorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/thlorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thlorenz/subscriptions","organizations_url":"https://api.github.com/users/thlorenz/orgs","repos_url":"https://api.github.com/users/thlorenz/repos","events_url":"https://api.github.com/users/thlorenz/events{/privacy}","received_events_url":"https://api.github.com/users/thlorenz/received_events","type":"User","site_admin":false},"repo":{"id":16006360,"name":"exposify","full_name":"thlorenz/exposify","owner":{"login":"thlorenz","id":192891,"avatar_url":"https://avatars.githubusercontent.com/u/192891?v=3","gravatar_id":"","url":"https://api.github.com/users/thlorenz","html_url":"https://github.com/thlorenz","followers_url":"https://api.github.com/users/thlorenz/followers","following_url":"https://api.github.com/users/thlorenz/following{/other_user}","gists_url":"https://api.github.com/users/thlorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/thlorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thlorenz/subscriptions","organizations_url":"https://api.github.com/users/thlorenz/orgs","repos_url":"https://api.github.com/users/thlorenz/repos","events_url":"https://api.github.com/users/thlorenz/events{/privacy}","received_events_url":"https://api.github.com/users/thlorenz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thlorenz/exposify","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","fork":false,"url":"https://api.github.com/repos/thlorenz/exposify","forks_url":"https://api.github.com/repos/thlorenz/exposify/forks","keys_url":"https://api.github.com/repos/thlorenz/exposify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thlorenz/exposify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thlorenz/exposify/teams","hooks_url":"https://api.github.com/repos/thlorenz/exposify/hooks","issue_events_url":"https://api.github.com/repos/thlorenz/exposify/issues/events{/number}","events_url":"https://api.github.com/repos/thlorenz/exposify/events","assignees_url":"https://api.github.com/repos/thlorenz/exposify/assignees{/user}","branches_url":"https://api.github.com/repos/thlorenz/exposify/branches{/branch}","tags_url":"https://api.github.com/repos/thlorenz/exposify/tags","blobs_url":"https://api.github.com/repos/thlorenz/exposify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thlorenz/exposify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thlorenz/exposify/git/refs{/sha}","trees_url":"https://api.github.com/repos/thlorenz/exposify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thlorenz/exposify/statuses/{sha}","languages_url":"https://api.github.com/repos/thlorenz/exposify/languages","stargazers_url":"https://api.github.com/repos/thlorenz/exposify/stargazers","contributors_url":"https://api.github.com/repos/thlorenz/exposify/contributors","subscribers_url":"https://api.github.com/repos/thlorenz/exposify/subscribers","subscription_url":"https://api.github.com/repos/thlorenz/exposify/subscription","commits_url":"https://api.github.com/repos/thlorenz/exposify/commits{/sha}","git_commits_url":"https://api.github.com/repos/thlorenz/exposify/git/commits{/sha}","comments_url":"https://api.github.com/repos/thlorenz/exposify/comments{/number}","issue_comment_url":"https://api.github.com/repos/thlorenz/exposify/issues/comments{/number}","contents_url":"https://api.github.com/repos/thlorenz/exposify/contents/{+path}","compare_url":"https://api.github.com/repos/thlorenz/exposify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thlorenz/exposify/merges","archive_url":"https://api.github.com/repos/thlorenz/exposify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thlorenz/exposify/downloads","issues_url":"https://api.github.com/repos/thlorenz/exposify/issues{/number}","pulls_url":"https://api.github.com/repos/thlorenz/exposify/pulls{/number}","milestones_url":"https://api.github.com/repos/thlorenz/exposify/milestones{/number}","notifications_url":"https://api.github.com/repos/thlorenz/exposify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thlorenz/exposify/labels{/name}","releases_url":"https://api.github.com/repos/thlorenz/exposify/releases{/id}","created_at":"2014-01-17T17:21:58Z","updated_at":"2015-06-04T01:47:53Z","pushed_at":"2015-06-05T04:47:35Z","git_url":"git://github.com/thlorenz/exposify.git","ssh_url":"git@github.com:thlorenz/exposify.git","clone_url":"https://github.com/thlorenz/exposify.git","svn_url":"https://github.com/thlorenz/exposify","homepage":"","size":401,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":40,"default_branch":"master"}},"base":{"label":"thlorenz:master","ref":"master","sha":"0728a4058e166411ba9f4d4e09fbb303d9704183","user":{"login":"thlorenz","id":192891,"avatar_url":"https://avatars.githubusercontent.com/u/192891?v=3","gravatar_id":"","url":"https://api.github.com/users/thlorenz","html_url":"https://github.com/thlorenz","followers_url":"https://api.github.com/users/thlorenz/followers","following_url":"https://api.github.com/users/thlorenz/following{/other_user}","gists_url":"https://api.github.com/users/thlorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/thlorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thlorenz/subscriptions","organizations_url":"https://api.github.com/users/thlorenz/orgs","repos_url":"https://api.github.com/users/thlorenz/repos","events_url":"https://api.github.com/users/thlorenz/events{/privacy}","received_events_url":"https://api.github.com/users/thlorenz/received_events","type":"User","site_admin":false},"repo":{"id":16006360,"name":"exposify","full_name":"thlorenz/exposify","owner":{"login":"thlorenz","id":192891,"avatar_url":"https://avatars.githubusercontent.com/u/192891?v=3","gravatar_id":"","url":"https://api.github.com/users/thlorenz","html_url":"https://github.com/thlorenz","followers_url":"https://api.github.com/users/thlorenz/followers","following_url":"https://api.github.com/users/thlorenz/following{/other_user}","gists_url":"https://api.github.com/users/thlorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/thlorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thlorenz/subscriptions","organizations_url":"https://api.github.com/users/thlorenz/orgs","repos_url":"https://api.github.com/users/thlorenz/repos","events_url":"https://api.github.com/users/thlorenz/events{/privacy}","received_events_url":"https://api.github.com/users/thlorenz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thlorenz/exposify","description":"browserify transform that exposes globals added via a script tag as modules so they can be required.","fork":false,"url":"https://api.github.com/repos/thlorenz/exposify","forks_url":"https://api.github.com/repos/thlorenz/exposify/forks","keys_url":"https://api.github.com/repos/thlorenz/exposify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thlorenz/exposify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thlorenz/exposify/teams","hooks_url":"https://api.github.com/repos/thlorenz/exposify/hooks","issue_events_url":"https://api.github.com/repos/thlorenz/exposify/issues/events{/number}","events_url":"https://api.github.com/repos/thlorenz/exposify/events","assignees_url":"https://api.github.com/repos/thlorenz/exposify/assignees{/user}","branches_url":"https://api.github.com/repos/thlorenz/exposify/branches{/branch}","tags_url":"https://api.github.com/repos/thlorenz/exposify/tags","blobs_url":"https://api.github.com/repos/thlorenz/exposify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thlorenz/exposify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thlorenz/exposify/git/refs{/sha}","trees_url":"https://api.github.com/repos/thlorenz/exposify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thlorenz/exposify/statuses/{sha}","languages_url":"https://api.github.com/repos/thlorenz/exposify/languages","stargazers_url":"https://api.github.com/repos/thlorenz/exposify/stargazers","contributors_url":"https://api.github.com/repos/thlorenz/exposify/contributors","subscribers_url":"https://api.github.com/repos/thlorenz/exposify/subscribers","subscription_url":"https://api.github.com/repos/thlorenz/exposify/subscription","commits_url":"https://api.github.com/repos/thlorenz/exposify/commits{/sha}","git_commits_url":"https://api.github.com/repos/thlorenz/exposify/git/commits{/sha}","comments_url":"https://api.github.com/repos/thlorenz/exposify/comments{/number}","issue_comment_url":"https://api.github.com/repos/thlorenz/exposify/issues/comments{/number}","contents_url":"https://api.github.com/repos/thlorenz/exposify/contents/{+path}","compare_url":"https://api.github.com/repos/thlorenz/exposify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thlorenz/exposify/merges","archive_url":"https://api.github.com/repos/thlorenz/exposify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thlorenz/exposify/downloads","issues_url":"https://api.github.com/repos/thlorenz/exposify/issues{/number}","pulls_url":"https://api.github.com/repos/thlorenz/exposify/pulls{/number}","milestones_url":"https://api.github.com/repos/thlorenz/exposify/milestones{/number}","notifications_url":"https://api.github.com/repos/thlorenz/exposify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thlorenz/exposify/labels{/name}","releases_url":"https://api.github.com/repos/thlorenz/exposify/releases{/id}","created_at":"2014-01-17T17:21:58Z","updated_at":"2015-06-04T01:47:53Z","pushed_at":"2015-06-05T04:47:35Z","git_url":"git://github.com/thlorenz/exposify.git","ssh_url":"git@github.com:thlorenz/exposify.git","clone_url":"https://github.com/thlorenz/exposify.git","svn_url":"https://github.com/thlorenz/exposify","homepage":"","size":401,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thlorenz/exposify/pulls/14"},"html":{"href":"https://github.com/thlorenz/exposify/pull/14"},"issue":{"href":"https://api.github.com/repos/thlorenz/exposify/issues/14"},"comments":{"href":"https://api.github.com/repos/thlorenz/exposify/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/thlorenz/exposify/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/thlorenz/exposify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thlorenz/exposify/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/thlorenz/exposify/statuses/4043c15e5b3ba830fa60e034cec390edae7aed49"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":30,"deletions":85,"changed_files":3}}