Parse.Server.js 1.9 KB

123456789101112131415161718192021
  1. "use strict";
  2. const ParseServer = {};
  3. /**
  4. * ...
  5. *
  6. * @memberof Parse.Server
  7. * @property {String} global Rate limit based on the number of requests made by all users.
  8. * @property {String} session Rate limit based on the sessionToken.
  9. * @property {String} user Rate limit based on the user ID.
  10. * @property {String} ip Rate limit based on the request ip.
  11. * ...
  12. */
  13. ParseServer.RateLimitZone = Object.freeze({
  14. global: 'global',
  15. session: 'session',
  16. user: 'user',
  17. ip: 'ip'
  18. });
  19. module.exports = ParseServer;
  20. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJQYXJzZVNlcnZlciIsIlJhdGVMaW1pdFpvbmUiLCJPYmplY3QiLCJmcmVlemUiLCJnbG9iYWwiLCJzZXNzaW9uIiwidXNlciIsImlwIiwibW9kdWxlIiwiZXhwb3J0cyJdLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jbG91ZC1jb2RlL1BhcnNlLlNlcnZlci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBQYXJzZVNlcnZlciA9IHt9O1xuLyoqXG4gKiAuLi5cbiAqXG4gKiBAbWVtYmVyb2YgUGFyc2UuU2VydmVyXG4gKiBAcHJvcGVydHkge1N0cmluZ30gZ2xvYmFsIFJhdGUgbGltaXQgYmFzZWQgb24gdGhlIG51bWJlciBvZiByZXF1ZXN0cyBtYWRlIGJ5IGFsbCB1c2Vycy5cbiAqIEBwcm9wZXJ0eSB7U3RyaW5nfSBzZXNzaW9uIFJhdGUgbGltaXQgYmFzZWQgb24gdGhlIHNlc3Npb25Ub2tlbi5cbiAqIEBwcm9wZXJ0eSB7U3RyaW5nfSB1c2VyIFJhdGUgbGltaXQgYmFzZWQgb24gdGhlIHVzZXIgSUQuXG4gKiBAcHJvcGVydHkge1N0cmluZ30gaXAgUmF0ZSBsaW1pdCBiYXNlZCBvbiB0aGUgcmVxdWVzdCBpcC5cbiAqIC4u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