lack 1.3.2 → 1.3.5
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/assets/ts/src/types/global.d.ts +2 -0
- package/bin/watch.js +2 -2
- package/package.json +1 -1
|
@@ -201,6 +201,7 @@ declare namespace Whistle {
|
|
|
201
201
|
compose(options: any, cb: (err: any, data?: any) => void): void;
|
|
202
202
|
getRules(cb: (rules: any) => void): void;
|
|
203
203
|
getValues(cb: (values: any) => void): void;
|
|
204
|
+
getPlugins(cb: (plugins: any) => void): void;
|
|
204
205
|
getCustomCertsInfo(cb: (certs: any) => void): void;
|
|
205
206
|
isActive(cb: (active: boolean) => void): void;
|
|
206
207
|
ctx: any;
|
|
@@ -268,6 +269,7 @@ declare namespace Whistle {
|
|
|
268
269
|
commonName: string;
|
|
269
270
|
realUrl: string;
|
|
270
271
|
relativeUrl: string;
|
|
272
|
+
extraUrl: string;
|
|
271
273
|
method: string;
|
|
272
274
|
clientPort: string;
|
|
273
275
|
globalValue: string;
|
package/bin/watch.js
CHANGED
|
@@ -9,7 +9,7 @@ const touch = () => {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
module.exports = (dirs) => {
|
|
12
|
-
const watchList = ['index.js', 'rules.txt', '_rules.txt', 'reqRules.txt', 'resRules.txt', 'lib'];
|
|
12
|
+
const watchList = ['index.js', 'rules.txt', '_rules.txt', 'reqRules.txt', 'resRules.txt', 'lib', 'dist'];
|
|
13
13
|
if (dirs && typeof dirs === 'string') {
|
|
14
14
|
dirs.split(',').forEach((dir) => {
|
|
15
15
|
dir = dir.trim();
|
|
@@ -19,7 +19,7 @@ module.exports = (dirs) => {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
let timer;
|
|
22
|
-
console.log(`Watching
|
|
22
|
+
console.log(`Watching the following files/folders changes:\n${watchList.join('\n')}\n`); // eslint-disable-line
|
|
23
23
|
chokidar.watch(watchList, {
|
|
24
24
|
ignored: /(^|[/\\])(\..|node_modules([/\\]|$))/,
|
|
25
25
|
}).on('raw', (_, filename) => {
|