@adonisjs/assembler 8.0.0-next.26 → 8.0.0-next.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/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as loadHooks, c as readTsConfig, d as runNode, f as throttle, m as debug_default, n as copyFiles, o as memoize, p as watch, r as getPort, s as parseConfig, t as VirtualFileSystem, u as run } from "./virtual_file_system-bGeoWsK-.js";
|
|
2
2
|
import { n as FileBuffer, t as IndexGenerator } from "./main-XUXlmlEy.js";
|
|
3
|
-
import { t as RoutesScanner } from "./main-
|
|
3
|
+
import { t as RoutesScanner } from "./main-BeV45LeF.js";
|
|
4
4
|
import "./helpers-DDurYRsZ.js";
|
|
5
5
|
import dedent from "dedent";
|
|
6
6
|
import fs, { readFile, unlink } from "node:fs/promises";
|
|
@@ -111,10 +111,10 @@ var RoutesScanner = class {
|
|
|
111
111
|
const validatorExport = validator.import.type === "default" ? ".default" : validator.import.type === "named" ? `.${validator.import.value}` : "";
|
|
112
112
|
const [, ...segments] = validator.name.split(".");
|
|
113
113
|
const namespace = segments.map((segment) => `['${segment}']`).join("");
|
|
114
|
-
result.push(`
|
|
114
|
+
result.push(`InferInput<(typeof import('${validator.import.specifier}')${validatorExport})${namespace}>`);
|
|
115
115
|
return result;
|
|
116
116
|
}, []).join("|"),
|
|
117
|
-
imports: [`import {
|
|
117
|
+
imports: [`import { InferInput } from '@vinejs/vine/types'`]
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
async #inspectControllerSpecifier(importExpression, method) {
|
|
@@ -70,8 +70,8 @@ export type ScannedValidator = {
|
|
|
70
70
|
* pattern: '/users',
|
|
71
71
|
* tokens: [{ val: '/users', old: '/users', type: 0, end: '' }],
|
|
72
72
|
* request: {
|
|
73
|
-
* type: '
|
|
74
|
-
* imports: ['import {
|
|
73
|
+
* type: 'InferInput<typeof createUserValidator>',
|
|
74
|
+
* imports: ['import { InferInput } from "@vinejs/vine/types"']
|
|
75
75
|
* },
|
|
76
76
|
* response: {
|
|
77
77
|
* type: 'ReturnType<UsersController["store"]>',
|
package/package.json
CHANGED