{"action":"created","comment":{"url":"https://api.github.com/repos/webpack/watchpack/pulls/comments/28338092","id":28338092,"diff_hunk":"@@ -12,20 +12,29 @@ var watcherManager = require(\"./watcherManager\");\n \n var FS_ACCURENCY = 10000;\n \n-\n function DirectoryWatcher(path, options) {\n-\tEventEmitter.call(this);\n-\tthis.path = path;\n-\tthis.files = {};\n-\tthis.directories = {};\n-\tthis.watcher = chokidar.watch(path, {\n+\toptions = options || {};\n+\n+\tvar chokidar_options = {","path":"lib/DirectoryWatcher.js","position":13,"original_position":13,"commit_id":"9bf8e6ae6d565f806169cc97e0daf3311444c527","original_commit_id":"9bf8e6ae6d565f806169cc97e0daf3311444c527","user":{"login":"sokra","id":1365881,"avatar_url":"https://avatars.githubusercontent.com/u/1365881?v=3","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"body":"please use camelCase :smile: ","created_at":"2015-04-14T15:31:30Z","updated_at":"2015-04-14T15:31:30Z","html_url":"https://github.com/webpack/watchpack/pull/5#discussion_r28338092","pull_request_url":"https://api.github.com/repos/webpack/watchpack/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/webpack/watchpack/pulls/comments/28338092"},"html":{"href":"https://github.com/webpack/watchpack/pull/5#discussion_r28338092"},"pull_request":{"href":"https://api.github.com/repos/webpack/watchpack/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/webpack/watchpack/pulls/5","id":32995823,"html_url":"https://github.com/webpack/watchpack/pull/5","diff_url":"https://github.com/webpack/watchpack/pull/5.diff","patch_url":"https://github.com/webpack/watchpack/pull/5.patch","issue_url":"https://api.github.com/repos/webpack/watchpack/issues/5","number":5,"state":"open","locked":false,"title":"Pipe options so that caller can pass args to chokidar","user":{"login":"yenif","id":8951,"avatar_url":"https://avatars.githubusercontent.com/u/8951?v=3","gravatar_id":"","url":"https://api.github.com/users/yenif","html_url":"https://github.com/yenif","followers_url":"https://api.github.com/users/yenif/followers","following_url":"https://api.github.com/users/yenif/following{/other_user}","gists_url":"https://api.github.com/users/yenif/gists{/gist_id}","starred_url":"https://api.github.com/users/yenif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenif/subscriptions","organizations_url":"https://api.github.com/users/yenif/orgs","repos_url":"https://api.github.com/users/yenif/repos","events_url":"https://api.github.com/users/yenif/events{/privacy}","received_events_url":"https://api.github.com/users/yenif/received_events","type":"User","site_admin":false},"body":"Fix #3","created_at":"2015-04-09T21:00:09Z","updated_at":"2015-04-14T15:31:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d748b1a49b130b889113e37b521475f5341ce90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/webpack/watchpack/pulls/5/commits","review_comments_url":"https://api.github.com/repos/webpack/watchpack/pulls/5/comments","review_comment_url":"https://api.github.com/repos/webpack/watchpack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webpack/watchpack/issues/5/comments","statuses_url":"https://api.github.com/repos/webpack/watchpack/statuses/9bf8e6ae6d565f806169cc97e0daf3311444c527","head":{"label":"yenif:chokidar_options","ref":"chokidar_options","sha":"9bf8e6ae6d565f806169cc97e0daf3311444c527","user":{"login":"yenif","id":8951,"avatar_url":"https://avatars.githubusercontent.com/u/8951?v=3","gravatar_id":"","url":"https://api.github.com/users/yenif","html_url":"https://github.com/yenif","followers_url":"https://api.github.com/users/yenif/followers","following_url":"https://api.github.com/users/yenif/following{/other_user}","gists_url":"https://api.github.com/users/yenif/gists{/gist_id}","starred_url":"https://api.github.com/users/yenif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenif/subscriptions","organizations_url":"https://api.github.com/users/yenif/orgs","repos_url":"https://api.github.com/users/yenif/repos","events_url":"https://api.github.com/users/yenif/events{/privacy}","received_events_url":"https://api.github.com/users/yenif/received_events","type":"User","site_admin":false},"repo":{"id":32942201,"name":"watchpack","full_name":"yenif/watchpack","owner":{"login":"yenif","id":8951,"avatar_url":"https://avatars.githubusercontent.com/u/8951?v=3","gravatar_id":"","url":"https://api.github.com/users/yenif","html_url":"https://github.com/yenif","followers_url":"https://api.github.com/users/yenif/followers","following_url":"https://api.github.com/users/yenif/following{/other_user}","gists_url":"https://api.github.com/users/yenif/gists{/gist_id}","starred_url":"https://api.github.com/users/yenif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenif/subscriptions","organizations_url":"https://api.github.com/users/yenif/orgs","repos_url":"https://api.github.com/users/yenif/repos","events_url":"https://api.github.com/users/yenif/events{/privacy}","received_events_url":"https://api.github.com/users/yenif/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yenif/watchpack","description":"Wrapper library for directory and file watching.","fork":true,"url":"https://api.github.com/repos/yenif/watchpack","forks_url":"https://api.github.com/repos/yenif/watchpack/forks","keys_url":"https://api.github.com/repos/yenif/watchpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yenif/watchpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yenif/watchpack/teams","hooks_url":"https://api.github.com/repos/yenif/watchpack/hooks","issue_events_url":"https://api.github.com/repos/yenif/watchpack/issues/events{/number}","events_url":"https://api.github.com/repos/yenif/watchpack/events","assignees_url":"https://api.github.com/repos/yenif/watchpack/assignees{/user}","branches_url":"https://api.github.com/repos/yenif/watchpack/branches{/branch}","tags_url":"https://api.github.com/repos/yenif/watchpack/tags","blobs_url":"https://api.github.com/repos/yenif/watchpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yenif/watchpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yenif/watchpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/yenif/watchpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yenif/watchpack/statuses/{sha}","languages_url":"https://api.github.com/repos/yenif/watchpack/languages","stargazers_url":"https://api.github.com/repos/yenif/watchpack/stargazers","contributors_url":"https://api.github.com/repos/yenif/watchpack/contributors","subscribers_url":"https://api.github.com/repos/yenif/watchpack/subscribers","subscription_url":"https://api.github.com/repos/yenif/watchpack/subscription","commits_url":"https://api.github.com/repos/yenif/watchpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/yenif/watchpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/yenif/watchpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/yenif/watchpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/yenif/watchpack/contents/{+path}","compare_url":"https://api.github.com/repos/yenif/watchpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yenif/watchpack/merges","archive_url":"https://api.github.com/repos/yenif/watchpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yenif/watchpack/downloads","issues_url":"https://api.github.com/repos/yenif/watchpack/issues{/number}","pulls_url":"https://api.github.com/repos/yenif/watchpack/pulls{/number}","milestones_url":"https://api.github.com/repos/yenif/watchpack/milestones{/number}","notifications_url":"https://api.github.com/repos/yenif/watchpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yenif/watchpack/labels{/name}","releases_url":"https://api.github.com/repos/yenif/watchpack/releases{/id}","created_at":"2015-03-26T17:31:35Z","updated_at":"2015-04-09T20:57:52Z","pushed_at":"2015-04-09T21:34:05Z","git_url":"git://github.com/yenif/watchpack.git","ssh_url":"git@github.com:yenif/watchpack.git","clone_url":"https://github.com/yenif/watchpack.git","svn_url":"https://github.com/yenif/watchpack","homepage":"","size":118,"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":"webpack:master","ref":"master","sha":"60b90e68cf2aa2446879bc874f85928e2b6d98cc","user":{"login":"webpack","id":2105791,"avatar_url":"https://avatars.githubusercontent.com/u/2105791?v=3","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"repo":{"id":24119524,"name":"watchpack","full_name":"webpack/watchpack","owner":{"login":"webpack","id":2105791,"avatar_url":"https://avatars.githubusercontent.com/u/2105791?v=3","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webpack/watchpack","description":"Wrapper library for directory and file watching.","fork":false,"url":"https://api.github.com/repos/webpack/watchpack","forks_url":"https://api.github.com/repos/webpack/watchpack/forks","keys_url":"https://api.github.com/repos/webpack/watchpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webpack/watchpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webpack/watchpack/teams","hooks_url":"https://api.github.com/repos/webpack/watchpack/hooks","issue_events_url":"https://api.github.com/repos/webpack/watchpack/issues/events{/number}","events_url":"https://api.github.com/repos/webpack/watchpack/events","assignees_url":"https://api.github.com/repos/webpack/watchpack/assignees{/user}","branches_url":"https://api.github.com/repos/webpack/watchpack/branches{/branch}","tags_url":"https://api.github.com/repos/webpack/watchpack/tags","blobs_url":"https://api.github.com/repos/webpack/watchpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webpack/watchpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webpack/watchpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/webpack/watchpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webpack/watchpack/statuses/{sha}","languages_url":"https://api.github.com/repos/webpack/watchpack/languages","stargazers_url":"https://api.github.com/repos/webpack/watchpack/stargazers","contributors_url":"https://api.github.com/repos/webpack/watchpack/contributors","subscribers_url":"https://api.github.com/repos/webpack/watchpack/subscribers","subscription_url":"https://api.github.com/repos/webpack/watchpack/subscription","commits_url":"https://api.github.com/repos/webpack/watchpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/webpack/watchpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/webpack/watchpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/webpack/watchpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/webpack/watchpack/contents/{+path}","compare_url":"https://api.github.com/repos/webpack/watchpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webpack/watchpack/merges","archive_url":"https://api.github.com/repos/webpack/watchpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webpack/watchpack/downloads","issues_url":"https://api.github.com/repos/webpack/watchpack/issues{/number}","pulls_url":"https://api.github.com/repos/webpack/watchpack/pulls{/number}","milestones_url":"https://api.github.com/repos/webpack/watchpack/milestones{/number}","notifications_url":"https://api.github.com/repos/webpack/watchpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webpack/watchpack/labels{/name}","releases_url":"https://api.github.com/repos/webpack/watchpack/releases{/id}","created_at":"2014-09-16T22:01:04Z","updated_at":"2015-04-09T14:36:16Z","pushed_at":"2015-04-09T21:34:05Z","git_url":"git://github.com/webpack/watchpack.git","ssh_url":"git@github.com:webpack/watchpack.git","clone_url":"https://github.com/webpack/watchpack.git","svn_url":"https://github.com/webpack/watchpack","homepage":"","size":316,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webpack/watchpack/pulls/5"},"html":{"href":"https://github.com/webpack/watchpack/pull/5"},"issue":{"href":"https://api.github.com/repos/webpack/watchpack/issues/5"},"comments":{"href":"https://api.github.com/repos/webpack/watchpack/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/webpack/watchpack/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/webpack/watchpack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webpack/watchpack/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/webpack/watchpack/statuses/9bf8e6ae6d565f806169cc97e0daf3311444c527"}}}}