wurzel 0.0.11 → 0.0.12

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.
@@ -2,6 +2,9 @@ import type { TResolveImportPathFunc } from "es6-debug-server";
2
2
  import type Express from "express";
3
3
  type TFileType = "script" | "script-resource" | "other";
4
4
  declare const defaultResolveImportPath: TResolveImportPathFunc;
5
+ declare const defaultDetermineFileTypeByPath: ({ filePath }: {
6
+ filePath: string;
7
+ }) => TFileType;
5
8
  declare const expressRouter: ({ express, baseFolder, maxAnalyzeCacheSize, maxTranspileCacheSize, determineFileTypeByPath, resolveImportPath }: {
6
9
  express: typeof Express;
7
10
  baseFolder: string;
@@ -12,5 +15,5 @@ declare const expressRouter: ({ express, baseFolder, maxAnalyzeCacheSize, maxTra
12
15
  }) => TFileType;
13
16
  resolveImportPath?: TResolveImportPathFunc;
14
17
  }) => any;
15
- export { expressRouter, defaultResolveImportPath };
18
+ export { expressRouter, defaultResolveImportPath, defaultDetermineFileTypeByPath, };
16
19
  export type { TResolveImportPathFunc, TFileType };
package/dist/lib/index.js CHANGED
@@ -295,7 +295,8 @@ const expressRouter = ({
295
295
  export {
296
296
  expressRouter,
297
297
 
298
- defaultResolveImportPath
298
+ defaultResolveImportPath,
299
+ defaultDetermineFileTypeByPath,
299
300
  };
300
301
 
301
302
  /*export type {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.11",
2
+ "version": "0.0.12",
3
3
  "name": "wurzel",
4
4
  "type": "module",
5
5
  "description": "A tool to serve script files from different directories",