@thangnv-dev/rate-limiter-node 0.0.2 → 0.0.6

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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +5 -6
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @thangnv-dev/rate-limiter-node
2
+
3
+ Reusable library package in this monorepo.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @thangnv-dev/rate-limiter-node
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import * as api from '@thangnv-dev/rate-limiter-node'
15
+ ```
16
+
17
+ ## Public API
18
+
19
+ This package exports the following API surface from `src/index.ts`:
20
+
21
+ ```ts
22
+ export { RATE_LIMITER_DEFAULT_TOKENS } from './rate-limiter.js'
23
+ export type { RateLimiter, RateLimiterTakeInput, RateLimiterTakeResult } from './rate-limiter.js'
24
+
25
+ ```
26
+
27
+ ## Development
28
+
29
+ ```bash
30
+ yarn workspace @thangnv-dev/rate-limiter-node build
31
+ yarn workspace @thangnv-dev/rate-limiter-node test
32
+ ```
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@thangnv-dev/rate-limiter-node",
3
- "version": "0.0.2",
4
- "private": false,
3
+ "version": "0.0.6",
5
4
  "publishConfig": {
6
5
  "access": "public"
7
6
  },
@@ -24,9 +23,9 @@
24
23
  "test": "vitest run"
25
24
  },
26
25
  "devDependencies": {
27
- "@typescript-eslint/eslint-plugin": "^8.56.0",
28
- "@typescript-eslint/parser": "^8.56.0",
29
- "eslint": "^10.0.0",
26
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
27
+ "@typescript-eslint/parser": "^8.56.1",
28
+ "eslint": "^10.0.2",
30
29
  "temporal-polyfill": "^0.3.0",
31
30
  "typescript": "^5.9.3",
32
31
  "vitest": "^4.0.18"
@@ -34,4 +33,4 @@
34
33
  "peerDependencies": {
35
34
  "temporal-polyfill": "*"
36
35
  }
37
- }
36
+ }