@kosmojs/dev 0.0.25 → 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.
- package/package.json +21 -19
- package/pkg/cache.d.ts +2 -20
- package/pkg/chassis.d.ts +3 -0
- package/pkg/chassis.js +636 -0
- package/pkg/chassis.js.map +7 -0
- package/pkg/{stub-generator → core-generator}/index.d.ts +1 -2
- package/pkg/core-generator/templates.d.ts +3 -0
- package/pkg/index.d.ts +13 -9
- package/pkg/index.js +26 -1777
- package/pkg/index.js.map +4 -4
- package/pkg/alias-plugin/index.d.ts +0 -5
- package/pkg/ast.d.ts +0 -44
- package/pkg/base-plugin/api-handler.d.ts +0 -10
- package/pkg/base-plugin/index.d.ts +0 -4
- package/pkg/base-plugin/spinner.d.ts +0 -8
- package/pkg/base-plugin/worker.d.ts +0 -16
- package/pkg/base-plugin/worker.js +0 -1321
- package/pkg/base-plugin/worker.js.map +0 -7
- package/pkg/defaults.d.ts +0 -13
- package/pkg/define-plugin/index.d.ts +0 -9
- package/pkg/fs.d.ts +0 -1
- package/pkg/paths.d.ts +0 -13
- package/pkg/render.d.ts +0 -28
- package/pkg/routes-factory/base.d.ts +0 -47
- package/pkg/routes-factory/index.d.ts +0 -9
- package/pkg/routes-factory/nesting.d.ts +0 -3
- package/pkg/routes-factory/resolve.d.ts +0 -26
- package/pkg/stub-generator/index.js +0 -183
- package/pkg/stub-generator/index.js.map +0 -7
- package/pkg/typebox.d.ts +0 -2
- package/pkg/types.d.ts +0 -305
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@kosmojs/dev",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.27",
|
|
5
5
|
"cacheVersion": "001",
|
|
6
6
|
"author": "Slee Woo",
|
|
7
7
|
"license": "MIT",
|
|
@@ -11,38 +11,40 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"pkg/*"
|
|
13
13
|
],
|
|
14
|
+
"imports": {
|
|
15
|
+
"#templates/*": "./src/templates/*"
|
|
16
|
+
},
|
|
14
17
|
"exports": {
|
|
15
18
|
".": {
|
|
16
19
|
"types": "./pkg/index.d.ts",
|
|
17
20
|
"default": "./pkg/index.js"
|
|
18
21
|
},
|
|
19
|
-
"./
|
|
20
|
-
"types": "./pkg/
|
|
21
|
-
"default": "./pkg/
|
|
22
|
+
"./chassis": {
|
|
23
|
+
"types": "./pkg/chassis.d.ts",
|
|
24
|
+
"default": "./pkg/chassis.js"
|
|
22
25
|
},
|
|
23
26
|
"./package.json": "./package.json"
|
|
24
27
|
},
|
|
25
28
|
"dependencies": {
|
|
26
|
-
"@topcli/spinner": "^4.2.1",
|
|
27
|
-
"chokidar": "^5.0.0",
|
|
28
29
|
"crc": "^4.3.2",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"@kosmojs/
|
|
30
|
+
"@kosmojs/fetch-generator": "^0.0.27",
|
|
31
|
+
"@kosmojs/hono-generator": "^0.0.27",
|
|
32
|
+
"@kosmojs/koa-generator": "^0.0.27",
|
|
33
|
+
"@kosmojs/mdx-generator": "^0.0.27",
|
|
34
|
+
"@kosmojs/lib": "^0.0.27",
|
|
35
|
+
"@kosmojs/openapi-generator": "^0.0.27",
|
|
36
|
+
"@kosmojs/react-generator": "^0.0.27",
|
|
37
|
+
"@kosmojs/solid-generator": "^0.0.27",
|
|
38
|
+
"@kosmojs/ssg-generator": "^0.0.27",
|
|
39
|
+
"@kosmojs/ssr-generator": "^0.0.27",
|
|
40
|
+
"@kosmojs/typebox-generator": "^0.0.27",
|
|
41
|
+
"@kosmojs/vue-generator": "^0.0.27"
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@types/picomatch": "^4.0.2"
|
|
44
|
+
"@kosmojs/core": "^0.0.27"
|
|
43
45
|
},
|
|
44
46
|
"scripts": {
|
|
45
|
-
"build": "esbuilder src/index.ts src/
|
|
47
|
+
"build": "esbuilder src/index.ts src/chassis.ts",
|
|
46
48
|
"test": "vitest --root ../../.. --project core/dev"
|
|
47
49
|
}
|
|
48
50
|
}
|
package/pkg/cache.d.ts
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
hash: number;
|
|
4
|
-
referencedFiles: Record<string, number>;
|
|
5
|
-
} & Pick<ApiRoute, "params" | "methods" | "numericParams" | "typeDeclarations" | "validationDefinitions">;
|
|
6
|
-
type ExtraContext = Record<string | number, unknown>;
|
|
7
|
-
export declare const cacheFactory: (route: Pick<ApiRoute, "id" | "file" | "fileFullpath">, { appRoot, sourceFolder, extraContext, }: {
|
|
8
|
-
appRoot: string;
|
|
9
|
-
sourceFolder: string;
|
|
10
|
-
extraContext?: ExtraContext;
|
|
11
|
-
}) => {
|
|
12
|
-
getCache: (opt?: {
|
|
13
|
-
validate?: boolean;
|
|
14
|
-
}) => Promise<Cache | undefined>;
|
|
15
|
-
validateCache: (cache: Cache | undefined) => Promise<Cache | undefined>;
|
|
16
|
-
persistCache: ({ referencedFiles: _referencedFiles, ...rest }: Omit<Cache, "hash" | "referencedFiles"> & {
|
|
17
|
-
referencedFiles: Array<string>;
|
|
18
|
-
}) => Promise<Cache>;
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
1
|
+
import type { RouteResolverCacheFactory } from "@kosmojs/core";
|
|
2
|
+
export declare const cacheFactory: RouteResolverCacheFactory;
|
package/pkg/chassis.d.ts
ADDED