@ubean/scan 0.5.2 → 0.6.0-beta.2
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/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppEntry, DefineMetaResult, HttpMethod, PageHead, PageMeta, RouteMeta, ScanOptions, ScanPagesOptions, ScanPagesResult, ScanResult, ScannedApiRoute, ScannedAppEntry, ScannedCronTask, ScannedFile, ScannedLayout, ScannedLocale, ScannedMiddleware, ScannedPage, ScannedPageRoute, ScannedPlugin, ScannedQueue, ScannedServerEntry } from "./types.js";
|
|
2
|
-
import { extractDefinePage, extractDefinePageFromCode,
|
|
2
|
+
import { extractDefinePage, extractDefinePageFromCode, extractSlotFromPath, filePathToRoute, generateLayoutName, generateRouteName, parseMatchers, stripRouteGroups } from "@ubean/vue/vite";
|
|
3
3
|
import { MatcherFunction, MatcherGuardOptions, clearMatchers, createMatcherGuard, defineMatcher, getMatcher, hasMatcher, listMatcherNames, validateParams } from "@ubean/vue";
|
|
4
4
|
//#region src/scan.d.ts
|
|
5
5
|
export declare function scanProject(options: ScanOptions): Promise<ScanResult>;
|
|
@@ -25,4 +25,4 @@ export declare function generateApiRouteId(method: string, routePath: string): s
|
|
|
25
25
|
export declare function extractDefineMetaFromCode(code: string): DefineMetaResult | null;
|
|
26
26
|
export declare function extractDefineMeta(filePath: string): Promise<DefineMetaResult | null>;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { type AppEntry, type DefineMetaResult, type HttpMethod, type MatcherFunction, type MatcherGuardOptions, type PageHead, type PageMeta, type ScanOptions, type ScanPagesOptions, type ScanPagesResult, type ScanResult, type ScannedApiRoute, type ScannedAppEntry, type ScannedCronTask, type ScannedFile, type ScannedLayout, type ScannedLocale, type ScannedMiddleware, type ScannedPage, type ScannedPageRoute, type ScannedPlugin, type ScannedQueue, type ScannedServerEntry, clearMatchers, createMatcherGuard, defineMatcher, extractDefinePage, extractDefinePageFromCode,
|
|
28
|
+
export { type AppEntry, type DefineMetaResult, type HttpMethod, type MatcherFunction, type MatcherGuardOptions, type PageHead, type PageMeta, type ScanOptions, type ScanPagesOptions, type ScanPagesResult, type ScanResult, type ScannedApiRoute, type ScannedAppEntry, type ScannedCronTask, type ScannedFile, type ScannedLayout, type ScannedLocale, type ScannedMiddleware, type ScannedPage, type ScannedPageRoute, type ScannedPlugin, type ScannedQueue, type ScannedServerEntry, clearMatchers, createMatcherGuard, defineMatcher, extractDefinePage, extractDefinePageFromCode, extractSlotFromPath, filePathToRoute, generateLayoutName, generateRouteName, getMatcher, hasMatcher, listMatcherNames, parseMatchers, stripRouteGroups, validateParams };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GLOB_SCAN_PATTERN, HTTP_METHODS } from "./types.js";
|
|
2
2
|
import { readFile, readdir } from "node:fs/promises";
|
|
3
3
|
import { getLogger } from "@ubean/shared/logger";
|
|
4
|
-
import { extractCallObject, extractDefinePage, extractDefinePageFromCode,
|
|
4
|
+
import { extractCallObject, extractDefinePage, extractDefinePageFromCode, extractSlotFromPath, filePathToRoute, filePathToRoute as filePathToRoute$1, generateLayoutName, generateRouteName, generateRouteName as generateRouteName$1, parseMatchers, scanPages, stripRouteGroups } from "@ubean/vue/vite";
|
|
5
5
|
import { basename, dirname, extname, isAbsolute, join, relative } from "pathe";
|
|
6
6
|
import { glob } from "tinyglobby";
|
|
7
7
|
import { clearMatchers, createMatcherGuard, defineMatcher, getMatcher, hasMatcher, listMatcherNames, validateParams } from "@ubean/vue";
|
|
@@ -571,4 +571,4 @@ async function extractDefineMeta(filePath) {
|
|
|
571
571
|
return extractDefineMetaFromCode(await readFile(filePath, "utf-8"));
|
|
572
572
|
}
|
|
573
573
|
//#endregion
|
|
574
|
-
export { clearMatchers, createMatcherGuard, defineMatcher, detectHttpExports, detectHttpExportsFromCode, extractDefineMeta, extractDefineMetaFromCode, extractDefinePage, extractDefinePageFromCode,
|
|
574
|
+
export { clearMatchers, createMatcherGuard, defineMatcher, detectHttpExports, detectHttpExportsFromCode, extractDefineMeta, extractDefineMetaFromCode, extractDefinePage, extractDefinePageFromCode, extractSlotFromPath, filePathToRoute, generateApiRouteId, generateLayoutName, generateRouteName, getMatcher, hasMatcher, listMatcherNames, parseMatchers, scanProject, stripRouteGroups, validateParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/scan",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-beta.2",
|
|
4
4
|
"description": "Project scanner & route metadata for ubean — server-side directory scanning (API routes, middleware, plugins, crons, queues, locales, entries) plus page scanning delegated to @ubean/vue",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ubean/shared": "0.
|
|
28
|
-
"@ubean/vue": "0.
|
|
27
|
+
"@ubean/shared": "0.6.0-beta.2",
|
|
28
|
+
"@ubean/vue": "0.6.0-beta.2",
|
|
29
29
|
"pathe": "^2.0.3",
|
|
30
30
|
"tinyglobby": "^0.2.17"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^26.
|
|
34
|
-
"@ubean/markdown": "0.
|
|
33
|
+
"@types/node": "^26.6.1",
|
|
34
|
+
"@ubean/markdown": "0.6.0-beta.2",
|
|
35
35
|
"typescript": "npm:typescript-native-bridge@latest",
|
|
36
|
-
"vite-plus": "0.3.
|
|
37
|
-
"vue": "^3.5.
|
|
36
|
+
"vite-plus": "0.3.3",
|
|
37
|
+
"vue": "^3.5.43",
|
|
38
38
|
"vue-router": "^5.3.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|