fastify-warmup
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "fastify-warmup", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "fastify warmup plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -47,4 +47,15 @@ # fastify-warmup | ||
warmupData: Record<string, string[] | string>; | ||
maxConcurrent: number; | ||
timeout: number; | ||
/** | ||
* warmup tasks will be split to groups | ||
* [maxConcurrent]s per group | ||
*/ | ||
maxConcurrent?: number; | ||
timeout?: number; | ||
/** | ||
* all the files/folders in warmupData | ||
* will find based on basePath. | ||
*/ | ||
basePath: string; | ||
} | ||
@@ -51,0 +62,0 @@ ``` |
@@ -5,6 +5,12 @@ export interface WarmupConf { | ||
/** | ||
* 分成多组,每组 maxConcurrent 个 | ||
* warmup tasks will be split to groups | ||
* [maxConcurrent]s per group | ||
*/ | ||
maxConcurrent?: number; | ||
timeout?: number; | ||
/** | ||
* all the files/folders in warmupData | ||
* will find based on basePath. | ||
*/ | ||
basePath: string; | ||
@@ -11,0 +17,0 @@ } |
@@ -7,5 +7,6 @@ { | ||
"rootDir": "src", | ||
"outDir": "dist" | ||
"outDir": "dist", | ||
"declaration": true | ||
}, | ||
"include": ["src"] | ||
} |
11091
306
83