@lark-apaas/dataloom 0.1.4 → 0.1.5-alpha.20260917133532

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.
@@ -1,8 +1,4 @@
1
- /**
2
- * rate limiter that allows a given number of requests within a predefined time window.
3
- */
4
1
  declare class RateLimiter {
5
- static readonly WINDOW_SIZE = 5000;
6
2
  maxRequests: number;
7
3
  private windowSizeMs;
8
4
  private requestCount;
@@ -1 +1 @@
1
- {"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["../src/RateLimiter.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAM,WAAW;IACf,MAAM,CAAC,QAAQ,CAAC,WAAW,QAAQ;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAS;gBAEhB,WAAW,EAAE,MAAM;IAO/B,mBAAmB;IAYnB,UAAU;CASX;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["../src/RateLimiter.ts"],"names":[],"mappings":"AAKA,cAAM,WAAW;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAS;gBAEhB,WAAW,EAAE,MAAM;IAO/B,mBAAmB;IAYnB,UAAU;CASX;AAED,eAAe,WAAW,CAAC"}
@@ -1,10 +1,8 @@
1
- class RateLimiter {
2
- static{
3
- this.WINDOW_SIZE = 5000;
4
- }
1
+ const WINDOW_SIZE_MS = 5000;
2
+ class RateLimiter_RateLimiter {
5
3
  constructor(maxRequests){
6
4
  this.maxRequests = maxRequests;
7
- this.windowSizeMs = RateLimiter.WINDOW_SIZE;
5
+ this.windowSizeMs = WINDOW_SIZE_MS;
8
6
  this.requestCount = 0;
9
7
  this.windowStart = Date.now();
10
8
  }
@@ -27,5 +25,5 @@ class RateLimiter {
27
25
  return false;
28
26
  }
29
27
  }
30
- const src_RateLimiter = RateLimiter;
31
- export { src_RateLimiter as default };
28
+ const RateLimiter = RateLimiter_RateLimiter;
29
+ export { RateLimiter as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/dataloom",
3
- "version": "0.1.4",
3
+ "version": "0.1.5-alpha.20260917133532",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [