codeweaver 3.1.0 → 3.1.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/.env.example CHANGED
@@ -1,20 +1,20 @@
1
- # Environment
2
- NODE_ENV=development # or "production" depending on your deployment
3
-
4
- # Server
5
- HTTP=http://localhost:3000
6
- PORT=3000
7
-
8
- # Feature flags
9
- SWAGGER=true
10
-
11
- # Timeouts and limits
12
- TIMEOUT=30
13
-
14
- # Rate limiting (separate vars)
15
- RATE_LIMIT_TIME_SPAN=60
16
- RATE_LIMIT_ALLOWED_CALLS=100
17
-
18
- # Memoization and cache
19
- MEMOIZE_TIME=300
1
+ # Environment
2
+ NODE_ENV=development # or "production" depending on your deployment
3
+
4
+ # Server
5
+ HTTP=http://localhost:3000
6
+ PORT=3000
7
+
8
+ # Feature flags
9
+ SWAGGER=true
10
+
11
+ # Timeouts and limits
12
+ TIMEOUT=30
13
+
14
+ # Rate limiting (separate vars)
15
+ RATE_LIMIT_TIME_SPAN=60
16
+ RATE_LIMIT_ALLOWED_CALLS=100
17
+
18
+ # Memoization and cache
19
+ MEMOIZE_TIME=300
20
20
  CACHE_SIZE=1000
package/README.md CHANGED
@@ -351,7 +351,7 @@ Once the application is running, visit the Swagger UI at http://localhost:3000/a
351
351
 
352
352
  ### Decorators
353
353
 
354
- To prevent abuse of your API, you can utilize throttling, caching, and error handling decorators from the `utils-decorators` packages respectively. This packages provides decorators that can be applied directly to your service and controller classes.
354
+ To prevent abuse of your API, you can utilize throttling, caching, and error handling decorators from the `utils-decorators` package. This package provides decorators that can be applied directly to your service and controller classes.
355
355
 
356
356
  ### Contributing
357
357
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeweaver",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "main": "src/main.ts",
5
5
  "bin": {
6
6
  "codeweaver": "command.js"
@@ -4,15 +4,12 @@ import { WorkerPool } from "./worker-pool";
4
4
  * Creates a setter function that, when invoked, rebinds the captured
5
5
  * destination binding to the provided source value.
6
6
  *
7
- * @template T - The type of both `destination` and `source`, constrained to object types.
8
- * @param {T} destination - The destination value (captured by the closure).
9
- * @param {T} source - The source value to which `destination` will be rebound when the returned function runs.
7
+ * @template T - The type of both `destination` and `source`.
8
+ * @param {T} destination - The destination value.
9
+ * @param {T} source - The source value.
10
10
  * @returns {() => void} A function that, when called, rebinds the captured `destination` to `source`.
11
11
  */
12
- export function set<T extends object>(
13
- destination: keyof T,
14
- source: keyof T
15
- ): () => void {
12
+ export function set<T>(destination: T, source: T): () => void {
16
13
  return () => {
17
14
  destination = source;
18
15
  };
@@ -1,8 +1,8 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "@/*": ["dist/*"]
6
- }
7
- }
8
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "paths": {
5
+ "@/*": ["dist/*"]
6
+ }
7
+ }
8
+ }