@thangnv-dev/rate-limiter-nest 0.0.2 → 0.0.3

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 +50 -0
  2. package/package.json +5 -6
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @thangnv-dev/rate-limiter-nest
2
+
3
+ Reusable library package in this monorepo.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @thangnv-dev/rate-limiter-nest
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import * as api from '@thangnv-dev/rate-limiter-nest'
15
+ ```
16
+
17
+ ## Public API
18
+
19
+ This package exports the following API surface from `src/index.ts`:
20
+
21
+ ```ts
22
+ export {
23
+ RATE_LIMITER_TOKEN,
24
+ RATE_LIMITER_NEST_OPTIONS_TOKEN,
25
+ RATE_LIMITER_NEST_ROOT_OPTIONS_TOKEN,
26
+ } from './tokens.js'
27
+ export { GlobalRateLimitGuard } from './global-rate-limit.guard.js'
28
+ export { RateLimit, RateLimitGuard } from './rate-limit.guard.js'
29
+ export { RateLimitService } from './rate-limit.service.js'
30
+ export { RateLimiterModule } from './rate-limiter.module.js'
31
+ export type {
32
+ RateLimitGlobalConfig,
33
+ RateLimitGlobalRouteConfig,
34
+ RateLimitHttpMethod,
35
+ RateLimitProfile,
36
+ RateLimitPolicy,
37
+ RateLimitBucketKeyFactory,
38
+ RateLimiterNestFeatureOptions,
39
+ RateLimiterNestModuleOptions,
40
+ RateLimiterNestAsyncOptions,
41
+ } from './types.js'
42
+
43
+ ```
44
+
45
+ ## Development
46
+
47
+ ```bash
48
+ yarn workspace @thangnv-dev/rate-limiter-nest build
49
+ yarn workspace @thangnv-dev/rate-limiter-nest test
50
+ ```
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@thangnv-dev/rate-limiter-nest",
3
- "version": "0.0.2",
4
- "private": false,
3
+ "version": "0.0.3",
5
4
  "publishConfig": {
6
5
  "access": "public"
7
6
  },
@@ -24,14 +23,14 @@
24
23
  "test": "vitest run"
25
24
  },
26
25
  "dependencies": {
27
- "@thangnv-dev/rate-limiter-node": "workspace:^"
26
+ "@thangnv-dev/rate-limiter-node": "^0.0.3"
28
27
  },
29
28
  "devDependencies": {
30
29
  "@nestjs/common": "^11.1.14",
31
30
  "@nestjs/core": "^11.1.14",
32
- "@typescript-eslint/eslint-plugin": "^8.56.0",
33
- "@typescript-eslint/parser": "^8.56.0",
34
- "eslint": "^10.0.0",
31
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
32
+ "@typescript-eslint/parser": "^8.56.1",
33
+ "eslint": "^10.0.2",
35
34
  "reflect-metadata": "^0.2.2",
36
35
  "rxjs": "^7.8.2",
37
36
  "temporal-polyfill": "^0.3.0",