{"action":"created","comment":{"url":"https://api.github.com/repos/comparaonline/textinator/pulls/comments/43931209","id":43931209,"diff_hunk":"@@ -0,0 +1,40 @@\n+const Persistence = require('./persistence');\n+const persistenceClient = Persistence.factory();","path":"lib/text.js","position":2,"original_position":2,"commit_id":"b0eb3b7e9a3f6d8613bb3feafaaa49efa25dfa9d","original_commit_id":"b0eb3b7e9a3f6d8613bb3feafaaa49efa25dfa9d","user":{"login":"warseph","id":759968,"avatar_url":"https://avatars.githubusercontent.com/u/759968?v=3","gravatar_id":"","url":"https://api.github.com/users/warseph","html_url":"https://github.com/warseph","followers_url":"https://api.github.com/users/warseph/followers","following_url":"https://api.github.com/users/warseph/following{/other_user}","gists_url":"https://api.github.com/users/warseph/gists{/gist_id}","starred_url":"https://api.github.com/users/warseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warseph/subscriptions","organizations_url":"https://api.github.com/users/warseph/orgs","repos_url":"https://api.github.com/users/warseph/repos","events_url":"https://api.github.com/users/warseph/events{/privacy}","received_events_url":"https://api.github.com/users/warseph/received_events","type":"User","site_admin":false},"body":"Maybe to be consistent with your other modules you could just do:\r\n```javascript\r\nconst persistenceClient = require('./persistence').factory();\r\n```","created_at":"2015-11-04T20:00:12Z","updated_at":"2015-11-04T20:00:12Z","html_url":"https://github.com/comparaonline/textinator/pull/1#discussion_r43931209","pull_request_url":"https://api.github.com/repos/comparaonline/textinator/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/comparaonline/textinator/pulls/comments/43931209"},"html":{"href":"https://github.com/comparaonline/textinator/pull/1#discussion_r43931209"},"pull_request":{"href":"https://api.github.com/repos/comparaonline/textinator/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/comparaonline/textinator/pulls/1","id":49733741,"html_url":"https://github.com/comparaonline/textinator/pull/1","diff_url":"https://github.com/comparaonline/textinator/pull/1.diff","patch_url":"https://github.com/comparaonline/textinator/pull/1.patch","issue_url":"https://api.github.com/repos/comparaonline/textinator/issues/1","number":1,"state":"closed","locked":false,"title":"Basic features","user":{"login":"insxne","id":10645,"avatar_url":"https://avatars.githubusercontent.com/u/10645?v=3","gravatar_id":"","url":"https://api.github.com/users/insxne","html_url":"https://github.com/insxne","followers_url":"https://api.github.com/users/insxne/followers","following_url":"https://api.github.com/users/insxne/following{/other_user}","gists_url":"https://api.github.com/users/insxne/gists{/gist_id}","starred_url":"https://api.github.com/users/insxne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insxne/subscriptions","organizations_url":"https://api.github.com/users/insxne/orgs","repos_url":"https://api.github.com/users/insxne/repos","events_url":"https://api.github.com/users/insxne/events{/privacy}","received_events_url":"https://api.github.com/users/insxne/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-04T19:30:35Z","updated_at":"2015-11-04T20:00:12Z","closed_at":"2015-11-04T19:31:53Z","merged_at":"2015-11-04T19:31:53Z","merge_commit_sha":"455c3270158c49eeacaec288dbd466c363413f85","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/comparaonline/textinator/pulls/1/commits","review_comments_url":"https://api.github.com/repos/comparaonline/textinator/pulls/1/comments","review_comment_url":"https://api.github.com/repos/comparaonline/textinator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/comparaonline/textinator/issues/1/comments","statuses_url":"https://api.github.com/repos/comparaonline/textinator/statuses/b0eb3b7e9a3f6d8613bb3feafaaa49efa25dfa9d","head":{"label":"comparaonline:basic-features","ref":"basic-features","sha":"b0eb3b7e9a3f6d8613bb3feafaaa49efa25dfa9d","user":{"login":"comparaonline","id":1827160,"avatar_url":"https://avatars.githubusercontent.com/u/1827160?v=3","gravatar_id":"","url":"https://api.github.com/users/comparaonline","html_url":"https://github.com/comparaonline","followers_url":"https://api.github.com/users/comparaonline/followers","following_url":"https://api.github.com/users/comparaonline/following{/other_user}","gists_url":"https://api.github.com/users/comparaonline/gists{/gist_id}","starred_url":"https://api.github.com/users/comparaonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comparaonline/subscriptions","organizations_url":"https://api.github.com/users/comparaonline/orgs","repos_url":"https://api.github.com/users/comparaonline/repos","events_url":"https://api.github.com/users/comparaonline/events{/privacy}","received_events_url":"https://api.github.com/users/comparaonline/received_events","type":"Organization","site_admin":false},"repo":{"id":44832534,"name":"textinator","full_name":"comparaonline/textinator","owner":{"login":"comparaonline","id":1827160,"avatar_url":"https://avatars.githubusercontent.com/u/1827160?v=3","gravatar_id":"","url":"https://api.github.com/users/comparaonline","html_url":"https://github.com/comparaonline","followers_url":"https://api.github.com/users/comparaonline/followers","following_url":"https://api.github.com/users/comparaonline/following{/other_user}","gists_url":"https://api.github.com/users/comparaonline/gists{/gist_id}","starred_url":"https://api.github.com/users/comparaonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comparaonline/subscriptions","organizations_url":"https://api.github.com/users/comparaonline/orgs","repos_url":"https://api.github.com/users/comparaonline/repos","events_url":"https://api.github.com/users/comparaonline/events{/privacy}","received_events_url":"https://api.github.com/users/comparaonline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/comparaonline/textinator","description":"App for store and retrieve texts on a key/value fashion","fork":false,"url":"https://api.github.com/repos/comparaonline/textinator","forks_url":"https://api.github.com/repos/comparaonline/textinator/forks","keys_url":"https://api.github.com/repos/comparaonline/textinator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/comparaonline/textinator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/comparaonline/textinator/teams","hooks_url":"https://api.github.com/repos/comparaonline/textinator/hooks","issue_events_url":"https://api.github.com/repos/comparaonline/textinator/issues/events{/number}","events_url":"https://api.github.com/repos/comparaonline/textinator/events","assignees_url":"https://api.github.com/repos/comparaonline/textinator/assignees{/user}","branches_url":"https://api.github.com/repos/comparaonline/textinator/branches{/branch}","tags_url":"https://api.github.com/repos/comparaonline/textinator/tags","blobs_url":"https://api.github.com/repos/comparaonline/textinator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/comparaonline/textinator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/comparaonline/textinator/git/refs{/sha}","trees_url":"https://api.github.com/repos/comparaonline/textinator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/comparaonline/textinator/statuses/{sha}","languages_url":"https://api.github.com/repos/comparaonline/textinator/languages","stargazers_url":"https://api.github.com/repos/comparaonline/textinator/stargazers","contributors_url":"https://api.github.com/repos/comparaonline/textinator/contributors","subscribers_url":"https://api.github.com/repos/comparaonline/textinator/subscribers","subscription_url":"https://api.github.com/repos/comparaonline/textinator/subscription","commits_url":"https://api.github.com/repos/comparaonline/textinator/commits{/sha}","git_commits_url":"https://api.github.com/repos/comparaonline/textinator/git/commits{/sha}","comments_url":"https://api.github.com/repos/comparaonline/textinator/comments{/number}","issue_comment_url":"https://api.github.com/repos/comparaonline/textinator/issues/comments{/number}","contents_url":"https://api.github.com/repos/comparaonline/textinator/contents/{+path}","compare_url":"https://api.github.com/repos/comparaonline/textinator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/comparaonline/textinator/merges","archive_url":"https://api.github.com/repos/comparaonline/textinator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/comparaonline/textinator/downloads","issues_url":"https://api.github.com/repos/comparaonline/textinator/issues{/number}","pulls_url":"https://api.github.com/repos/comparaonline/textinator/pulls{/number}","milestones_url":"https://api.github.com/repos/comparaonline/textinator/milestones{/number}","notifications_url":"https://api.github.com/repos/comparaonline/textinator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/comparaonline/textinator/labels{/name}","releases_url":"https://api.github.com/repos/comparaonline/textinator/releases{/id}","created_at":"2015-10-23T18:59:02Z","updated_at":"2015-11-04T19:31:54Z","pushed_at":"2015-11-04T19:31:54Z","git_url":"git://github.com/comparaonline/textinator.git","ssh_url":"git@github.com:comparaonline/textinator.git","clone_url":"https://github.com/comparaonline/textinator.git","svn_url":"https://github.com/comparaonline/textinator","homepage":null,"size":267,"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"}},"base":{"label":"comparaonline:master","ref":"master","sha":"06f4f1e0fe1420824e0b6f258fe9af3c290c1253","user":{"login":"comparaonline","id":1827160,"avatar_url":"https://avatars.githubusercontent.com/u/1827160?v=3","gravatar_id":"","url":"https://api.github.com/users/comparaonline","html_url":"https://github.com/comparaonline","followers_url":"https://api.github.com/users/comparaonline/followers","following_url":"https://api.github.com/users/comparaonline/following{/other_user}","gists_url":"https://api.github.com/users/comparaonline/gists{/gist_id}","starred_url":"https://api.github.com/users/comparaonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comparaonline/subscriptions","organizations_url":"https://api.github.com/users/comparaonline/orgs","repos_url":"https://api.github.com/users/comparaonline/repos","events_url":"https://api.github.com/users/comparaonline/events{/privacy}","received_events_url":"https://api.github.com/users/comparaonline/received_events","type":"Organization","site_admin":false},"repo":{"id":44832534,"name":"textinator","full_name":"comparaonline/textinator","owner":{"login":"comparaonline","id":1827160,"avatar_url":"https://avatars.githubusercontent.com/u/1827160?v=3","gravatar_id":"","url":"https://api.github.com/users/comparaonline","html_url":"https://github.com/comparaonline","followers_url":"https://api.github.com/users/comparaonline/followers","following_url":"https://api.github.com/users/comparaonline/following{/other_user}","gists_url":"https://api.github.com/users/comparaonline/gists{/gist_id}","starred_url":"https://api.github.com/users/comparaonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comparaonline/subscriptions","organizations_url":"https://api.github.com/users/comparaonline/orgs","repos_url":"https://api.github.com/users/comparaonline/repos","events_url":"https://api.github.com/users/comparaonline/events{/privacy}","received_events_url":"https://api.github.com/users/comparaonline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/comparaonline/textinator","description":"App for store and retrieve texts on a key/value fashion","fork":false,"url":"https://api.github.com/repos/comparaonline/textinator","forks_url":"https://api.github.com/repos/comparaonline/textinator/forks","keys_url":"https://api.github.com/repos/comparaonline/textinator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/comparaonline/textinator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/comparaonline/textinator/teams","hooks_url":"https://api.github.com/repos/comparaonline/textinator/hooks","issue_events_url":"https://api.github.com/repos/comparaonline/textinator/issues/events{/number}","events_url":"https://api.github.com/repos/comparaonline/textinator/events","assignees_url":"https://api.github.com/repos/comparaonline/textinator/assignees{/user}","branches_url":"https://api.github.com/repos/comparaonline/textinator/branches{/branch}","tags_url":"https://api.github.com/repos/comparaonline/textinator/tags","blobs_url":"https://api.github.com/repos/comparaonline/textinator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/comparaonline/textinator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/comparaonline/textinator/git/refs{/sha}","trees_url":"https://api.github.com/repos/comparaonline/textinator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/comparaonline/textinator/statuses/{sha}","languages_url":"https://api.github.com/repos/comparaonline/textinator/languages","stargazers_url":"https://api.github.com/repos/comparaonline/textinator/stargazers","contributors_url":"https://api.github.com/repos/comparaonline/textinator/contributors","subscribers_url":"https://api.github.com/repos/comparaonline/textinator/subscribers","subscription_url":"https://api.github.com/repos/comparaonline/textinator/subscription","commits_url":"https://api.github.com/repos/comparaonline/textinator/commits{/sha}","git_commits_url":"https://api.github.com/repos/comparaonline/textinator/git/commits{/sha}","comments_url":"https://api.github.com/repos/comparaonline/textinator/comments{/number}","issue_comment_url":"https://api.github.com/repos/comparaonline/textinator/issues/comments{/number}","contents_url":"https://api.github.com/repos/comparaonline/textinator/contents/{+path}","compare_url":"https://api.github.com/repos/comparaonline/textinator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/comparaonline/textinator/merges","archive_url":"https://api.github.com/repos/comparaonline/textinator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/comparaonline/textinator/downloads","issues_url":"https://api.github.com/repos/comparaonline/textinator/issues{/number}","pulls_url":"https://api.github.com/repos/comparaonline/textinator/pulls{/number}","milestones_url":"https://api.github.com/repos/comparaonline/textinator/milestones{/number}","notifications_url":"https://api.github.com/repos/comparaonline/textinator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/comparaonline/textinator/labels{/name}","releases_url":"https://api.github.com/repos/comparaonline/textinator/releases{/id}","created_at":"2015-10-23T18:59:02Z","updated_at":"2015-11-04T19:31:54Z","pushed_at":"2015-11-04T19:31:54Z","git_url":"git://github.com/comparaonline/textinator.git","ssh_url":"git@github.com:comparaonline/textinator.git","clone_url":"https://github.com/comparaonline/textinator.git","svn_url":"https://github.com/comparaonline/textinator","homepage":null,"size":267,"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/comparaonline/textinator/pulls/1"},"html":{"href":"https://github.com/comparaonline/textinator/pull/1"},"issue":{"href":"https://api.github.com/repos/comparaonline/textinator/issues/1"},"comments":{"href":"https://api.github.com/repos/comparaonline/textinator/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/comparaonline/textinator/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/comparaonline/textinator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/comparaonline/textinator/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/comparaonline/textinator/statuses/b0eb3b7e9a3f6d8613bb3feafaaa49efa25dfa9d"}}}}