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 +19 -19
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/utilities/parallel/parallel.ts +4 -7
- package/tsconfig.paths.json +8 -8
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`
|
|
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
|
@@ -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
|
|
8
|
-
* @param {T} destination - The destination value
|
|
9
|
-
* @param {T} source - The source value
|
|
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
|
|
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
|
};
|
package/tsconfig.paths.json
CHANGED
|
@@ -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
|
+
}
|