{"action":"created","comment":{"url":"https://api.github.com/repos/paypal/react-engine/pulls/comments/42203668","id":42203668,"diff_hunk":"@@ -38,6 +34,18 @@ var TEMPLATE = ['<script id=\"%s\" type=\"application/javascript\">var ',\n \n exports.create = function create(createOptions) {\n \n+  // safely require the peer-dependencies\n+  var React = util.safeRequire('react');\n+  var Router = util.safeRequire('react-router');\n+\n+  if (!React) {\n+    throw new Error('React is required as a peer dependency. Run `npm instal react`.')\n+  }\n+\n+  if (!Router) {\n+    throw new Error('React Router is required as a peer dependency. Run `npm instal react-router`.')","path":"lib/server.js","position":24,"original_position":24,"commit_id":"48401a32820f9256422dfb4a5b855400396e45f6","original_commit_id":"48401a32820f9256422dfb4a5b855400396e45f6","user":{"login":"stevemao","id":6316590,"avatar_url":"https://avatars.githubusercontent.com/u/6316590?v=3","gravatar_id":"","url":"https://api.github.com/users/stevemao","html_url":"https://github.com/stevemao","followers_url":"https://api.github.com/users/stevemao/followers","following_url":"https://api.github.com/users/stevemao/following{/other_user}","gists_url":"https://api.github.com/users/stevemao/gists{/gist_id}","starred_url":"https://api.github.com/users/stevemao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevemao/subscriptions","organizations_url":"https://api.github.com/users/stevemao/orgs","repos_url":"https://api.github.com/users/stevemao/repos","events_url":"https://api.github.com/users/stevemao/events{/privacy}","received_events_url":"https://api.github.com/users/stevemao/received_events","type":"User","site_admin":false},"body":"It is not? https://github.com/paypal/react-engine/issues/97\r\n\r\n> @stevemao right now no. I guess we can move this https://github.com/paypal/react-engine/blob/master/lib/server.js#L29\r\n\r\nSorry if I misunderstood you.","created_at":"2015-10-16T02:29:57Z","updated_at":"2015-10-16T02:29:57Z","html_url":"https://github.com/paypal/react-engine/pull/98#discussion_r42203668","pull_request_url":"https://api.github.com/repos/paypal/react-engine/pulls/98","_links":{"self":{"href":"https://api.github.com/repos/paypal/react-engine/pulls/comments/42203668"},"html":{"href":"https://github.com/paypal/react-engine/pull/98#discussion_r42203668"},"pull_request":{"href":"https://api.github.com/repos/paypal/react-engine/pulls/98"}}},"pull_request":{"url":"https://api.github.com/repos/paypal/react-engine/pulls/98","id":47384309,"html_url":"https://github.com/paypal/react-engine/pull/98","diff_url":"https://github.com/paypal/react-engine/pull/98.diff","patch_url":"https://github.com/paypal/react-engine/pull/98.patch","issue_url":"https://api.github.com/repos/paypal/react-engine/issues/98","number":98,"state":"open","locked":false,"title":"Throw an error if peer dependency is not installed","user":{"login":"stevemao","id":6316590,"avatar_url":"https://avatars.githubusercontent.com/u/6316590?v=3","gravatar_id":"","url":"https://api.github.com/users/stevemao","html_url":"https://github.com/stevemao","followers_url":"https://api.github.com/users/stevemao/followers","following_url":"https://api.github.com/users/stevemao/following{/other_user}","gists_url":"https://api.github.com/users/stevemao/gists{/gist_id}","starred_url":"https://api.github.com/users/stevemao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevemao/subscriptions","organizations_url":"https://api.github.com/users/stevemao/orgs","repos_url":"https://api.github.com/users/stevemao/repos","events_url":"https://api.github.com/users/stevemao/events{/privacy}","received_events_url":"https://api.github.com/users/stevemao/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-12T03:59:54Z","updated_at":"2015-10-16T02:29:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"170573fb21138c5b44362fdc82f0545f4ca9a0dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paypal/react-engine/pulls/98/commits","review_comments_url":"https://api.github.com/repos/paypal/react-engine/pulls/98/comments","review_comment_url":"https://api.github.com/repos/paypal/react-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paypal/react-engine/issues/98/comments","statuses_url":"https://api.github.com/repos/paypal/react-engine/statuses/48401a32820f9256422dfb4a5b855400396e45f6","head":{"label":"stevemao:peer-deps","ref":"peer-deps","sha":"48401a32820f9256422dfb4a5b855400396e45f6","user":{"login":"stevemao","id":6316590,"avatar_url":"https://avatars.githubusercontent.com/u/6316590?v=3","gravatar_id":"","url":"https://api.github.com/users/stevemao","html_url":"https://github.com/stevemao","followers_url":"https://api.github.com/users/stevemao/followers","following_url":"https://api.github.com/users/stevemao/following{/other_user}","gists_url":"https://api.github.com/users/stevemao/gists{/gist_id}","starred_url":"https://api.github.com/users/stevemao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevemao/subscriptions","organizations_url":"https://api.github.com/users/stevemao/orgs","repos_url":"https://api.github.com/users/stevemao/repos","events_url":"https://api.github.com/users/stevemao/events{/privacy}","received_events_url":"https://api.github.com/users/stevemao/received_events","type":"User","site_admin":false},"repo":{"id":44083232,"name":"react-engine","full_name":"stevemao/react-engine","owner":{"login":"stevemao","id":6316590,"avatar_url":"https://avatars.githubusercontent.com/u/6316590?v=3","gravatar_id":"","url":"https://api.github.com/users/stevemao","html_url":"https://github.com/stevemao","followers_url":"https://api.github.com/users/stevemao/followers","following_url":"https://api.github.com/users/stevemao/following{/other_user}","gists_url":"https://api.github.com/users/stevemao/gists{/gist_id}","starred_url":"https://api.github.com/users/stevemao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevemao/subscriptions","organizations_url":"https://api.github.com/users/stevemao/orgs","repos_url":"https://api.github.com/users/stevemao/repos","events_url":"https://api.github.com/users/stevemao/events{/privacy}","received_events_url":"https://api.github.com/users/stevemao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevemao/react-engine","description":"a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views","fork":true,"url":"https://api.github.com/repos/stevemao/react-engine","forks_url":"https://api.github.com/repos/stevemao/react-engine/forks","keys_url":"https://api.github.com/repos/stevemao/react-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevemao/react-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevemao/react-engine/teams","hooks_url":"https://api.github.com/repos/stevemao/react-engine/hooks","issue_events_url":"https://api.github.com/repos/stevemao/react-engine/issues/events{/number}","events_url":"https://api.github.com/repos/stevemao/react-engine/events","assignees_url":"https://api.github.com/repos/stevemao/react-engine/assignees{/user}","branches_url":"https://api.github.com/repos/stevemao/react-engine/branches{/branch}","tags_url":"https://api.github.com/repos/stevemao/react-engine/tags","blobs_url":"https://api.github.com/repos/stevemao/react-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevemao/react-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevemao/react-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevemao/react-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevemao/react-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/stevemao/react-engine/languages","stargazers_url":"https://api.github.com/repos/stevemao/react-engine/stargazers","contributors_url":"https://api.github.com/repos/stevemao/react-engine/contributors","subscribers_url":"https://api.github.com/repos/stevemao/react-engine/subscribers","subscription_url":"https://api.github.com/repos/stevemao/react-engine/subscription","commits_url":"https://api.github.com/repos/stevemao/react-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevemao/react-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevemao/react-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevemao/react-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevemao/react-engine/contents/{+path}","compare_url":"https://api.github.com/repos/stevemao/react-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevemao/react-engine/merges","archive_url":"https://api.github.com/repos/stevemao/react-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevemao/react-engine/downloads","issues_url":"https://api.github.com/repos/stevemao/react-engine/issues{/number}","pulls_url":"https://api.github.com/repos/stevemao/react-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/stevemao/react-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/stevemao/react-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevemao/react-engine/labels{/name}","releases_url":"https://api.github.com/repos/stevemao/react-engine/releases{/id}","created_at":"2015-10-12T03:59:26Z","updated_at":"2015-10-12T03:59:27Z","pushed_at":"2015-10-12T03:59:38Z","git_url":"git://github.com/stevemao/react-engine.git","ssh_url":"git@github.com:stevemao/react-engine.git","clone_url":"https://github.com/stevemao/react-engine.git","svn_url":"https://github.com/stevemao/react-engine","homepage":"","size":193,"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":"paypal:master","ref":"master","sha":"e89afd87b672cd422d23f4b048c85ebf512f2022","user":{"login":"paypal","id":476675,"avatar_url":"https://avatars.githubusercontent.com/u/476675?v=3","gravatar_id":"","url":"https://api.github.com/users/paypal","html_url":"https://github.com/paypal","followers_url":"https://api.github.com/users/paypal/followers","following_url":"https://api.github.com/users/paypal/following{/other_user}","gists_url":"https://api.github.com/users/paypal/gists{/gist_id}","starred_url":"https://api.github.com/users/paypal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paypal/subscriptions","organizations_url":"https://api.github.com/users/paypal/orgs","repos_url":"https://api.github.com/users/paypal/repos","events_url":"https://api.github.com/users/paypal/events{/privacy}","received_events_url":"https://api.github.com/users/paypal/received_events","type":"Organization","site_admin":false},"repo":{"id":33693426,"name":"react-engine","full_name":"paypal/react-engine","owner":{"login":"paypal","id":476675,"avatar_url":"https://avatars.githubusercontent.com/u/476675?v=3","gravatar_id":"","url":"https://api.github.com/users/paypal","html_url":"https://github.com/paypal","followers_url":"https://api.github.com/users/paypal/followers","following_url":"https://api.github.com/users/paypal/following{/other_user}","gists_url":"https://api.github.com/users/paypal/gists{/gist_id}","starred_url":"https://api.github.com/users/paypal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paypal/subscriptions","organizations_url":"https://api.github.com/users/paypal/orgs","repos_url":"https://api.github.com/users/paypal/repos","events_url":"https://api.github.com/users/paypal/events{/privacy}","received_events_url":"https://api.github.com/users/paypal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paypal/react-engine","description":"a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views","fork":false,"url":"https://api.github.com/repos/paypal/react-engine","forks_url":"https://api.github.com/repos/paypal/react-engine/forks","keys_url":"https://api.github.com/repos/paypal/react-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paypal/react-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paypal/react-engine/teams","hooks_url":"https://api.github.com/repos/paypal/react-engine/hooks","issue_events_url":"https://api.github.com/repos/paypal/react-engine/issues/events{/number}","events_url":"https://api.github.com/repos/paypal/react-engine/events","assignees_url":"https://api.github.com/repos/paypal/react-engine/assignees{/user}","branches_url":"https://api.github.com/repos/paypal/react-engine/branches{/branch}","tags_url":"https://api.github.com/repos/paypal/react-engine/tags","blobs_url":"https://api.github.com/repos/paypal/react-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paypal/react-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paypal/react-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/paypal/react-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paypal/react-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/paypal/react-engine/languages","stargazers_url":"https://api.github.com/repos/paypal/react-engine/stargazers","contributors_url":"https://api.github.com/repos/paypal/react-engine/contributors","subscribers_url":"https://api.github.com/repos/paypal/react-engine/subscribers","subscription_url":"https://api.github.com/repos/paypal/react-engine/subscription","commits_url":"https://api.github.com/repos/paypal/react-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/paypal/react-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/paypal/react-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/paypal/react-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/paypal/react-engine/contents/{+path}","compare_url":"https://api.github.com/repos/paypal/react-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paypal/react-engine/merges","archive_url":"https://api.github.com/repos/paypal/react-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paypal/react-engine/downloads","issues_url":"https://api.github.com/repos/paypal/react-engine/issues{/number}","pulls_url":"https://api.github.com/repos/paypal/react-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/paypal/react-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/paypal/react-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paypal/react-engine/labels{/name}","releases_url":"https://api.github.com/repos/paypal/react-engine/releases{/id}","created_at":"2015-04-09T21:21:08Z","updated_at":"2015-10-15T00:36:05Z","pushed_at":"2015-10-16T01:39:06Z","git_url":"git://github.com/paypal/react-engine.git","ssh_url":"git@github.com:paypal/react-engine.git","clone_url":"https://github.com/paypal/react-engine.git","svn_url":"https://github.com/paypal/react-engine","homepage":"","size":732,"stargazers_count":624,"watchers_count":624,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":21,"forks":58,"open_issues":21,"watchers":624,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paypal/react-engine/pulls/98"},"html":{"href":"https://github.com/paypal/react-engine/pull/98"},"issue":{"href":"https://api.github.com/repos/paypal/react-engine/issues/98"},"comments":{"href":"https://api.github.com/repos/paypal/react-engine/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/paypal/react-engine/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/paypal/react-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paypal/react-engine/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/paypal/react-engine/statuses/48401a32820f9256422dfb4a5b855400396e45f6"}}}}