From 6f25191d03e115dcc5e724f079899516f0504aaa Mon Sep 17 00:00:00 2001 From: Gabriel Engel Date: Wed, 29 Mar 2017 12:30:11 -0300 Subject: [PATCH] Remove ES6 from ddp-client (#8516) Follow-up to https://github.com/meteor/meteor/pull/8516/commits/05be2c784cd51033b3c8da8b21984589639839b8 which added new ES6 syntax, but failed to add `ecmascript`. * Remove ecmascript Object function shorthand notation. as the `rate-limit` package doesn't currently use `ecmacsript` and using it for just this one instance of ES6 isn't worth it. * Remove `ecmascript` from `rate-limit` as it is now unused. * Bump `rate-limit` version in preparation for publishing. Fixes #8515 --- packages/rate-limit/package.js | 2 +- packages/rate-limit/rate-limit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rate-limit/package.js b/packages/rate-limit/package.js index 6dead5d1de..8fb323d567 100644 --- a/packages/rate-limit/package.js +++ b/packages/rate-limit/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'rate-limit', - version: '1.0.7', + version: '1.0.8', // Brief, one-line summary of the package. summary: 'An algorithm for rate limiting anything', // URL to the Git repository containing the source code for this package. diff --git a/packages/rate-limit/rate-limit.js b/packages/rate-limit/rate-limit.js index 95f5168896..7e772a7e26 100644 --- a/packages/rate-limit/rate-limit.js +++ b/packages/rate-limit/rate-limit.js @@ -102,7 +102,7 @@ _.extend(Rule.prototype, { self.counters = {}; self._lastResetTime = new Date().getTime(); }, - _executeCallback(reply, ruleInput) { + _executeCallback: function (reply, ruleInput) { try { if (this.options.callback) { this.options.callback(reply, ruleInput);