nlhuykhang / ddp-rate-limiter-mixin Goto Github PK
View Code? Open in Web Editor NEWA mixin for mdg:validated-method to add rate limitation support to Meteor's methods.
Home Page: https://goo.gl/ot2I8S
License: MIT License
A mixin for mdg:validated-method to add rate limitation support to Meteor's methods.
Home Page: https://goo.gl/ot2I8S
License: MIT License
I tried using the package with meteor, but it gave me the error:
Error: Can't find npm module 'ddp-rate-limiter-mixin'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?
This happens also with the example in the repo, tried installing the package with npm i -S, and meteor install, both gave me the same error!
then I tried importing the file directly from node_modules/ddp-rate-limiter-mixin/dist/index but it gave me this error:
W20170510-17:43:04.615(2)? (STDERR) packages/modules.js:336
W20170510-17:43:04.616(2)? (STDERR) import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';
W20170510-17:43:04.616(2)? (STDERR) ^^^^^^
W20170510-17:43:04.616(2)? (STDERR)
W20170510-17:43:04.616(2)? (STDERR) SyntaxError: Unexpected reserved word
W20170510-17:43:04.616(2)? (STDERR) at Object.exports.runInThisContext (vm.js:53:16)
And it worked when I imported the rate-limiter file directly:
import { RateLimiterMixin } from '../node_modules/ddp-rate-limiter-mixin/dist/rate-limiter';
And thank you for your effort :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.