{"action":"created","comment":{"url":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/comments/91366675","pull_request_review_id":11875668,"id":91366675,"diff_hunk":"@@ -0,0 +1,125 @@\n+import {\n+  rand,\n+  checksum,\n+  getLastItem\n+} from './helpers';\n+const EXPORTED_METHODS = ['save', 'addMedia', 'addCard', 'update'];\n+export const SEPARATOR = '\\u001F';\n+\n+export default class {\n+  constructor(db, zip) {\n+    this.db = db;\n+    this.zip = zip;\n+    this.media = [];\n+    this.topDeckId = rand();\n+    this.topModelId = rand();\n+    this.separator = SEPARATOR;\n+\n+    EXPORTED_METHODS.forEach(methodName => this[methodName] = this[methodName].bind(this));","path":"src/exporter.js","position":null,"original_position":18,"commit_id":"42052cbba7b6c1fe997323ab290a16ef8b7269d7","original_commit_id":"3d80b474d109c9e9fe72937dc61c054d9c4581e9","user":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars.githubusercontent.com/u/6904368?v=3","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-12-07T19:20:58Z","updated_at":"2016-12-07T19:20:58Z","html_url":"https://github.com/ewnd9/anki-apkg-export/pull/8#discussion_r91366675","pull_request_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/comments/91366675"},"html":{"href":"https://github.com/ewnd9/anki-apkg-export/pull/8#discussion_r91366675"},"pull_request":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8","id":95837636,"html_url":"https://github.com/ewnd9/anki-apkg-export/pull/8","diff_url":"https://github.com/ewnd9/anki-apkg-export/pull/8.diff","patch_url":"https://github.com/ewnd9/anki-apkg-export/pull/8.patch","issue_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/issues/8","number":8,"state":"open","locked":false,"title":"[WIP] Es6 refactoring","user":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars.githubusercontent.com/u/6904368?v=3","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-30T06:57:36Z","updated_at":"2016-12-07T19:20:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e59921d696191f6333054aa5ef8ec007111cd52","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/issues/8/comments","statuses_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/statuses/42052cbba7b6c1fe997323ab290a16ef8b7269d7","head":{"label":"vvscode:es6-refactoring","ref":"es6-refactoring","sha":"42052cbba7b6c1fe997323ab290a16ef8b7269d7","user":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars.githubusercontent.com/u/6904368?v=3","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"repo":{"id":74899280,"name":"js--anki-apkg-export","full_name":"vvscode/js--anki-apkg-export","owner":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars.githubusercontent.com/u/6904368?v=3","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vvscode/js--anki-apkg-export","description":":book: Generate decks for Anki (spaced repetition software)","fork":true,"url":"https://api.github.com/repos/vvscode/js--anki-apkg-export","forks_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/forks","keys_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/teams","hooks_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/hooks","issue_events_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/issues/events{/number}","events_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/events","assignees_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/assignees{/user}","branches_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/branches{/branch}","tags_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/tags","blobs_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/git/refs{/sha}","trees_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/statuses/{sha}","languages_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/languages","stargazers_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/stargazers","contributors_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/contributors","subscribers_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/subscribers","subscription_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/subscription","commits_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/commits{/sha}","git_commits_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/git/commits{/sha}","comments_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/comments{/number}","issue_comment_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/issues/comments{/number}","contents_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/contents/{+path}","compare_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/merges","archive_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/downloads","issues_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/issues{/number}","pulls_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/pulls{/number}","milestones_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/milestones{/number}","notifications_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/labels{/name}","releases_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/releases{/id}","deployments_url":"https://api.github.com/repos/vvscode/js--anki-apkg-export/deployments","created_at":"2016-11-27T16:19:37Z","updated_at":"2016-11-28T04:15:58Z","pushed_at":"2016-12-07T19:19:04Z","git_url":"git://github.com/vvscode/js--anki-apkg-export.git","ssh_url":"git@github.com:vvscode/js--anki-apkg-export.git","clone_url":"https://github.com/vvscode/js--anki-apkg-export.git","svn_url":"https://github.com/vvscode/js--anki-apkg-export","homepage":"","size":134,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ewnd9:master","ref":"master","sha":"1e828a7df7e08fb3647693f9e8ab022a26bf4afc","user":{"login":"ewnd9","id":1713789,"avatar_url":"https://avatars.githubusercontent.com/u/1713789?v=3","gravatar_id":"","url":"https://api.github.com/users/ewnd9","html_url":"https://github.com/ewnd9","followers_url":"https://api.github.com/users/ewnd9/followers","following_url":"https://api.github.com/users/ewnd9/following{/other_user}","gists_url":"https://api.github.com/users/ewnd9/gists{/gist_id}","starred_url":"https://api.github.com/users/ewnd9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewnd9/subscriptions","organizations_url":"https://api.github.com/users/ewnd9/orgs","repos_url":"https://api.github.com/users/ewnd9/repos","events_url":"https://api.github.com/users/ewnd9/events{/privacy}","received_events_url":"https://api.github.com/users/ewnd9/received_events","type":"User","site_admin":false},"repo":{"id":55118467,"name":"anki-apkg-export","full_name":"ewnd9/anki-apkg-export","owner":{"login":"ewnd9","id":1713789,"avatar_url":"https://avatars.githubusercontent.com/u/1713789?v=3","gravatar_id":"","url":"https://api.github.com/users/ewnd9","html_url":"https://github.com/ewnd9","followers_url":"https://api.github.com/users/ewnd9/followers","following_url":"https://api.github.com/users/ewnd9/following{/other_user}","gists_url":"https://api.github.com/users/ewnd9/gists{/gist_id}","starred_url":"https://api.github.com/users/ewnd9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewnd9/subscriptions","organizations_url":"https://api.github.com/users/ewnd9/orgs","repos_url":"https://api.github.com/users/ewnd9/repos","events_url":"https://api.github.com/users/ewnd9/events{/privacy}","received_events_url":"https://api.github.com/users/ewnd9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewnd9/anki-apkg-export","description":":book: Generate decks for Anki (spaced repetition software)","fork":false,"url":"https://api.github.com/repos/ewnd9/anki-apkg-export","forks_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/forks","keys_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/teams","hooks_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/hooks","issue_events_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/issues/events{/number}","events_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/events","assignees_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/assignees{/user}","branches_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/branches{/branch}","tags_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/tags","blobs_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/statuses/{sha}","languages_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/languages","stargazers_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/stargazers","contributors_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/contributors","subscribers_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/subscribers","subscription_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/subscription","commits_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/issues/comments{/number}","contents_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/contents/{+path}","compare_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/merges","archive_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/downloads","issues_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/issues{/number}","pulls_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls{/number}","milestones_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/milestones{/number}","notifications_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/labels{/name}","releases_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/releases{/id}","deployments_url":"https://api.github.com/repos/ewnd9/anki-apkg-export/deployments","created_at":"2016-03-31T03:47:50Z","updated_at":"2016-11-28T02:49:51Z","pushed_at":"2016-12-07T19:19:05Z","git_url":"git://github.com/ewnd9/anki-apkg-export.git","ssh_url":"git@github.com:ewnd9/anki-apkg-export.git","clone_url":"https://github.com/ewnd9/anki-apkg-export.git","svn_url":"https://github.com/ewnd9/anki-apkg-export","homepage":"","size":116,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8"},"html":{"href":"https://github.com/ewnd9/anki-apkg-export/pull/8"},"issue":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/issues/8"},"comments":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ewnd9/anki-apkg-export/statuses/42052cbba7b6c1fe997323ab290a16ef8b7269d7"}}}}
{"actor":{"display_login":"vvscode"}}