Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17f2ee8

Browse files
maxisameneajaho
authored andcommitted
fix: format
1 parent 445a319 commit 17f2ee8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libs/isr/server/src/cache-handlers/filesystem-cache-handler.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class FileSystemCacheHandler extends CacheHandler {
3434

3535
if (options.addPrerenderedPagesToCache && !options.prerenderedPagesPath) {
3636
throw new Error(
37-
'Prerendered pages path is required when `addPrerenderedPagesToCache` is enabled!'
37+
'Prerendered pages path is required when `addPrerenderedPagesToCache` is enabled!',
3838
);
3939
}
4040

@@ -44,7 +44,7 @@ export class FileSystemCacheHandler extends CacheHandler {
4444
async add(
4545
route: string,
4646
html: string,
47-
config?: CacheISRConfig
47+
config?: CacheISRConfig,
4848
): Promise<void> {
4949
return new Promise((resolve, reject) => {
5050
// ex: route is like: / or /details/user/1
@@ -104,7 +104,7 @@ export class FileSystemCacheHandler extends CacheHandler {
104104
reject(
105105
'Error: 💥 Cannot delete cache file for route ' +
106106
route +
107-
`: ${cacheData.htmlFilePath}`
107+
`: ${cacheData.htmlFilePath}`,
108108
);
109109
} else {
110110
this.cache.delete(route);
@@ -221,7 +221,7 @@ export class FileSystemCacheHandler extends CacheHandler {
221221
// to: '/details/1/index.html'
222222
const pathWithoutPrerenderedPagesPath = path.replace(
223223
this.options.prerenderedPagesPath!,
224-
''
224+
'',
225225
);
226226

227227
let route = '';
@@ -255,7 +255,7 @@ export class FileSystemCacheHandler extends CacheHandler {
255255
}
256256

257257
console.log(
258-
`${pathsToCache.length} Prerendered pages were moved to cache folder.`
258+
`${pathsToCache.length} Prerendered pages were moved to cache folder.`,
259259
);
260260
}
261261

@@ -280,7 +280,7 @@ export class FileSystemCacheHandler extends CacheHandler {
280280
* @returns {Array<{ path: string; html: string }>} An array of objects, where each object contains the path and contents of an 'index.html' file found in the specified directory or its subdirectories.
281281
*/
282282
function findIndexHtmlFilesRecursively(
283-
path: string
283+
path: string,
284284
): Array<{ path: string; html: string }> {
285285
// Initialize an empty array to hold the data for each file found
286286
const data: Array<{ path: string; html: string }> = [];

0 commit comments

Comments
 (0)