{"action":"created","comment":{"url":"https://api.github.com/repos/electron/windows-installer/pulls/comments/58297793","id":58297793,"diff_hunk":"@@ -0,0 +1,41 @@\n+import { copy } from 'fs-extra';\n+import { Promise } from 'bluebird';\n+import temp from 'temp';\n+import fs from 'fs';\n+\n+const log = require('debug')('electron-windows-installer:fs-utils');\n+\n+temp.track();\n+\n+const promisedCopy = Promise.promisify(copy);\n+const promisedCreateTempDir = Promise.promisify(temp.mkdir);\n+const readFileAsync = Promise.promisify(fs.readFile);\n+const readDirAsync = Promise.promisify(fs.readdir);\n+const unlinkAsync = Promise.promisify(fs.unlink);\n+const writeFileAsync = Promise.promisify(fs.writeFile);\n+const renameAsync = Promise.promisify(fs.rename);\n+const inspectAsync = Promise.promisify(fs.stat);\n+\n+export {\n+  promisedCopy as copy, \n+  promisedCreateTempDir as createTempDir,\n+  readDirAsync,\n+  unlinkAsync,\n+  readFileAsync,\n+  writeFileAsync,\n+  inspectAsync,\n+  renameAsync\n+};\n+\n+export async function existsFileAsync(file) {","path":"src/fs-utils.js","position":30,"original_position":30,"commit_id":"69e235b1fa5e741db28e0fe16ffd84d85e68447e","original_commit_id":"69e235b1fa5e741db28e0fe16ffd84d85e68447e","user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"body":"return InspectAsync(file)\r\n  .then((stats) => stats.isFile)\r\n  .catch(()=> false);","created_at":"2016-04-02T18:39:56Z","updated_at":"2016-04-02T18:39:56Z","html_url":"https://github.com/electron/windows-installer/pull/53#discussion_r58297793","pull_request_url":"https://api.github.com/repos/electron/windows-installer/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/electron/windows-installer/pulls/comments/58297793"},"html":{"href":"https://github.com/electron/windows-installer/pull/53#discussion_r58297793"},"pull_request":{"href":"https://api.github.com/repos/electron/windows-installer/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/electron/windows-installer/pulls/53","id":64914095,"html_url":"https://github.com/electron/windows-installer/pull/53","diff_url":"https://github.com/electron/windows-installer/pull/53.diff","patch_url":"https://github.com/electron/windows-installer/pull/53.patch","issue_url":"https://api.github.com/repos/electron/windows-installer/issues/53","number":53,"state":"open","locked":false,"title":"Replaced fs-jetpack with promised functions from fs and fs-extra.","user":{"login":"havenchyk","id":1291032,"avatar_url":"https://avatars.githubusercontent.com/u/1291032?v=3","gravatar_id":"","url":"https://api.github.com/users/havenchyk","html_url":"https://github.com/havenchyk","followers_url":"https://api.github.com/users/havenchyk/followers","following_url":"https://api.github.com/users/havenchyk/following{/other_user}","gists_url":"https://api.github.com/users/havenchyk/gists{/gist_id}","starred_url":"https://api.github.com/users/havenchyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havenchyk/subscriptions","organizations_url":"https://api.github.com/users/havenchyk/orgs","repos_url":"https://api.github.com/users/havenchyk/repos","events_url":"https://api.github.com/users/havenchyk/events{/privacy}","received_events_url":"https://api.github.com/users/havenchyk/received_events","type":"User","site_admin":false},"body":"fs-jetpack uses Q instead of bluebird, Q doesn't support long stack traces.\r\nAlso jetpack had wrong behavior with absolute paths.\r\nCleaned up es6.\r\nAdded .editorconfig.\r\n\r\n@develar could you please review this patch?\r\n\r\n/cc @paulcbetts @kevinsawicki            ","created_at":"2016-04-01T08:57:01Z","updated_at":"2016-04-02T18:39:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1637f9ed0e6f129ca340f881882a8051def366e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/electron/windows-installer/pulls/53/commits","review_comments_url":"https://api.github.com/repos/electron/windows-installer/pulls/53/comments","review_comment_url":"https://api.github.com/repos/electron/windows-installer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/electron/windows-installer/issues/53/comments","statuses_url":"https://api.github.com/repos/electron/windows-installer/statuses/69e235b1fa5e741db28e0fe16ffd84d85e68447e","head":{"label":"havenchyk:remove-jetpack","ref":"remove-jetpack","sha":"69e235b1fa5e741db28e0fe16ffd84d85e68447e","user":{"login":"havenchyk","id":1291032,"avatar_url":"https://avatars.githubusercontent.com/u/1291032?v=3","gravatar_id":"","url":"https://api.github.com/users/havenchyk","html_url":"https://github.com/havenchyk","followers_url":"https://api.github.com/users/havenchyk/followers","following_url":"https://api.github.com/users/havenchyk/following{/other_user}","gists_url":"https://api.github.com/users/havenchyk/gists{/gist_id}","starred_url":"https://api.github.com/users/havenchyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havenchyk/subscriptions","organizations_url":"https://api.github.com/users/havenchyk/orgs","repos_url":"https://api.github.com/users/havenchyk/repos","events_url":"https://api.github.com/users/havenchyk/events{/privacy}","received_events_url":"https://api.github.com/users/havenchyk/received_events","type":"User","site_admin":false},"repo":{"id":55064580,"name":"windows-installer","full_name":"havenchyk/windows-installer","owner":{"login":"havenchyk","id":1291032,"avatar_url":"https://avatars.githubusercontent.com/u/1291032?v=3","gravatar_id":"","url":"https://api.github.com/users/havenchyk","html_url":"https://github.com/havenchyk","followers_url":"https://api.github.com/users/havenchyk/followers","following_url":"https://api.github.com/users/havenchyk/following{/other_user}","gists_url":"https://api.github.com/users/havenchyk/gists{/gist_id}","starred_url":"https://api.github.com/users/havenchyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havenchyk/subscriptions","organizations_url":"https://api.github.com/users/havenchyk/orgs","repos_url":"https://api.github.com/users/havenchyk/repos","events_url":"https://api.github.com/users/havenchyk/events{/privacy}","received_events_url":"https://api.github.com/users/havenchyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/havenchyk/windows-installer","description":"Build Windows Installers for Electron apps","fork":true,"url":"https://api.github.com/repos/havenchyk/windows-installer","forks_url":"https://api.github.com/repos/havenchyk/windows-installer/forks","keys_url":"https://api.github.com/repos/havenchyk/windows-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/havenchyk/windows-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/havenchyk/windows-installer/teams","hooks_url":"https://api.github.com/repos/havenchyk/windows-installer/hooks","issue_events_url":"https://api.github.com/repos/havenchyk/windows-installer/issues/events{/number}","events_url":"https://api.github.com/repos/havenchyk/windows-installer/events","assignees_url":"https://api.github.com/repos/havenchyk/windows-installer/assignees{/user}","branches_url":"https://api.github.com/repos/havenchyk/windows-installer/branches{/branch}","tags_url":"https://api.github.com/repos/havenchyk/windows-installer/tags","blobs_url":"https://api.github.com/repos/havenchyk/windows-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/havenchyk/windows-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/havenchyk/windows-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/havenchyk/windows-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/havenchyk/windows-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/havenchyk/windows-installer/languages","stargazers_url":"https://api.github.com/repos/havenchyk/windows-installer/stargazers","contributors_url":"https://api.github.com/repos/havenchyk/windows-installer/contributors","subscribers_url":"https://api.github.com/repos/havenchyk/windows-installer/subscribers","subscription_url":"https://api.github.com/repos/havenchyk/windows-installer/subscription","commits_url":"https://api.github.com/repos/havenchyk/windows-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/havenchyk/windows-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/havenchyk/windows-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/havenchyk/windows-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/havenchyk/windows-installer/contents/{+path}","compare_url":"https://api.github.com/repos/havenchyk/windows-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/havenchyk/windows-installer/merges","archive_url":"https://api.github.com/repos/havenchyk/windows-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/havenchyk/windows-installer/downloads","issues_url":"https://api.github.com/repos/havenchyk/windows-installer/issues{/number}","pulls_url":"https://api.github.com/repos/havenchyk/windows-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/havenchyk/windows-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/havenchyk/windows-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/havenchyk/windows-installer/labels{/name}","releases_url":"https://api.github.com/repos/havenchyk/windows-installer/releases{/id}","deployments_url":"https://api.github.com/repos/havenchyk/windows-installer/deployments","created_at":"2016-03-30T13:18:01Z","updated_at":"2016-03-30T13:18:01Z","pushed_at":"2016-04-02T18:17:19Z","git_url":"git://github.com/havenchyk/windows-installer.git","ssh_url":"git@github.com:havenchyk/windows-installer.git","clone_url":"https://github.com/havenchyk/windows-installer.git","svn_url":"https://github.com/havenchyk/windows-installer","homepage":null,"size":26265,"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":"electron:master","ref":"master","sha":"762cbc059c8e512c8957f14b5ca866061d969dd2","user":{"login":"electron","id":13409222,"avatar_url":"https://avatars.githubusercontent.com/u/13409222?v=3","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"repo":{"id":49976795,"name":"windows-installer","full_name":"electron/windows-installer","owner":{"login":"electron","id":13409222,"avatar_url":"https://avatars.githubusercontent.com/u/13409222?v=3","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/electron/windows-installer","description":"Build Windows Installers for Electron apps","fork":false,"url":"https://api.github.com/repos/electron/windows-installer","forks_url":"https://api.github.com/repos/electron/windows-installer/forks","keys_url":"https://api.github.com/repos/electron/windows-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electron/windows-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electron/windows-installer/teams","hooks_url":"https://api.github.com/repos/electron/windows-installer/hooks","issue_events_url":"https://api.github.com/repos/electron/windows-installer/issues/events{/number}","events_url":"https://api.github.com/repos/electron/windows-installer/events","assignees_url":"https://api.github.com/repos/electron/windows-installer/assignees{/user}","branches_url":"https://api.github.com/repos/electron/windows-installer/branches{/branch}","tags_url":"https://api.github.com/repos/electron/windows-installer/tags","blobs_url":"https://api.github.com/repos/electron/windows-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electron/windows-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electron/windows-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/electron/windows-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electron/windows-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/electron/windows-installer/languages","stargazers_url":"https://api.github.com/repos/electron/windows-installer/stargazers","contributors_url":"https://api.github.com/repos/electron/windows-installer/contributors","subscribers_url":"https://api.github.com/repos/electron/windows-installer/subscribers","subscription_url":"https://api.github.com/repos/electron/windows-installer/subscription","commits_url":"https://api.github.com/repos/electron/windows-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/electron/windows-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/electron/windows-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/electron/windows-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/electron/windows-installer/contents/{+path}","compare_url":"https://api.github.com/repos/electron/windows-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electron/windows-installer/merges","archive_url":"https://api.github.com/repos/electron/windows-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electron/windows-installer/downloads","issues_url":"https://api.github.com/repos/electron/windows-installer/issues{/number}","pulls_url":"https://api.github.com/repos/electron/windows-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/electron/windows-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/electron/windows-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electron/windows-installer/labels{/name}","releases_url":"https://api.github.com/repos/electron/windows-installer/releases{/id}","deployments_url":"https://api.github.com/repos/electron/windows-installer/deployments","created_at":"2016-01-19T19:19:46Z","updated_at":"2016-04-01T15:22:57Z","pushed_at":"2016-04-02T18:17:20Z","git_url":"git://github.com/electron/windows-installer.git","ssh_url":"git@github.com:electron/windows-installer.git","clone_url":"https://github.com/electron/windows-installer.git","svn_url":"https://github.com/electron/windows-installer","homepage":null,"size":26260,"stargazers_count":42,"watchers_count":42,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":14,"forks":9,"open_issues":14,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/electron/windows-installer/pulls/53"},"html":{"href":"https://github.com/electron/windows-installer/pull/53"},"issue":{"href":"https://api.github.com/repos/electron/windows-installer/issues/53"},"comments":{"href":"https://api.github.com/repos/electron/windows-installer/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/electron/windows-installer/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/electron/windows-installer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/electron/windows-installer/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/electron/windows-installer/statuses/69e235b1fa5e741db28e0fe16ffd84d85e68447e"}}}}