Remove ES6 from ddp-client (#8516)

Follow-up to 05be2c784c 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
This commit is contained in:
Gabriel Engel
2017-03-29 12:30:11 -03:00
committed by Jesse Rosenberger
parent e30f30f04c
commit 6f25191d03
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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);