listpage-next-nest 0.0.26 → 0.0.27

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.
@@ -401,7 +401,7 @@ function StaticRouteMiddlewareFactory(options) {
401
401
  return function(req, res, next) {
402
402
  const { rootDir, routeMappings } = options;
403
403
  if (external_path_namespaceObject.extname(req.path)) {
404
- const filePath = external_path_namespaceObject.join(this.options.rootDir, req.path);
404
+ const filePath = external_path_namespaceObject.join(rootDir, req.path);
405
405
  if (!(0, external_fs_namespaceObject.existsSync)(filePath)) next(new common_namespaceObject.NotFoundException(`File not found: ${req.path}`));
406
406
  res.sendFile(filePath, (err)=>{
407
407
  if (err) next(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next-nest",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",