@static-suite/static-suite-data-server 2.0.0 → 2.0.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.
|
@@ -140,7 +140,7 @@ const findFilesInDirAsync = async (dir, glob = '**/*', options = { absolute: fal
|
|
|
140
140
|
const startDate = Date.now();
|
|
141
141
|
const files = await (0, fast_glob_1.default)([glob], { cwd: dir, ...options });
|
|
142
142
|
const endDate = Date.now();
|
|
143
|
-
logger_1.logger.debug(
|
|
143
|
+
logger_1.logger.debug(`${files.length} files found inside ${dir} in ${endDate - startDate}ms.`);
|
|
144
144
|
return files;
|
|
145
145
|
};
|
|
146
146
|
exports.findFilesInDirAsync = findFilesInDirAsync;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@static-suite/static-suite-data-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A flexible, fast and developer friendly Data Server for Static Suite",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"typings": "./dist/lib/index.d.ts",
|
|
@@ -86,4 +86,4 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
89
|
-
}
|
|
89
|
+
}
|
|
@@ -150,7 +150,7 @@ export const findFilesInDirAsync = async (
|
|
|
150
150
|
const files = await fg([glob], { cwd: dir, ...options });
|
|
151
151
|
const endDate = Date.now();
|
|
152
152
|
logger.debug(
|
|
153
|
-
|
|
153
|
+
`${files.length} files found inside ${dir} in ${endDate - startDate}ms.`,
|
|
154
154
|
);
|
|
155
155
|
return files;
|
|
156
156
|
};
|