@upstash/ratelimit 0.3.0-rc.0 → 0.3.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/mod.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { RegionRatelimit as Ratelimit } from "./single.js";
2
2
  export { MultiRegionRatelimit } from "./multi.js";
3
+ export * from "./analytics.js";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/mod.js",
4
4
  "types": "./types/mod.d.ts",
5
5
  "name": "@upstash/ratelimit",
6
- "version": "v0.3.0-rc.0",
6
+ "version": "v0.3.0-rc.1",
7
7
  "description": "A serverless ratelimiter built on top of Upstash REST API.",
8
8
  "repository": {
9
9
  "type": "git",
package/script/mod.js CHANGED
@@ -1,7 +1,22 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.MultiRegionRatelimit = exports.Ratelimit = void 0;
4
18
  var single_js_1 = require("./single.js");
5
19
  Object.defineProperty(exports, "Ratelimit", { enumerable: true, get: function () { return single_js_1.RegionRatelimit; } });
6
20
  var multi_js_1 = require("./multi.js");
7
21
  Object.defineProperty(exports, "MultiRegionRatelimit", { enumerable: true, get: function () { return multi_js_1.MultiRegionRatelimit; } });
22
+ __exportStar(require("./analytics.js"), exports);
package/types/mod.d.ts CHANGED
@@ -3,3 +3,4 @@ export type { RegionRatelimitConfig as RatelimitConfig } from "./single.js";
3
3
  export { MultiRegionRatelimit } from "./multi.js";
4
4
  export type { MultiRegionRatelimitConfig } from "./multi.js";
5
5
  export type { Algorithm } from "./types.js";
6
+ export * from "./analytics.js";