{"action":"created","comment":{"url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/comments/73879566","id":73879566,"diff_hunk":"@@ -1,188 +0,0 @@\n-/* eslint-disable no-underscore-dangle */\n-// TODO: use NPM package\n-import ParallelTransform from '../../node-parallel-transform-stream/dist/parallel-transform'; // eslint-disable-line max-len\n-\n-const _qps = new WeakMap(),\n-  _bucketRunning = new WeakMap(),\n-  _queries = new WeakMap(),\n-  _queue = new WeakMap();\n-\n-export default class ThrottledTransform extends ParallelTransform {\n-  /**\n-   * ThrottledTransform instance\n-   * All child class must implement the `_throttledTransform` function.\n-   * Child classes should not implement the `_transform` and `_flush` functions.\n-   *\n-   * @param {Object} options Options which will be passed to the\n-   *                         `stream.Transform` constructor\n-   **/\n-  constructor(options = {}) {\n-    const queriesPerSecond = options.queriesPerSecond || 35,\n-      defaultOptions = {\n-        maxParallel: queriesPerSecond\n-      };\n-\n-    super(Object.assign({}, defaultOptions, options));\n-\n-    _qps.set(this, queriesPerSecond);\n-    _bucketRunning.set(this, false);\n-    _queries.set(this, 0);\n-    _queue.set(this, []);\n-  }\n-\n-  /**\n-   * Helper function for easily creating ThrottledTransform streams\n-   *\n-   * @param {Function} transform The stream's _transform function\n-   * @param {Function} flush The stream's _flush function\n-   * @param {Object} defaultOptions Default options for the class constructor\n-   * @returns {Class} A ParallelTransform class\n-   **/\n-  static create(transform, flush = done => done(), defaultOptions = {}) {\n-    class Transform extends ThrottledTransform {\n-      constructor(options) {\n-        super(Object.assign({}, defaultOptions, options));\n-      }\n-\n-      _throttledTransform = transform;\n-      _throttledFlush = flush;","path":"src/throttled-transform.js","position":48,"original_position":48,"commit_id":"14fd5186d5e9acdbb3521d8c152bbff502bb0f78","original_commit_id":"14fd5186d5e9acdbb3521d8c152bbff502bb0f78","user":{"login":"ro-ka","id":840022,"avatar_url":"https://avatars.githubusercontent.com/u/840022?v=3","gravatar_id":"","url":"https://api.github.com/users/ro-ka","html_url":"https://github.com/ro-ka","followers_url":"https://api.github.com/users/ro-ka/followers","following_url":"https://api.github.com/users/ro-ka/following{/other_user}","gists_url":"https://api.github.com/users/ro-ka/gists{/gist_id}","starred_url":"https://api.github.com/users/ro-ka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ro-ka/subscriptions","organizations_url":"https://api.github.com/users/ro-ka/orgs","repos_url":"https://api.github.com/users/ro-ka/repos","events_url":"https://api.github.com/users/ro-ka/events{/privacy}","received_events_url":"https://api.github.com/users/ro-ka/received_events","type":"User","site_admin":false},"body":"No `this._throttledFlush`?","created_at":"2016-08-08T14:00:39Z","updated_at":"2016-08-08T14:00:39Z","html_url":"https://github.com/ubilabs/node-throttled-transform-stream/pull/1#discussion_r73879566","pull_request_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/comments/73879566"},"html":{"href":"https://github.com/ubilabs/node-throttled-transform-stream/pull/1#discussion_r73879566"},"pull_request":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/1","id":80454615,"html_url":"https://github.com/ubilabs/node-throttled-transform-stream/pull/1","diff_url":"https://github.com/ubilabs/node-throttled-transform-stream/pull/1.diff","patch_url":"https://github.com/ubilabs/node-throttled-transform-stream/pull/1.patch","issue_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/1","number":1,"state":"open","locked":false,"title":"chore: remove files for review","user":{"login":"ro-ka","id":840022,"avatar_url":"https://avatars.githubusercontent.com/u/840022?v=3","gravatar_id":"","url":"https://api.github.com/users/ro-ka","html_url":"https://github.com/ro-ka","followers_url":"https://api.github.com/users/ro-ka/followers","following_url":"https://api.github.com/users/ro-ka/following{/other_user}","gists_url":"https://api.github.com/users/ro-ka/gists{/gist_id}","starred_url":"https://api.github.com/users/ro-ka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ro-ka/subscriptions","organizations_url":"https://api.github.com/users/ro-ka/orgs","repos_url":"https://api.github.com/users/ro-ka/repos","events_url":"https://api.github.com/users/ro-ka/events{/privacy}","received_events_url":"https://api.github.com/users/ro-ka/received_events","type":"User","site_admin":false},"body":"### DO NOT MERGE THIS!","created_at":"2016-08-08T13:52:53Z","updated_at":"2016-08-08T14:00:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71df9500803769e00773fd5d90509575b57bd3c0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/1/comments","statuses_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/statuses/14fd5186d5e9acdbb3521d8c152bbff502bb0f78","head":{"label":"ubilabs:review","ref":"review","sha":"14fd5186d5e9acdbb3521d8c152bbff502bb0f78","user":{"login":"ubilabs","id":50165,"avatar_url":"https://avatars.githubusercontent.com/u/50165?v=3","gravatar_id":"","url":"https://api.github.com/users/ubilabs","html_url":"https://github.com/ubilabs","followers_url":"https://api.github.com/users/ubilabs/followers","following_url":"https://api.github.com/users/ubilabs/following{/other_user}","gists_url":"https://api.github.com/users/ubilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/ubilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubilabs/subscriptions","organizations_url":"https://api.github.com/users/ubilabs/orgs","repos_url":"https://api.github.com/users/ubilabs/repos","events_url":"https://api.github.com/users/ubilabs/events{/privacy}","received_events_url":"https://api.github.com/users/ubilabs/received_events","type":"Organization","site_admin":false},"repo":{"id":64769253,"name":"node-throttled-transform-stream","full_name":"ubilabs/node-throttled-transform-stream","owner":{"login":"ubilabs","id":50165,"avatar_url":"https://avatars.githubusercontent.com/u/50165?v=3","gravatar_id":"","url":"https://api.github.com/users/ubilabs","html_url":"https://github.com/ubilabs","followers_url":"https://api.github.com/users/ubilabs/followers","following_url":"https://api.github.com/users/ubilabs/following{/other_user}","gists_url":"https://api.github.com/users/ubilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/ubilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubilabs/subscriptions","organizations_url":"https://api.github.com/users/ubilabs/orgs","repos_url":"https://api.github.com/users/ubilabs/repos","events_url":"https://api.github.com/users/ubilabs/events{/privacy}","received_events_url":"https://api.github.com/users/ubilabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubilabs/node-throttled-transform-stream","description":null,"fork":false,"url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream","forks_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/forks","keys_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/teams","hooks_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/hooks","issue_events_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/events{/number}","events_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/events","assignees_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/assignees{/user}","branches_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/branches{/branch}","tags_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/tags","blobs_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/languages","stargazers_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/stargazers","contributors_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/contributors","subscribers_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/subscribers","subscription_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/subscription","commits_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/contents/{+path}","compare_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/merges","archive_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/downloads","issues_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues{/number}","pulls_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/labels{/name}","releases_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/releases{/id}","deployments_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/deployments","created_at":"2016-08-02T15:33:20Z","updated_at":"2016-08-02T15:34:51Z","pushed_at":"2016-08-08T13:52:53Z","git_url":"git://github.com/ubilabs/node-throttled-transform-stream.git","ssh_url":"git@github.com:ubilabs/node-throttled-transform-stream.git","clone_url":"https://github.com/ubilabs/node-throttled-transform-stream.git","svn_url":"https://github.com/ubilabs/node-throttled-transform-stream","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ubilabs:master","ref":"master","sha":"0c2ae1e21d19d85feb5525bbda40f8428294af0d","user":{"login":"ubilabs","id":50165,"avatar_url":"https://avatars.githubusercontent.com/u/50165?v=3","gravatar_id":"","url":"https://api.github.com/users/ubilabs","html_url":"https://github.com/ubilabs","followers_url":"https://api.github.com/users/ubilabs/followers","following_url":"https://api.github.com/users/ubilabs/following{/other_user}","gists_url":"https://api.github.com/users/ubilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/ubilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubilabs/subscriptions","organizations_url":"https://api.github.com/users/ubilabs/orgs","repos_url":"https://api.github.com/users/ubilabs/repos","events_url":"https://api.github.com/users/ubilabs/events{/privacy}","received_events_url":"https://api.github.com/users/ubilabs/received_events","type":"Organization","site_admin":false},"repo":{"id":64769253,"name":"node-throttled-transform-stream","full_name":"ubilabs/node-throttled-transform-stream","owner":{"login":"ubilabs","id":50165,"avatar_url":"https://avatars.githubusercontent.com/u/50165?v=3","gravatar_id":"","url":"https://api.github.com/users/ubilabs","html_url":"https://github.com/ubilabs","followers_url":"https://api.github.com/users/ubilabs/followers","following_url":"https://api.github.com/users/ubilabs/following{/other_user}","gists_url":"https://api.github.com/users/ubilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/ubilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubilabs/subscriptions","organizations_url":"https://api.github.com/users/ubilabs/orgs","repos_url":"https://api.github.com/users/ubilabs/repos","events_url":"https://api.github.com/users/ubilabs/events{/privacy}","received_events_url":"https://api.github.com/users/ubilabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubilabs/node-throttled-transform-stream","description":null,"fork":false,"url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream","forks_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/forks","keys_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/teams","hooks_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/hooks","issue_events_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/events{/number}","events_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/events","assignees_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/assignees{/user}","branches_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/branches{/branch}","tags_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/tags","blobs_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/languages","stargazers_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/stargazers","contributors_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/contributors","subscribers_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/subscribers","subscription_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/subscription","commits_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/contents/{+path}","compare_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/merges","archive_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/downloads","issues_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues{/number}","pulls_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/labels{/name}","releases_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/releases{/id}","deployments_url":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/deployments","created_at":"2016-08-02T15:33:20Z","updated_at":"2016-08-02T15:34:51Z","pushed_at":"2016-08-08T13:52:53Z","git_url":"git://github.com/ubilabs/node-throttled-transform-stream.git","ssh_url":"git@github.com:ubilabs/node-throttled-transform-stream.git","clone_url":"https://github.com/ubilabs/node-throttled-transform-stream.git","svn_url":"https://github.com/ubilabs/node-throttled-transform-stream","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/ubilabs/node-throttled-transform-stream/pulls/1"},"html":{"href":"https://github.com/ubilabs/node-throttled-transform-stream/pull/1"},"issue":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/1"},"comments":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ubilabs/node-throttled-transform-stream/statuses/14fd5186d5e9acdbb3521d8c152bbff502bb0f78"}}}}
{"actor":{"display_login":"ro-ka"}}