{"action":"created","comment":{"url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/comments/84507424","pull_request_review_id":5283889,"id":84507424,"diff_hunk":"@@ -0,0 +1,39 @@\n+\"use strict\";\n+\n+module.exports = (host, verbose) => {\n+    var dateService, logger, requestPromise, ShelfFile, shelfLib, ShelfMetadata, ShelfReference, URI, utils;\n+\n+    if (verbose) {\n+        verbose = true;\n+    } else {\n+        verbose = false;\n+    }\n+\n+    // If host doesn't start with \"http://\" or \"https://\", throw an error.\n+    if (!/^http(|s):\\/\\//.test(host)) {\n+        throw new Error(\"Shelf host must start with \\\"http://\\\" or \\\"https://\\\"\");\n+    }\n+\n+    shelfLib = {};\n+    dateService = require(\"./date-service\")();\n+    logger = require(\"./logger\")({\n+        verbose\n+    });\n+    requestPromise = require(\"request-promise\");\n+    URI = require(\"urijs\");\n+    utils = require(\"./utils\")(dateService, logger, URI);\n+    ShelfMetadata = require(\"./shelf-metadata\")(logger, requestPromise, utils);\n+    ShelfFile = require(\"./shelf-file\")(logger, requestPromise, ShelfMetadata, utils);","path":"lib/app.js","position":26,"original_position":26,"commit_id":"123ad371fa956bf7af5d6f96d8c2ce2daa006ad6","original_commit_id":"123ad371fa956bf7af5d6f96d8c2ce2daa006ad6","user":{"login":"GoogilyBoogily","id":1896759,"avatar_url":"https://avatars.githubusercontent.com/u/1896759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogilyBoogily","html_url":"https://github.com/GoogilyBoogily","followers_url":"https://api.github.com/users/GoogilyBoogily/followers","following_url":"https://api.github.com/users/GoogilyBoogily/following{/other_user}","gists_url":"https://api.github.com/users/GoogilyBoogily/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogilyBoogily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogilyBoogily/subscriptions","organizations_url":"https://api.github.com/users/GoogilyBoogily/orgs","repos_url":"https://api.github.com/users/GoogilyBoogily/repos","events_url":"https://api.github.com/users/GoogilyBoogily/events{/privacy}","received_events_url":"https://api.github.com/users/GoogilyBoogily/received_events","type":"User","site_admin":false},"body":"Yeah, I suppose. I guess I was trying to be as explicit as possible about what they were. I'll remove the \"shelf-\" portion of stuffs.","created_at":"2016-10-21T15:53:59Z","updated_at":"2016-10-21T15:53:59Z","html_url":"https://github.com/GoogilyBoogily/shelf-lib-js/pull/1#discussion_r84507424","pull_request_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/comments/84507424"},"html":{"href":"https://github.com/GoogilyBoogily/shelf-lib-js/pull/1#discussion_r84507424"},"pull_request":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1","id":90040543,"html_url":"https://github.com/GoogilyBoogily/shelf-lib-js/pull/1","diff_url":"https://github.com/GoogilyBoogily/shelf-lib-js/pull/1.diff","patch_url":"https://github.com/GoogilyBoogily/shelf-lib-js/pull/1.patch","issue_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/1","number":1,"state":"open","locked":false,"title":"First fully working version of shelf-lib-js","user":{"login":"GoogilyBoogily","id":1896759,"avatar_url":"https://avatars.githubusercontent.com/u/1896759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogilyBoogily","html_url":"https://github.com/GoogilyBoogily","followers_url":"https://api.github.com/users/GoogilyBoogily/followers","following_url":"https://api.github.com/users/GoogilyBoogily/following{/other_user}","gists_url":"https://api.github.com/users/GoogilyBoogily/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogilyBoogily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogilyBoogily/subscriptions","organizations_url":"https://api.github.com/users/GoogilyBoogily/orgs","repos_url":"https://api.github.com/users/GoogilyBoogily/repos","events_url":"https://api.github.com/users/GoogilyBoogily/events{/privacy}","received_events_url":"https://api.github.com/users/GoogilyBoogily/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-19T16:03:06Z","updated_at":"2016-10-21T15:53:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c9e47c3cf7521a8f148785165a869dc66a89427","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1/commits","review_comments_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1/comments","review_comment_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/1/comments","statuses_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/statuses/123ad371fa956bf7af5d6f96d8c2ce2daa006ad6","head":{"label":"GoogilyBoogily:develop","ref":"develop","sha":"123ad371fa956bf7af5d6f96d8c2ce2daa006ad6","user":{"login":"GoogilyBoogily","id":1896759,"avatar_url":"https://avatars.githubusercontent.com/u/1896759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogilyBoogily","html_url":"https://github.com/GoogilyBoogily","followers_url":"https://api.github.com/users/GoogilyBoogily/followers","following_url":"https://api.github.com/users/GoogilyBoogily/following{/other_user}","gists_url":"https://api.github.com/users/GoogilyBoogily/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogilyBoogily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogilyBoogily/subscriptions","organizations_url":"https://api.github.com/users/GoogilyBoogily/orgs","repos_url":"https://api.github.com/users/GoogilyBoogily/repos","events_url":"https://api.github.com/users/GoogilyBoogily/events{/privacy}","received_events_url":"https://api.github.com/users/GoogilyBoogily/received_events","type":"User","site_admin":false},"repo":{"id":70175423,"name":"shelf-lib-js","full_name":"GoogilyBoogily/shelf-lib-js","owner":{"login":"GoogilyBoogily","id":1896759,"avatar_url":"https://avatars.githubusercontent.com/u/1896759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogilyBoogily","html_url":"https://github.com/GoogilyBoogily","followers_url":"https://api.github.com/users/GoogilyBoogily/followers","following_url":"https://api.github.com/users/GoogilyBoogily/following{/other_user}","gists_url":"https://api.github.com/users/GoogilyBoogily/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogilyBoogily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogilyBoogily/subscriptions","organizations_url":"https://api.github.com/users/GoogilyBoogily/orgs","repos_url":"https://api.github.com/users/GoogilyBoogily/repos","events_url":"https://api.github.com/users/GoogilyBoogily/events{/privacy}","received_events_url":"https://api.github.com/users/GoogilyBoogily/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GoogilyBoogily/shelf-lib-js","description":null,"fork":false,"url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js","forks_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/forks","keys_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/teams","hooks_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/hooks","issue_events_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/events{/number}","events_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/events","assignees_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/assignees{/user}","branches_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/branches{/branch}","tags_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/tags","blobs_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/languages","stargazers_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/stargazers","contributors_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/contributors","subscribers_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/subscribers","subscription_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/subscription","commits_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/contents/{+path}","compare_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/merges","archive_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/downloads","issues_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues{/number}","pulls_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/labels{/name}","releases_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/releases{/id}","deployments_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/deployments","created_at":"2016-10-06T17:13:01Z","updated_at":"2016-10-13T13:20:09Z","pushed_at":"2016-10-20T14:05:25Z","git_url":"git://github.com/GoogilyBoogily/shelf-lib-js.git","ssh_url":"git@github.com:GoogilyBoogily/shelf-lib-js.git","clone_url":"https://github.com/GoogilyBoogily/shelf-lib-js.git","svn_url":"https://github.com/GoogilyBoogily/shelf-lib-js","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogilyBoogily:master","ref":"master","sha":"cdc91200127a05fbbbc3e5738159a9dd0c7d10db","user":{"login":"GoogilyBoogily","id":1896759,"avatar_url":"https://avatars.githubusercontent.com/u/1896759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogilyBoogily","html_url":"https://github.com/GoogilyBoogily","followers_url":"https://api.github.com/users/GoogilyBoogily/followers","following_url":"https://api.github.com/users/GoogilyBoogily/following{/other_user}","gists_url":"https://api.github.com/users/GoogilyBoogily/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogilyBoogily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogilyBoogily/subscriptions","organizations_url":"https://api.github.com/users/GoogilyBoogily/orgs","repos_url":"https://api.github.com/users/GoogilyBoogily/repos","events_url":"https://api.github.com/users/GoogilyBoogily/events{/privacy}","received_events_url":"https://api.github.com/users/GoogilyBoogily/received_events","type":"User","site_admin":false},"repo":{"id":70175423,"name":"shelf-lib-js","full_name":"GoogilyBoogily/shelf-lib-js","owner":{"login":"GoogilyBoogily","id":1896759,"avatar_url":"https://avatars.githubusercontent.com/u/1896759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogilyBoogily","html_url":"https://github.com/GoogilyBoogily","followers_url":"https://api.github.com/users/GoogilyBoogily/followers","following_url":"https://api.github.com/users/GoogilyBoogily/following{/other_user}","gists_url":"https://api.github.com/users/GoogilyBoogily/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogilyBoogily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogilyBoogily/subscriptions","organizations_url":"https://api.github.com/users/GoogilyBoogily/orgs","repos_url":"https://api.github.com/users/GoogilyBoogily/repos","events_url":"https://api.github.com/users/GoogilyBoogily/events{/privacy}","received_events_url":"https://api.github.com/users/GoogilyBoogily/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GoogilyBoogily/shelf-lib-js","description":null,"fork":false,"url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js","forks_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/forks","keys_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/teams","hooks_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/hooks","issue_events_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/events{/number}","events_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/events","assignees_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/assignees{/user}","branches_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/branches{/branch}","tags_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/tags","blobs_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/languages","stargazers_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/stargazers","contributors_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/contributors","subscribers_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/subscribers","subscription_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/subscription","commits_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/contents/{+path}","compare_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/merges","archive_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/downloads","issues_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues{/number}","pulls_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/labels{/name}","releases_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/releases{/id}","deployments_url":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/deployments","created_at":"2016-10-06T17:13:01Z","updated_at":"2016-10-13T13:20:09Z","pushed_at":"2016-10-20T14:05:25Z","git_url":"git://github.com/GoogilyBoogily/shelf-lib-js.git","ssh_url":"git@github.com:GoogilyBoogily/shelf-lib-js.git","clone_url":"https://github.com/GoogilyBoogily/shelf-lib-js.git","svn_url":"https://github.com/GoogilyBoogily/shelf-lib-js","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1"},"html":{"href":"https://github.com/GoogilyBoogily/shelf-lib-js/pull/1"},"issue":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/1"},"comments":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/GoogilyBoogily/shelf-lib-js/statuses/123ad371fa956bf7af5d6f96d8c2ce2daa006ad6"}}}}
{"actor":{"display_login":"GoogilyBoogily"}}