@vite-hub/source 0.0.4 → 0.1.0
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/README.md +219 -82
- package/dist/{auth-Ddw55OUG.js → auth-B-tX_rp0.js} +255 -90
- package/dist/{client-CDfTmtQu.js → client-BwstxtdY.js} +584 -207
- package/dist/client.d.ts +27 -10
- package/dist/client.js +71 -13
- package/dist/collection-B_4w_J8h.d.ts +257 -0
- package/dist/{collection-B8pXGM2d.js → collection-cursor-WzV1Jd6v.js} +37 -54
- package/dist/collection-route-BplWPxHR.js +10 -0
- package/dist/drizzle.d.ts +41 -0
- package/dist/drizzle.js +89 -0
- package/dist/error-diagnostics-X0kuFjBT.js +51 -0
- package/dist/file-BX0FSvgE.js +60 -0
- package/dist/{file-EQ3AjVM6.d.ts → file-DadN9dbN.d.ts} +2 -3
- package/dist/file.d.ts +1 -1
- package/dist/file.js +1 -1
- package/dist/files.d.ts +15 -0
- package/dist/files.js +38 -0
- package/dist/github.d.ts +8 -5
- package/dist/github.js +725 -426
- package/dist/glob-BmFqTvJY.js +993 -0
- package/dist/glob.d.ts +12 -4
- package/dist/glob.js +1 -894
- package/dist/index.d.ts +118 -27
- package/dist/index.js +623 -14
- package/dist/markdown.d.ts +4 -6
- package/dist/markdown.js +2 -2
- package/dist/mcp.d.ts +3 -4
- package/dist/mcp.js +302 -5920
- package/dist/{file-BSWQg9Qv.js → mrmime-40h5OOIp.js} +1 -56
- package/dist/{path-CUhvUREm.js → path-BS8rYm0n.js} +60 -40
- package/dist/{path-BzmU4Eni.js → path-DOBpV8ol.js} +3 -7
- package/dist/server.d.ts +256 -6
- package/dist/server.js +90 -12
- package/dist/{sse-CE9Q2JqM.js → sse-D9gqqNPj.js} +50 -9
- package/dist/{streamableHttp-BszaXLmg.js → streamableHttp-BL-E7pl5.js} +40 -22
- package/dist/types-BigOktIj.d.ts +93 -0
- package/dist/{types-AIBmt_m6.js → types-CoWcW8oz.js} +2502 -1187
- package/dist/vite.d.ts +134 -13
- package/dist/vite.js +1734 -79
- package/package.json +55 -36
- package/dist/collection-CF2ON__k.d.ts +0 -92
- package/dist/collection-route-Dw7QLFyx.js +0 -6
- package/dist/content/client.d.ts +0 -3
- package/dist/content/client.js +0 -2
- package/dist/content.d.ts +0 -44
- package/dist/content.js +0 -157
- package/dist/registry-C8skfCSV.js +0 -120
- package/dist/types-Bu3WvNX9.d.ts +0 -71
package/dist/glob.d.ts
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as FileSource } from "./types-BigOktIj.js";
|
|
3
2
|
//#region src/sources/glob.d.ts
|
|
4
3
|
interface GlobSourceOptions {
|
|
5
4
|
cwd?: string;
|
|
6
5
|
dot?: boolean;
|
|
7
6
|
followSymlinks?: boolean;
|
|
7
|
+
/** Portable glob patterns: backslashes are separators, never escapes. Use [*], [?], [[] for literals. */
|
|
8
8
|
include: string | string[];
|
|
9
|
+
/** Uses the same portable separator and literal syntax as include. */
|
|
9
10
|
ignore?: string | readonly string[];
|
|
10
11
|
keyCache?: boolean;
|
|
11
12
|
prefix?: string;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
/** A pattern such as `content/docs/**\/*.md`, or the options. */
|
|
15
|
+
type GlobInput = string | GlobSourceOptions;
|
|
16
|
+
/**
|
|
17
|
+
* Project files that match a pattern, such as `glob("content/docs/**\/*.md")`. Under `vite dev` they are read from
|
|
18
|
+
* disk, so new files show up at once. A ViteHub build bundles a call with literal options into the server, so hosts
|
|
19
|
+
* without a file system, such as Cloudflare Workers, serve the same files.
|
|
20
|
+
*/
|
|
21
|
+
export declare function glob(input: GlobInput): FileSource<string>;
|
|
14
22
|
//#endregion
|
|
15
|
-
export {
|
|
23
|
+
export type { GlobInput, GlobSourceOptions };
|