@nestbridge/vite 1.1.0 → 1.1.1
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/nestbridge.vite.d.ts +18 -15
- package/build/nestbridge.vite.js +1098 -1262
- package/build/nestbridge.vite.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nestbridge.vite.js","sources":["../../core/build/nestbridge.core.js","../src/codegen/merge-named-parameters-expression.ts","../src/codegen/generate-body-expression.ts","../src/codegen/generate-headers-expression.ts","../src/codegen/generate-parameter-list.ts","../src/codegen/generate-path-expression.ts","../src/codegen/generate-query-expression.ts","../src/codegen/generate-controller-module.ts","../src/codegen/generate-graphql-document.ts","../src/codegen/generate-resolver-argument-list.ts","../src/codegen/generate-resolver-module.ts","../src/declarations/mirror-declaration-path.ts","../src/declarations/write-controller-declarations.ts","../src/declarations/write-resolver-declarations.ts","../src/discovery/discover-files.ts","../src/options/nestbridge-options.ts","../src/virtual-modules/controller-virtual-id.ts","../src/virtual-modules/resolver-virtual-id.ts","../src/plugin/controller-registry.ts","../src/plugin/resolver-registry.ts","../src/plugin/nestbridge-vite-plugin.ts","../src/version.ts"],"sourcesContent":["import { readFileSync, existsSync } from 'node:fs';\nimport ts from 'typescript';\nimport { resolve, dirname, relative, extname } from 'node:path';\n\nconst findDecorator = (node, decoratorName) => {\n const decorators = ts.getDecorators(node);\n if (decorators === void 0) {\n return void 0;\n }\n return decorators.find((decorator) => decoratorNameOf(decorator) === decoratorName);\n};\nconst findAnyDecorator = (node, decoratorNames) => {\n const decorators = ts.getDecorators(node);\n if (decorators === void 0) {\n return void 0;\n }\n return decorators.find((decorator) => decoratorNames.includes(decoratorNameOf(decorator) ?? \"\"));\n};\nconst decoratorNameOf = (decorator) => {\n const expression = decorator.expression;\n if (ts.isCallExpression(expression) && ts.isIdentifier(expression.expression)) {\n return expression.expression.text;\n }\n if (ts.isIdentifier(expression)) {\n return expression.text;\n }\n return void 0;\n};\nconst readStaticStringArgument = (decorator) => {\n const expression = decorator.expression;\n if (!ts.isCallExpression(expression)) {\n return { ok: true, value: void 0 };\n }\n const [firstArgument] = expression.arguments;\n if (firstArgument === void 0) {\n return { ok: true, value: void 0 };\n }\n if (ts.isStringLiteralLike(firstArgument)) {\n return { ok: true, value: firstArgument.text };\n }\n return { ok: false, argumentText: firstArgument.getText() };\n};\n\nconst HTTP_METHOD_DECORATOR_NAMES = {\n Get: \"GET\",\n Post: \"POST\",\n Put: \"PUT\",\n Patch: \"PATCH\",\n Delete: \"DELETE\"\n};\n\nconst locationOf = (sourceFile, node) => {\n const { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));\n return { line: line + 1, column: character + 1 };\n};\n\nconst SUPPORTED_PARAMETER_DECORATORS = [\"Param\", \"Query\", \"Body\", \"Headers\"];\nconst KNOWN_UNSUPPORTED_PARAMETER_DECORATORS = [\"Req\", \"Res\", \"Request\", \"Response\"];\nconst extractParameterDefinition = (parameter, index, context) => {\n const decorator = findAnyDecorator(parameter, [\n ...SUPPORTED_PARAMETER_DECORATORS,\n ...KNOWN_UNSUPPORTED_PARAMETER_DECORATORS\n ]);\n const location = locationOf(context.sourceFile, parameter);\n if (decorator === void 0) {\n context.diagnostics.push({\n code: \"unsupported-parameter\",\n title: \"Unsupported parameter.\",\n controllerName: context.controllerName,\n memberName: context.methodName,\n detail: `Parameter \"${parameter.name.getText()}\" must be decorated with one of @Param, @Query, @Body, or @Headers to be transported through a NestBridge HTTP client.`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const decoratorName = decoratorNameOf(decorator);\n if (decoratorName !== void 0 && KNOWN_UNSUPPORTED_PARAMETER_DECORATORS.includes(decoratorName)) {\n context.diagnostics.push({\n code: \"unsupported-parameter\",\n title: \"Unsupported parameter.\",\n controllerName: context.controllerName,\n memberName: context.methodName,\n detail: `@${decoratorName}() cannot be transported through a NestBridge HTTP client.`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n if (!ts.isIdentifier(parameter.name)) {\n context.diagnostics.push({\n code: \"unsupported-parameter\",\n title: \"Unsupported parameter.\",\n controllerName: context.controllerName,\n memberName: context.methodName,\n detail: \"Destructured parameters cannot be transported through a NestBridge HTTP client.\",\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const argument = readStaticStringArgument(decorator);\n if (!argument.ok) {\n context.diagnostics.push({\n code: \"unsupported-parameter\",\n title: \"Unsupported parameter.\",\n controllerName: context.controllerName,\n memberName: context.methodName,\n detail: `@${decoratorName}() arguments must be statically analyzable string literals.`,\n found: `@${decoratorName}(${argument.argumentText})`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const base = {\n index,\n parameterName: parameter.name.text\n };\n if (decoratorName === \"Param\") {\n if (argument.value === void 0) {\n context.diagnostics.push({\n code: \"unsupported-parameter\",\n title: \"Unsupported parameter.\",\n controllerName: context.controllerName,\n memberName: context.methodName,\n detail: \"A whole @Param() is not supported; provide a route parameter name such as @Param('id').\",\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n return { ...base, kind: \"param\", name: argument.value };\n }\n if (decoratorName === \"Headers\") {\n if (argument.value === void 0) {\n context.diagnostics.push({\n code: \"unsupported-parameter\",\n title: \"Unsupported parameter.\",\n controllerName: context.controllerName,\n memberName: context.methodName,\n detail: \"A whole @Headers() is not supported; provide a header name such as @Headers('x-example').\",\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n return { ...base, kind: \"header\", name: argument.value };\n }\n if (decoratorName === \"Query\") {\n return { ...base, kind: \"query\", name: argument.value };\n }\n return { ...base, kind: \"body\", name: argument.value };\n};\n\nconst PRIMITIVE_SCALAR_TYPES = {\n string: \"String\",\n number: \"Float\",\n boolean: \"Boolean\"\n};\nconst unwrapPromise = (typeNode) => {\n if (ts.isTypeReferenceNode(typeNode) && ts.isIdentifier(typeNode.typeName) && typeNode.typeName.text === \"Promise\" && typeNode.typeArguments?.[0] !== void 0) {\n return unwrapPromise(typeNode.typeArguments[0]);\n }\n return typeNode;\n};\nconst unwrapNullable = (typeNode) => {\n if (!ts.isUnionTypeNode(typeNode)) {\n return { inner: typeNode, isNullable: false };\n }\n const nonNullMembers = typeNode.types.filter(\n (member) => member.kind !== ts.SyntaxKind.NullKeyword && member.kind !== ts.SyntaxKind.UndefinedKeyword\n );\n const [onlyMember] = nonNullMembers;\n if (nonNullMembers.length !== 1 || onlyMember === void 0) {\n return { inner: typeNode, isNullable: nonNullMembers.length !== typeNode.types.length };\n }\n return { inner: onlyMember, isNullable: true };\n};\nconst unwrapArrayElement = (typeNode) => {\n if (ts.isArrayTypeNode(typeNode)) {\n return typeNode.elementType;\n }\n if (ts.isTypeReferenceNode(typeNode) && ts.isIdentifier(typeNode.typeName) && typeNode.typeName.text === \"Array\" && typeNode.typeArguments?.[0] !== void 0) {\n return typeNode.typeArguments[0];\n }\n return void 0;\n};\nconst identifierTextOf = (typeNode) => {\n if (ts.isTypeReferenceNode(typeNode) && ts.isIdentifier(typeNode.typeName)) {\n return typeNode.typeName.text;\n }\n switch (typeNode.kind) {\n case ts.SyntaxKind.StringKeyword:\n return \"string\";\n case ts.SyntaxKind.NumberKeyword:\n return \"number\";\n case ts.SyntaxKind.BooleanKeyword:\n return \"boolean\";\n default:\n return void 0;\n }\n};\nconst unwrapTypeNode = (typeNode) => {\n const withoutPromise = unwrapPromise(typeNode);\n const { inner: withoutNullable, isNullable } = unwrapNullable(withoutPromise);\n const arrayElement = unwrapArrayElement(withoutNullable);\n const element = arrayElement === void 0 ? withoutNullable : unwrapNullable(arrayElement).inner;\n const identifierText = identifierTextOf(element);\n if (identifierText === void 0) {\n return void 0;\n }\n return { identifierText, isArray: arrayElement !== void 0, isNullable };\n};\nconst graphqlScalarNameFor = (identifierText) => PRIMITIVE_SCALAR_TYPES[identifierText] ?? identifierText;\nconst graphqlTypeStringFor = (unwrapped, explicitTypeName) => {\n const baseName = explicitTypeName ?? graphqlScalarNameFor(unwrapped.identifierText);\n const wrapped = unwrapped.isArray ? `[${baseName}!]` : baseName;\n return unwrapped.isNullable ? wrapped : `${wrapped}!`;\n};\n\nconst OBSERVABLE_TYPE_NAME = \"Observable\";\nconst STREAMABLE_FILE_TYPE_NAME = \"StreamableFile\";\nconst readResponseKind = (returnType) => {\n if (returnType === void 0) {\n return \"json\";\n }\n const unwrapped = unwrapPromise(returnType);\n if (!ts.isTypeReferenceNode(unwrapped) || !ts.isIdentifier(unwrapped.typeName)) {\n return \"json\";\n }\n if (unwrapped.typeName.text === OBSERVABLE_TYPE_NAME) {\n return \"observable\";\n }\n if (unwrapped.typeName.text === STREAMABLE_FILE_TYPE_NAME) {\n return \"stream\";\n }\n return \"json\";\n};\n\nconst trimSlashes = (segment) => segment.replace(/^\\/+/, \"\").replace(/\\/+$/, \"\");\nconst joinRoutePath = (controllerPath, methodPath) => {\n const segments = [trimSlashes(controllerPath), trimSlashes(methodPath ?? \"\")].filter(\n (segment) => segment.length > 0\n );\n return `/${segments.join(\"/\")}`;\n};\n\nconst extractMethodDefinition = (method, context) => {\n const decorator = findAnyDecorator(method, Object.keys(HTTP_METHOD_DECORATOR_NAMES));\n if (decorator === void 0) {\n return void 0;\n }\n const methodName = method.name.getText();\n const decoratorName = decoratorNameOf(decorator);\n const location = locationOf(context.sourceFile, method);\n if (decoratorName === void 0) {\n return void 0;\n }\n const httpMethod = HTTP_METHOD_DECORATOR_NAMES[decoratorName];\n if (httpMethod === void 0) {\n return void 0;\n }\n const routeArgument = readStaticStringArgument(decorator);\n if (!routeArgument.ok) {\n context.diagnostics.push({\n code: \"unsupported-route\",\n title: \"Unsupported route.\",\n controllerName: context.controllerName,\n memberName: methodName,\n detail: \"Route paths must be statically analyzable.\",\n found: `@${decoratorName}(${routeArgument.argumentText})`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const parameters = method.parameters.map(\n (parameter, index) => extractParameterDefinition(parameter, index, {\n sourceFile: context.sourceFile,\n filePath: context.filePath,\n controllerName: context.controllerName,\n methodName,\n diagnostics: context.diagnostics\n })\n );\n if (parameters.some((parameter) => parameter === void 0)) {\n return void 0;\n }\n return {\n name: methodName,\n httpMethod,\n path: joinRoutePath(context.controllerPath, routeArgument.value),\n parameters: parameters.filter((parameter) => parameter !== void 0),\n responseKind: readResponseKind(method.type),\n line: location.line,\n column: location.column\n };\n};\n\nconst extractControllerDefinition = (classDeclaration, sourceFile, filePath, diagnostics) => {\n const controllerName = classDeclaration.name?.text ?? \"(anonymous controller)\";\n const decorator = findDecorator(classDeclaration, \"Controller\");\n if (decorator === void 0) {\n return void 0;\n }\n const location = locationOf(sourceFile, classDeclaration);\n const argument = readStaticStringArgument(decorator);\n if (!argument.ok) {\n diagnostics.push({\n code: \"unsupported-route\",\n title: \"Unsupported route.\",\n controllerName,\n memberName: \"\",\n detail: \"Controller paths must be statically analyzable.\",\n found: `@Controller(${argument.argumentText})`,\n filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const methods = classDeclaration.members.filter((member) => ts.isMethodDeclaration(member)).map(\n (method) => extractMethodDefinition(method, {\n sourceFile,\n filePath,\n controllerName,\n controllerPath: argument.value ?? \"\",\n diagnostics\n })\n ).filter((method) => method !== void 0);\n return {\n name: controllerName,\n path: argument.value ?? \"\",\n sourceFile: filePath,\n methods\n };\n};\n\nconst findControllerClasses = (sourceFile) => {\n return sourceFile.statements.filter(\n (statement) => ts.isClassDeclaration(statement) && findDecorator(statement, \"Controller\") !== void 0\n );\n};\n\nconst analyzeControllers = (filePaths) => {\n const diagnostics = [];\n const controllers = [];\n for (const filePath of filePaths) {\n const content = readFileSync(filePath, \"utf-8\");\n const sourceFile = ts.createSourceFile(\n filePath,\n content,\n ts.ScriptTarget.ESNext,\n true,\n ts.ScriptKind.TS\n );\n for (const classDeclaration of findControllerClasses(sourceFile)) {\n const controller = extractControllerDefinition(\n classDeclaration,\n sourceFile,\n filePath,\n diagnostics\n );\n if (controller !== void 0) {\n controllers.push(controller);\n }\n }\n }\n return { controllers, diagnostics };\n};\n\nconst GRAPHQL_OPERATION_DECORATOR_NAMES = {\n Query: \"query\",\n Mutation: \"mutation\"\n};\n\nconst readTypeThunkExpression = (thunk) => {\n if (!ts.isBlock(thunk.body)) {\n return thunk.body;\n }\n const returnStatement = thunk.body.statements.find(ts.isReturnStatement);\n return returnStatement?.expression;\n};\n\nconst readArgsTypeOption = (decorator) => {\n if (!ts.isCallExpression(decorator.expression)) {\n return void 0;\n }\n const optionsArgument = decorator.expression.arguments.find(ts.isObjectLiteralExpression);\n if (optionsArgument === void 0) {\n return void 0;\n }\n const typeProperty = optionsArgument.properties.find(\n (property) => ts.isPropertyAssignment(property) && ts.isIdentifier(property.name) && property.name.text === \"type\"\n );\n if (typeProperty === void 0) {\n return void 0;\n }\n const thunk = typeProperty.initializer;\n if (!ts.isArrowFunction(thunk) && !ts.isFunctionExpression(thunk)) {\n return void 0;\n }\n const returnedExpression = readTypeThunkExpression(thunk);\n if (returnedExpression === void 0) {\n return void 0;\n }\n if (ts.isArrayLiteralExpression(returnedExpression)) {\n const element = returnedExpression.elements[0];\n return element !== void 0 && ts.isIdentifier(element) ? { typeName: element.text, isArray: true } : void 0;\n }\n return ts.isIdentifier(returnedExpression) ? { typeName: returnedExpression.text, isArray: false } : void 0;\n};\n\nconst extractResolverArgumentDefinition = (parameter, index, context) => {\n const decorator = findAnyDecorator(parameter, [\"Args\"]);\n const location = locationOf(context.sourceFile, parameter);\n if (decorator === void 0) {\n context.diagnostics.push({\n code: \"unsupported-argument\",\n title: \"Unsupported argument.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: `Parameter \"${parameter.name.getText()}\" must be decorated with @Args to be transported through a NestBridge GraphQL client.`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n if (!ts.isIdentifier(parameter.name)) {\n context.diagnostics.push({\n code: \"unsupported-argument\",\n title: \"Unsupported argument.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: \"Destructured parameters cannot be transported through a NestBridge GraphQL client.\",\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const nameArgument = readStaticStringArgument(decorator);\n if (!nameArgument.ok) {\n context.diagnostics.push({\n code: \"unsupported-argument\",\n title: \"Unsupported argument.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: \"@Args() name must be a statically analyzable string literal.\",\n found: `@Args(${nameArgument.argumentText})`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n if (nameArgument.value === void 0) {\n context.diagnostics.push({\n code: \"unsupported-argument\",\n title: \"Unsupported argument.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: \"A whole @Args() is not supported; provide an argument name such as @Args('id').\",\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n if (parameter.type === void 0) {\n context.diagnostics.push({\n code: \"unsupported-argument\",\n title: \"Unsupported argument.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: `@Args() parameter \"${parameter.name.text}\" needs an explicit type annotation.`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const unwrapped = unwrapTypeNode(parameter.type);\n if (unwrapped === void 0) {\n context.diagnostics.push({\n code: \"unsupported-argument\",\n title: \"Unsupported argument.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: `@Args() parameter \"${parameter.name.text}\" has a type NestBridge cannot statically resolve to a GraphQL type.`,\n found: parameter.type.getText(),\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const explicitType = readArgsTypeOption(decorator);\n return {\n index,\n parameterName: parameter.name.text,\n name: nameArgument.value,\n graphqlType: graphqlTypeStringFor(unwrapped, explicitType?.typeName)\n };\n};\n\nconst parsedFilesByPath = /* @__PURE__ */ new Map();\nconst parseFile = (filePath) => {\n const cached = parsedFilesByPath.get(filePath);\n if (cached !== void 0) {\n return cached;\n }\n const content = readFileSync(filePath, \"utf-8\");\n const sourceFile = ts.createSourceFile(\n filePath,\n content,\n ts.ScriptTarget.ESNext,\n true,\n ts.ScriptKind.TS\n );\n parsedFilesByPath.set(filePath, sourceFile);\n return sourceFile;\n};\nconst resolveModuleFile = (fromFilePath, moduleSpecifierText) => {\n if (!moduleSpecifierText.startsWith(\".\")) {\n return void 0;\n }\n const base = resolve(dirname(fromFilePath), moduleSpecifierText);\n const candidates = [`${base}.ts`, `${base}.tsx`, resolve(base, \"index.ts\")];\n return candidates.find((candidate) => existsSync(candidate));\n};\nconst findExportedDeclaration = (sourceFile, name) => sourceFile.statements.find(\n (statement) => ts.isClassDeclaration(statement) && statement.name?.text === name\n);\nconst findImportSource = (sourceFile, localName) => {\n for (const statement of sourceFile.statements) {\n if (!ts.isImportDeclaration(statement) || !ts.isStringLiteralLike(statement.moduleSpecifier)) {\n continue;\n }\n const namedBindings = statement.importClause?.namedBindings;\n if (namedBindings === void 0 || !ts.isNamedImports(namedBindings)) {\n continue;\n }\n const element = namedBindings.elements.find((candidate) => candidate.name.text === localName);\n if (element !== void 0) {\n return {\n moduleSpecifierText: statement.moduleSpecifier.text,\n importedName: element.propertyName?.text ?? element.name.text\n };\n }\n }\n return void 0;\n};\nconst findReExportSource = (sourceFile, name) => {\n for (const statement of sourceFile.statements) {\n if (!ts.isExportDeclaration(statement) || statement.moduleSpecifier === void 0 || !ts.isStringLiteralLike(statement.moduleSpecifier)) {\n continue;\n }\n if (statement.exportClause === void 0) {\n return statement.moduleSpecifier.text;\n }\n if (ts.isNamedExports(statement.exportClause) && statement.exportClause.elements.some(\n (element) => (element.propertyName?.text ?? element.name.text) === name\n )) {\n return statement.moduleSpecifier.text;\n }\n }\n return void 0;\n};\nconst resolveClassDeclaration = (name, fromSourceFile, fromFilePath, visited = /* @__PURE__ */ new Set()) => {\n if (visited.has(fromFilePath)) {\n return void 0;\n }\n visited.add(fromFilePath);\n const direct = findExportedDeclaration(fromSourceFile, name);\n if (direct !== void 0) {\n return { classDeclaration: direct, sourceFile: fromSourceFile, filePath: fromFilePath };\n }\n const importSource = findImportSource(fromSourceFile, name);\n if (importSource !== void 0) {\n const resolvedPath = resolveModuleFile(fromFilePath, importSource.moduleSpecifierText);\n if (resolvedPath !== void 0) {\n const nextSourceFile = parseFile(resolvedPath);\n const result = resolveClassDeclaration(\n importSource.importedName,\n nextSourceFile,\n resolvedPath,\n visited\n );\n if (result !== void 0) {\n return result;\n }\n }\n }\n const reExportModuleSpecifierText = findReExportSource(fromSourceFile, name);\n if (reExportModuleSpecifierText !== void 0) {\n const resolvedPath = resolveModuleFile(fromFilePath, reExportModuleSpecifierText);\n if (resolvedPath !== void 0) {\n const nextSourceFile = parseFile(resolvedPath);\n return resolveClassDeclaration(name, nextSourceFile, resolvedPath, visited);\n }\n }\n return void 0;\n};\n\nconst PRIMITIVE_SCALAR_NAMES$1 = /* @__PURE__ */ new Set([\"string\", \"number\", \"boolean\"]);\nconst extractSelectionFields = (classDeclaration, sourceFile, filePath, context) => {\n const typeName = classDeclaration.name?.text ?? \"(anonymous type)\";\n const location = locationOf(sourceFile, classDeclaration);\n if (context.visitedTypeNames.has(typeName)) {\n context.diagnostics.push({\n code: \"circular-type\",\n title: \"Circular type.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: `Type \"${typeName}\" references itself, directly or indirectly. NestBridge cannot build a finite GraphQL selection set for it.`,\n filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const nextVisited = new Set(context.visitedTypeNames).add(typeName);\n const properties = classDeclaration.members.filter(\n (member) => ts.isPropertyDeclaration(member) && findDecorator(member, \"Field\") !== void 0\n );\n const fields = [];\n for (const property of properties) {\n if (!ts.isIdentifier(property.name)) {\n continue;\n }\n const fieldName = property.name.text;\n const fieldLocation = locationOf(sourceFile, property);\n if (property.type === void 0) {\n context.diagnostics.push({\n code: \"unsupported-return-type\",\n title: \"Unsupported field type.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: `Field \"${fieldName}\" on \"${typeName}\" needs an explicit type annotation.`,\n filePath,\n line: fieldLocation.line,\n column: fieldLocation.column\n });\n return void 0;\n }\n const unwrapped = unwrapTypeNode(property.type);\n if (unwrapped === void 0) {\n context.diagnostics.push({\n code: \"unsupported-return-type\",\n title: \"Unsupported field type.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: `Field \"${fieldName}\" on \"${typeName}\" has a type NestBridge cannot statically resolve.`,\n found: property.type.getText(),\n filePath,\n line: fieldLocation.line,\n column: fieldLocation.column\n });\n return void 0;\n }\n if (PRIMITIVE_SCALAR_NAMES$1.has(unwrapped.identifierText)) {\n fields.push({ name: fieldName });\n continue;\n }\n const resolved = resolveClassDeclaration(unwrapped.identifierText, sourceFile, filePath);\n if (resolved === void 0) {\n fields.push({ name: fieldName });\n continue;\n }\n if (findDecorator(resolved.classDeclaration, \"ObjectType\") === void 0) {\n context.diagnostics.push({\n code: \"unsupported-return-type\",\n title: \"Unsupported field type.\",\n controllerName: context.resolverName,\n memberName: context.methodName,\n detail: `Field \"${fieldName}\" on \"${typeName}\" resolves to class \"${unwrapped.identifierText}\", which is not decorated with @ObjectType(). NestBridge cannot build a GraphQL selection set for it.`,\n filePath,\n line: fieldLocation.line,\n column: fieldLocation.column\n });\n return void 0;\n }\n const children = extractSelectionFields(\n resolved.classDeclaration,\n resolved.sourceFile,\n resolved.filePath,\n {\n ...context,\n visitedTypeNames: nextVisited\n }\n );\n if (children === void 0) {\n return void 0;\n }\n fields.push({ name: fieldName, children });\n }\n return fields;\n};\n\nconst readNameFromOptions = (optionsArgument) => {\n const nameProperty = optionsArgument.properties.find(\n (property) => ts.isPropertyAssignment(property) && ts.isIdentifier(property.name) && property.name.text === \"name\"\n );\n if (nameProperty === void 0 || !ts.isStringLiteralLike(nameProperty.initializer)) {\n return void 0;\n }\n return nameProperty.initializer.text;\n};\nconst readGraphqlOperationName = (decorator) => {\n const expression = decorator.expression;\n if (!ts.isCallExpression(expression)) {\n return { ok: true, value: void 0 };\n }\n let value;\n for (const argument of expression.arguments) {\n if (ts.isArrowFunction(argument) || ts.isFunctionExpression(argument)) {\n continue;\n }\n if (ts.isStringLiteralLike(argument)) {\n value = argument.text;\n continue;\n }\n if (ts.isObjectLiteralExpression(argument)) {\n value = readNameFromOptions(argument) ?? value;\n continue;\n }\n return { ok: false, argumentText: argument.getText() };\n }\n return { ok: true, value };\n};\n\nconst readGraphqlReturnTypeOption = (decorator) => {\n if (!ts.isCallExpression(decorator.expression)) {\n return void 0;\n }\n const thunk = decorator.expression.arguments.find(\n (argument) => ts.isArrowFunction(argument) || ts.isFunctionExpression(argument)\n );\n if (thunk === void 0) {\n return void 0;\n }\n const returnedExpression = readTypeThunkExpression(thunk);\n if (returnedExpression === void 0) {\n return void 0;\n }\n if (ts.isArrayLiteralExpression(returnedExpression)) {\n const element = returnedExpression.elements[0];\n return element !== void 0 && ts.isIdentifier(element) ? element.text : void 0;\n }\n return ts.isIdentifier(returnedExpression) ? returnedExpression.text : void 0;\n};\n\nconst PRIMITIVE_SCALAR_NAMES = /* @__PURE__ */ new Set([\"string\", \"number\", \"boolean\"]);\nconst extractResolverMethodDefinition = (method, context) => {\n const decorator = findAnyDecorator(method, Object.keys(GRAPHQL_OPERATION_DECORATOR_NAMES));\n if (decorator === void 0) {\n return void 0;\n }\n const methodName = method.name.getText();\n const decoratorName = decoratorNameOf(decorator);\n const location = locationOf(context.sourceFile, method);\n if (decoratorName === void 0) {\n return void 0;\n }\n const operationKind = GRAPHQL_OPERATION_DECORATOR_NAMES[decoratorName];\n if (operationKind === void 0) {\n return void 0;\n }\n const nameArgument = readGraphqlOperationName(decorator);\n if (!nameArgument.ok) {\n context.diagnostics.push({\n code: \"unsupported-route\",\n title: \"Unsupported operation name.\",\n controllerName: context.resolverName,\n memberName: methodName,\n detail: \"GraphQL operation names must be statically analyzable string literals.\",\n found: `@${decoratorName}(${nameArgument.argumentText})`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n const decoratorReturnType = readGraphqlReturnTypeOption(decorator);\n const identifierText = decoratorReturnType ?? (method.type === void 0 ? void 0 : unwrapTypeNode(method.type)?.identifierText);\n if (identifierText === void 0) {\n context.diagnostics.push({\n code: \"unsupported-return-type\",\n title: \"Unsupported return type.\",\n controllerName: context.resolverName,\n memberName: methodName,\n detail: 'GraphQL resolver methods need a type thunk on @Query()/@Mutation() (e.g. \"() => UserType\") or an explicit return type annotation so NestBridge can build a selection set.',\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n let selection = [];\n if (!PRIMITIVE_SCALAR_NAMES.has(identifierText.toLowerCase())) {\n const resolved = resolveClassDeclaration(identifierText, context.sourceFile, context.filePath);\n if (resolved === void 0 && decoratorReturnType === void 0) {\n context.diagnostics.push({\n code: \"unsupported-return-type\",\n title: \"Unsupported return type.\",\n controllerName: context.resolverName,\n memberName: methodName,\n detail: `NestBridge could not locate the declaration of type \"${identifierText}\".`,\n filePath: context.filePath,\n line: location.line,\n column: location.column\n });\n return void 0;\n }\n if (resolved !== void 0) {\n const fields = extractSelectionFields(\n resolved.classDeclaration,\n resolved.sourceFile,\n resolved.filePath,\n {\n resolverName: context.resolverName,\n methodName,\n diagnostics: context.diagnostics,\n visitedTypeNames: /* @__PURE__ */ new Set()\n }\n );\n if (fields === void 0) {\n return void 0;\n }\n selection = fields;\n }\n }\n const args = method.parameters.map(\n (parameter, index) => extractResolverArgumentDefinition(parameter, index, {\n sourceFile: context.sourceFile,\n filePath: context.filePath,\n resolverName: context.resolverName,\n methodName,\n diagnostics: context.diagnostics\n })\n );\n if (args.some((argument) => argument === void 0)) {\n return void 0;\n }\n return {\n name: methodName,\n operationKind,\n operationName: nameArgument.value ?? methodName,\n arguments: args.filter((argument) => argument !== void 0),\n selection,\n line: location.line,\n column: location.column\n };\n};\n\nconst extractResolverDefinition = (classDeclaration, sourceFile, filePath, diagnostics) => {\n const resolverName = classDeclaration.name?.text ?? \"(anonymous resolver)\";\n const methods = classDeclaration.members.filter((member) => ts.isMethodDeclaration(member)).map(\n (method) => extractResolverMethodDefinition(method, {\n sourceFile,\n filePath,\n resolverName,\n diagnostics\n })\n ).filter((method) => method !== void 0);\n return {\n name: resolverName,\n sourceFile: filePath,\n methods\n };\n};\n\nconst findResolverClasses = (sourceFile) => {\n return sourceFile.statements.filter(\n (statement) => ts.isClassDeclaration(statement) && findDecorator(statement, \"Resolver\") !== void 0\n );\n};\n\nconst analyzeResolvers = (filePaths) => {\n const diagnostics = [];\n const resolvers = [];\n for (const filePath of filePaths) {\n const content = readFileSync(filePath, \"utf-8\");\n const sourceFile = ts.createSourceFile(\n filePath,\n content,\n ts.ScriptTarget.ESNext,\n true,\n ts.ScriptKind.TS\n );\n for (const classDeclaration of findResolverClasses(sourceFile)) {\n const resolver = extractResolverDefinition(\n classDeclaration,\n sourceFile,\n filePath,\n diagnostics\n );\n if (resolver !== void 0) {\n resolvers.push(resolver);\n }\n }\n }\n return { resolvers, diagnostics };\n};\n\nconst REMOTE_RESULT_HELPERS = {\n json: \"RemoteResult\",\n observable: \"RemoteObservableResult\",\n stream: \"RemoteStreamResult\"\n};\nconst toPosixPath = (filePath) => filePath.replace(/\\\\/g, \"/\");\nconst importSpecifierFor = (sourceFile, outputFilePath) => {\n if (!sourceFile.startsWith(\".\") && !/^[A-Za-z]:[\\\\/]/.test(sourceFile) && !sourceFile.startsWith(\"/\")) {\n return sourceFile;\n }\n const relativePath = toPosixPath(relative(dirname(outputFilePath), sourceFile));\n return relativePath.startsWith(\".\") ? relativePath : `./${relativePath}`;\n};\nconst stripExtension = (filePath) => {\n const extension = extname(filePath);\n return extension.length > 0 ? filePath.slice(0, -extension.length) : filePath;\n};\nconst generateControllerDeclaration = (controller, outputFilePath) => {\n const sourceFileSpecifier = importSpecifierFor(controller.sourceFile, outputFilePath);\n const importSpecifier = stripExtension(sourceFileSpecifier);\n const serverAlias = `__Server${controller.name}`;\n const methodDeclarations = controller.methods.map((method) => {\n const helperName = REMOTE_RESULT_HELPERS[method.responseKind ?? \"json\"];\n return ` ${method.name}(...args: Parameters<${serverAlias}['${method.name}']>): ${helperName}<${serverAlias}['${method.name}']>;`;\n });\n const classBody = [\" constructor();\", \"\", ...methodDeclarations].join(\"\\n\");\n const usedHelperNames = new Set(\n controller.methods.map((method) => REMOTE_RESULT_HELPERS[method.responseKind ?? \"json\"])\n );\n const helperImports = Array.from(\n usedHelperNames.size > 0 ? usedHelperNames : [\"RemoteResult\"]\n ).sort();\n return [\n `import type { ${controller.name} as ${serverAlias} } from '${importSpecifier}';`,\n `import type { ${helperImports.join(\", \")} } from '@nestbridge/runtime';`,\n \"\",\n \"/**\",\n \" * Generated by NestBridge — client-facing methods only.\",\n ` * @see {@link ${sourceFileSpecifier}} for the real controller implementation.`,\n \" */\",\n `export declare class ${controller.name} {`,\n classBody,\n \"}\",\n \"\"\n ].join(\"\\n\");\n};\n\nconst formatDiagnostic = (diagnostic) => {\n const subject = diagnostic.memberName.length > 0 ? `${diagnostic.controllerName}.${diagnostic.memberName}` : diagnostic.controllerName;\n const lines = [`[NestBridge] ${diagnostic.title}`, \"\", subject, \"\", diagnostic.detail];\n if (diagnostic.found !== void 0) {\n lines.push(\"\", \"Found:\", diagnostic.found);\n }\n if (diagnostic.expected !== void 0) {\n lines.push(\"\", \"Expected:\", diagnostic.expected);\n }\n lines.push(\"\", `${diagnostic.filePath}:${diagnostic.line}:${diagnostic.column}`);\n return lines.join(\"\\n\");\n};\n\nclass NestBridgeDiagnosticError extends Error {\n diagnostic;\n constructor(diagnostic) {\n super(formatDiagnostic(diagnostic));\n this.name = \"NestBridgeDiagnosticError\";\n this.diagnostic = diagnostic;\n }\n}\n\nconst version = \"1.1.0\";\n\nconst VERSION = version;\n\nexport { NestBridgeDiagnosticError, VERSION, analyzeControllers, analyzeResolvers, formatDiagnostic, generateControllerDeclaration };\n//# sourceMappingURL=nestbridge.core.js.map\n","interface NamedParameterLike {\n name?: string;\n parameterName: string;\n}\n\nexport const mergeNamedParametersExpression = (parameters: readonly NamedParameterLike[]) => {\n if (parameters.length === 0) {\n return undefined;\n }\n\n const whole = parameters.find((parameter) => parameter.name === undefined);\n const named = parameters.filter((parameter) => parameter.name !== undefined);\n const namedEntries = named.map(\n (parameter) => `${JSON.stringify(parameter.name)}: ${parameter.parameterName}`,\n );\n\n if (whole === undefined) {\n return `{ ${namedEntries.join(', ')} }`;\n }\n\n if (named.length === 0) {\n return whole.parameterName;\n }\n\n return `{ ...${whole.parameterName}, ${namedEntries.join(', ')} }`;\n};\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\nimport { mergeNamedParametersExpression } from './merge-named-parameters-expression';\n\nexport const generateBodyExpression = (parameters: readonly ControllerParameterDefinition[]) =>\n mergeNamedParametersExpression(parameters.filter((parameter) => parameter.kind === 'body'));\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\n\nexport const generateHeadersExpression = (parameters: readonly ControllerParameterDefinition[]) => {\n const headerParameters = parameters.filter((parameter) => parameter.kind === 'header');\n\n if (headerParameters.length === 0) {\n return undefined;\n }\n\n const entries = headerParameters.map(\n (parameter) => `${JSON.stringify(parameter.name)}: ${parameter.parameterName}`,\n );\n\n return `{ ${entries.join(', ')} }`;\n};\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\n\nexport const generateParameterList = (parameters: readonly ControllerParameterDefinition[]) =>\n [...parameters]\n .sort((a, b) => a.index - b.index)\n .map((parameter) => parameter.parameterName)\n .join(', ');\n","import type { ControllerMethodDefinition } from '@nestbridge/core';\n\nconst PARAM_TOKEN_PATTERN = /:([A-Za-z0-9_]+)/;\n\nexport const generatePathExpression = (method: ControllerMethodDefinition) => {\n const paramParameters = method.parameters.filter((parameter) => parameter.kind === 'param');\n const parts = method.path.split(PARAM_TOKEN_PATTERN);\n const expressionParts: string[] = [];\n\n parts.forEach((part, index) => {\n const isParamToken = index % 2 === 1;\n\n if (!isParamToken) {\n if (part.length > 0) {\n expressionParts.push(JSON.stringify(part));\n }\n return;\n }\n\n const match = paramParameters.find((parameter) => parameter.name === part);\n expressionParts.push(\n match !== undefined\n ? `encodeURIComponent(${match.parameterName})`\n : JSON.stringify(`:${part}`),\n );\n });\n\n return expressionParts.length > 0 ? expressionParts.join(' + ') : \"''\";\n};\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\nimport { mergeNamedParametersExpression } from './merge-named-parameters-expression';\n\nexport const generateQueryExpression = (parameters: readonly ControllerParameterDefinition[]) =>\n mergeNamedParametersExpression(parameters.filter((parameter) => parameter.kind === 'query'));\n","import type { ControllerDefinition, ControllerMethodDefinition } from '@nestbridge/core';\nimport { generateBodyExpression } from './generate-body-expression';\nimport { generateHeadersExpression } from './generate-headers-expression';\nimport { generateParameterList } from './generate-parameter-list';\nimport { generatePathExpression } from './generate-path-expression';\nimport { generateQueryExpression } from './generate-query-expression';\n\nconst generateMethod = (method: ControllerMethodDefinition) => {\n const requestProperties = [\n `method: ${JSON.stringify(method.httpMethod)}`,\n `path: ${generatePathExpression(method)}`,\n ];\n\n const queryExpression = generateQueryExpression(method.parameters);\n if (queryExpression !== undefined) {\n requestProperties.push(`query: ${queryExpression}`);\n }\n\n const bodyExpression = generateBodyExpression(method.parameters);\n if (bodyExpression !== undefined) {\n requestProperties.push(`body: ${bodyExpression}`);\n }\n\n const headersExpression = generateHeadersExpression(method.parameters);\n if (headersExpression !== undefined) {\n requestProperties.push(`headers: ${headersExpression}`);\n }\n\n if (method.responseKind === 'stream') {\n requestProperties.push(`responseType: \"blob\"`);\n }\n\n return [\n ` ${method.name}(${generateParameterList(method.parameters)}) {`,\n ' return request({',\n ...requestProperties.map((property) => ` ${property},`),\n ' });',\n ' }',\n ].join('\\n');\n};\n\nexport const generateControllerModule = (controller: ControllerDefinition) => {\n const methods = controller.methods.map(generateMethod).join('\\n\\n');\n\n return [\n \"import { request } from '@nestbridge/runtime';\",\n '',\n `export class ${controller.name} {`,\n ' constructor() {}',\n '',\n methods,\n '}',\n '',\n ].join('\\n');\n};\n","import type { ResolverMethodDefinition, SelectionField } from '@nestbridge/core';\n\nconst capitalize = (value: string) => `${value.charAt(0).toUpperCase()}${value.slice(1)}`;\n\nconst renderSelectionSet = (fields: readonly SelectionField[]): string => {\n const rendered = fields.map((field) =>\n field.children === undefined\n ? field.name\n : `${field.name} ${renderSelectionSet(field.children)}`,\n );\n\n return `{ ${rendered.join(' ')} }`;\n};\n\nexport const generateGraphqlDocument = (method: ResolverMethodDefinition) => {\n const variableDeclarations = method.arguments\n .map((argument) => `$${argument.name}: ${argument.graphqlType}`)\n .join(', ');\n const fieldArguments = method.arguments\n .map((argument) => `${argument.name}: $${argument.name}`)\n .join(', ');\n\n const variablesClause = variableDeclarations.length > 0 ? `(${variableDeclarations})` : '';\n const fieldArgumentsClause = fieldArguments.length > 0 ? `(${fieldArguments})` : '';\n const fieldSelection =\n method.selection.length > 0 ? ` ${renderSelectionSet(method.selection)}` : '';\n\n return `${method.operationKind} ${capitalize(method.name)}${variablesClause} { ${method.operationName}${fieldArgumentsClause}${fieldSelection} }`;\n};\n","import type { ResolverArgumentDefinition } from '@nestbridge/core';\n\nexport const generateResolverArgumentList = (\n resolverArguments: readonly ResolverArgumentDefinition[],\n) =>\n [...resolverArguments]\n .sort((a, b) => a.index - b.index)\n .map((argument) => argument.parameterName)\n .join(', ');\n","import type {\n ResolverArgumentDefinition,\n ResolverDefinition,\n ResolverMethodDefinition,\n} from '@nestbridge/core';\nimport { generateGraphqlDocument } from './generate-graphql-document';\nimport { generateResolverArgumentList } from './generate-resolver-argument-list';\n\nconst generateVariablesExpression = (resolverArguments: readonly ResolverArgumentDefinition[]) => {\n if (resolverArguments.length === 0) {\n return undefined;\n }\n\n const entries = resolverArguments.map(\n (argument) => `${JSON.stringify(argument.name)}: ${argument.parameterName}`,\n );\n\n return `{ ${entries.join(', ')} }`;\n};\n\nconst generateMethod = (method: ResolverMethodDefinition) => {\n const requestProperties = [`document: ${JSON.stringify(generateGraphqlDocument(method))}`];\n\n const variablesExpression = generateVariablesExpression(method.arguments);\n if (variablesExpression !== undefined) {\n requestProperties.push(`variables: ${variablesExpression}`);\n }\n\n return [\n ` async ${method.name}(${generateResolverArgumentList(method.arguments)}) {`,\n ' const result = await graphqlRequest({',\n ...requestProperties.map((property) => ` ${property},`),\n ' });',\n '',\n ` return result.${method.operationName};`,\n ' }',\n ].join('\\n');\n};\n\nexport const generateResolverModule = (resolver: ResolverDefinition) => {\n const methods = resolver.methods.map(generateMethod).join('\\n\\n');\n\n return [\n \"import { graphqlRequest } from '@nestbridge/runtime';\",\n '',\n `export class ${resolver.name} {`,\n ' constructor() {}',\n '',\n methods,\n '}',\n '',\n ].join('\\n');\n};\n","import { join, relative } from 'node:path';\n\nconst stripLeadingParentSegments = (relativePath: string) => {\n const segments = relativePath.split(/[\\\\/]/);\n const firstOwnedIndex = segments.findIndex((segment) => segment !== '..');\n return segments.slice(firstOwnedIndex === -1 ? segments.length : firstOwnedIndex).join('/');\n};\n\nexport const mirroredDeclarationPath = (\n root: string,\n outputDir: string,\n controllerFilePath: string,\n) => {\n const relativePath = relative(root, controllerFilePath);\n const mirroredPath = stripLeadingParentSegments(relativePath).replace(/\\.ts$/, '.d.ts');\n return join(root, outputDir, mirroredPath);\n};\n","import { mkdirSync, writeFileSync } from 'node:fs';\nimport { dirname } from 'node:path';\nimport { type ControllerDefinition, generateControllerDeclaration } from '@nestbridge/core';\nimport { mirroredDeclarationPath } from './mirror-declaration-path';\n\nexport const writeControllerDeclarations = (\n controllers: readonly ControllerDefinition[],\n root: string,\n outputDir: string,\n) => {\n for (const controller of controllers) {\n const outputFilePath = mirroredDeclarationPath(root, outputDir, controller.sourceFile);\n mkdirSync(dirname(outputFilePath), { recursive: true });\n writeFileSync(\n outputFilePath,\n generateControllerDeclaration(controller, outputFilePath),\n 'utf-8',\n );\n }\n};\n","import { mkdirSync, writeFileSync } from 'node:fs';\nimport { dirname } from 'node:path';\nimport { generateControllerDeclaration, type ResolverDefinition } from '@nestbridge/core';\nimport { mirroredDeclarationPath } from './mirror-declaration-path';\n\nexport const writeResolverDeclarations = (\n resolvers: readonly ResolverDefinition[],\n root: string,\n outputDir: string,\n) => {\n for (const resolver of resolvers) {\n const outputFilePath = mirroredDeclarationPath(root, outputDir, resolver.sourceFile);\n mkdirSync(dirname(outputFilePath), { recursive: true });\n writeFileSync(outputFilePath, generateControllerDeclaration(resolver, outputFilePath), 'utf-8');\n }\n};\n","import { globSync } from 'node:fs';\nimport { resolve } from 'node:path';\n\nexport const discoverFiles = (patterns: readonly string[], root: string) => {\n const matches = globSync([...patterns], { cwd: root });\n return [...new Set(matches.map((match) => resolve(root, match)))].sort();\n};\n","export interface NestBridgeOptions {\n controllers: string | string[];\n resolvers?: string | string[];\n baseURL?: string;\n debug?: boolean;\n outputDir?: string;\n}\n\nexport interface ResolvedNestBridgeOptions {\n controllers: string[];\n resolvers: string[];\n baseURL: string | undefined;\n debug: boolean;\n outputDir: string;\n}\n\nexport const resolveNestBridgeOptions = (options: NestBridgeOptions) => ({\n controllers: Array.isArray(options.controllers) ? options.controllers : [options.controllers],\n resolvers:\n options.resolvers === undefined\n ? []\n : Array.isArray(options.resolvers)\n ? options.resolvers\n : [options.resolvers],\n baseURL: options.baseURL,\n debug: options.debug ?? false,\n outputDir: options.outputDir ?? '.nestbridge',\n});\n","const VIRTUAL_MODULE_PREFIX = 'virtual:nestbridge/controller/';\nconst RESOLVED_VIRTUAL_MODULE_PREFIX = `\\0${VIRTUAL_MODULE_PREFIX}`;\n\nexport const encodeControllerVirtualId = (absoluteControllerPath: string) =>\n `${VIRTUAL_MODULE_PREFIX}${encodeURIComponent(absoluteControllerPath)}`;\n\nexport const resolvedControllerVirtualId = (virtualId: string) => `\\0${virtualId}`;\n\nexport const isResolvedControllerVirtualId = (id: string) =>\n id.startsWith(RESOLVED_VIRTUAL_MODULE_PREFIX);\n\nexport const decodeControllerVirtualId = (resolvedId: string) =>\n decodeURIComponent(resolvedId.slice(RESOLVED_VIRTUAL_MODULE_PREFIX.length));\n","const VIRTUAL_MODULE_PREFIX = 'virtual:nestbridge/resolver/';\nconst RESOLVED_VIRTUAL_MODULE_PREFIX = `\\0${VIRTUAL_MODULE_PREFIX}`;\n\nexport const encodeResolverVirtualId = (absoluteResolverPath: string) =>\n `${VIRTUAL_MODULE_PREFIX}${encodeURIComponent(absoluteResolverPath)}`;\n\nexport const resolvedResolverVirtualId = (virtualId: string) => `\\0${virtualId}`;\n\nexport const isResolvedResolverVirtualId = (id: string) =>\n id.startsWith(RESOLVED_VIRTUAL_MODULE_PREFIX);\n\nexport const decodeResolverVirtualId = (resolvedId: string) =>\n decodeURIComponent(resolvedId.slice(RESOLVED_VIRTUAL_MODULE_PREFIX.length));\n","import {\n analyzeControllers,\n type ControllerDefinition,\n type NestBridgeDiagnostic,\n} from '@nestbridge/core';\nimport { normalizePath } from 'vite';\nimport { discoverFiles } from '../discovery';\n\nexport interface ControllerRegistryRefreshResult {\n controllers: ControllerDefinition[];\n diagnostics: NestBridgeDiagnostic[];\n}\n\nexport interface ControllerRegistry {\n refresh: () => ControllerRegistryRefreshResult;\n get: (filePath: string) => ControllerDefinition | undefined;\n has: (filePath: string) => boolean;\n all: () => ControllerDefinition[];\n}\n\nexport const createControllerRegistry = (\n patterns: readonly string[],\n root: string,\n): ControllerRegistry => {\n const controllersByFile = new Map<string, ControllerDefinition>();\n\n const refresh = () => {\n controllersByFile.clear();\n\n const files = discoverFiles(patterns, root);\n const { controllers, diagnostics } = analyzeControllers(files);\n\n for (const controller of controllers) {\n controllersByFile.set(normalizePath(controller.sourceFile), controller);\n }\n\n return { controllers, diagnostics };\n };\n\n return {\n refresh,\n get: (filePath) => controllersByFile.get(filePath),\n has: (filePath) => controllersByFile.has(filePath),\n all: () => [...controllersByFile.values()],\n };\n};\n","import {\n analyzeResolvers,\n type NestBridgeDiagnostic,\n type ResolverDefinition,\n} from '@nestbridge/core';\nimport { normalizePath } from 'vite';\nimport { discoverFiles } from '../discovery';\n\nexport interface ResolverRegistryRefreshResult {\n resolvers: ResolverDefinition[];\n diagnostics: NestBridgeDiagnostic[];\n}\n\nexport interface ResolverRegistry {\n refresh: () => ResolverRegistryRefreshResult;\n get: (filePath: string) => ResolverDefinition | undefined;\n has: (filePath: string) => boolean;\n all: () => ResolverDefinition[];\n}\n\nexport const createResolverRegistry = (\n patterns: readonly string[],\n root: string,\n): ResolverRegistry => {\n const resolversByFile = new Map<string, ResolverDefinition>();\n\n const refresh = () => {\n resolversByFile.clear();\n\n const files = discoverFiles(patterns, root);\n const { resolvers, diagnostics } = analyzeResolvers(files);\n\n for (const resolver of resolvers) {\n resolversByFile.set(normalizePath(resolver.sourceFile), resolver);\n }\n\n return { resolvers, diagnostics };\n };\n\n return {\n refresh,\n get: (filePath) => resolversByFile.get(filePath),\n has: (filePath) => resolversByFile.has(filePath),\n all: () => [...resolversByFile.values()],\n };\n};\n","import { formatDiagnostic, type NestBridgeDiagnostic } from '@nestbridge/core';\nimport { normalizePath, type Plugin, type ResolvedConfig } from 'vite';\nimport { generateControllerModule, generateResolverModule } from '../codegen';\nimport { writeControllerDeclarations, writeResolverDeclarations } from '../declarations';\nimport { discoverFiles } from '../discovery';\nimport { type NestBridgeOptions, resolveNestBridgeOptions } from '../options';\nimport {\n decodeControllerVirtualId,\n decodeResolverVirtualId,\n encodeControllerVirtualId,\n encodeResolverVirtualId,\n isResolvedControllerVirtualId,\n isResolvedResolverVirtualId,\n resolvedControllerVirtualId,\n resolvedResolverVirtualId,\n} from '../virtual-modules';\nimport { createControllerRegistry } from './controller-registry';\nimport { createResolverRegistry } from './resolver-registry';\n\ninterface DiagnosticReporter {\n error: (message: string) => never;\n warn: (message: string) => void;\n}\n\nexport const nestBridge = (options: NestBridgeOptions): Plugin => {\n const resolvedOptions = resolveNestBridgeOptions(options);\n\n let viteConfig: ResolvedConfig;\n let controllerRegistry: ReturnType<typeof createControllerRegistry>;\n let resolverRegistry: ReturnType<typeof createResolverRegistry>;\n\n const log = (message: string) => {\n if (resolvedOptions.debug) {\n console.log(`[nestbridge] ${message}`);\n }\n };\n\n const reportDiagnostics = (\n diagnostics: readonly NestBridgeDiagnostic[],\n reporter: DiagnosticReporter,\n ) => {\n for (const diagnostic of diagnostics) {\n const message = formatDiagnostic(diagnostic);\n\n if (viteConfig.command === 'build') {\n reporter.error(message);\n } else {\n reporter.warn(message);\n }\n }\n };\n\n const devReporter: DiagnosticReporter = {\n warn: (message) => console.warn(message),\n error: (message) => {\n throw new Error(message);\n },\n };\n\n const runAnalysis = (reporter: DiagnosticReporter) => {\n const { controllers, diagnostics: controllerDiagnostics } = controllerRegistry.refresh();\n const { resolvers, diagnostics: resolverDiagnostics } = resolverRegistry.refresh();\n\n reportDiagnostics([...controllerDiagnostics, ...resolverDiagnostics], reporter);\n writeControllerDeclarations(controllers, viteConfig.root, resolvedOptions.outputDir);\n writeResolverDeclarations(resolvers, viteConfig.root, resolvedOptions.outputDir);\n log(\n `analyzed ${controllers.length} controller(s), ${resolvers.length} resolver(s), ` +\n `${controllerDiagnostics.length + resolverDiagnostics.length} diagnostic(s)`,\n );\n };\n\n return {\n name: 'nestbridge',\n enforce: 'pre',\n\n configResolved(config) {\n viteConfig = config;\n controllerRegistry = createControllerRegistry(resolvedOptions.controllers, config.root);\n resolverRegistry = createResolverRegistry(resolvedOptions.resolvers, config.root);\n },\n\n buildStart() {\n runAnalysis(this);\n },\n\n async resolveId(source, importer, resolveOptions) {\n if (importer === undefined) {\n return null;\n }\n\n const resolved = await this.resolve(source, importer, { ...resolveOptions, skipSelf: true });\n\n if (resolved === null) {\n return null;\n }\n\n const absolutePath = normalizePath(resolved.id);\n\n if (controllerRegistry.has(absolutePath)) {\n return resolvedControllerVirtualId(encodeControllerVirtualId(absolutePath));\n }\n\n if (resolverRegistry.has(absolutePath)) {\n return resolvedResolverVirtualId(encodeResolverVirtualId(absolutePath));\n }\n\n return null;\n },\n\n load(id) {\n if (isResolvedControllerVirtualId(id)) {\n const controller = controllerRegistry.get(decodeControllerVirtualId(id));\n return controller === undefined ? null : generateControllerModule(controller);\n }\n\n if (isResolvedResolverVirtualId(id)) {\n const resolver = resolverRegistry.get(decodeResolverVirtualId(id));\n return resolver === undefined ? null : generateResolverModule(resolver);\n }\n\n return null;\n },\n\n handleHotUpdate(ctx) {\n const normalizedFile = normalizePath(ctx.file);\n const matchedBefore =\n controllerRegistry.has(normalizedFile) || resolverRegistry.has(normalizedFile);\n const matchesNow =\n discoverFiles(resolvedOptions.controllers, viteConfig.root).includes(normalizedFile) ||\n discoverFiles(resolvedOptions.resolvers, viteConfig.root).includes(normalizedFile);\n\n if (!matchedBefore && !matchesNow) {\n return undefined;\n }\n\n runAnalysis(devReporter);\n log(`nestbridge source changed: ${normalizedFile}`);\n\n const virtualId = controllerRegistry.has(normalizedFile)\n ? resolvedControllerVirtualId(encodeControllerVirtualId(normalizedFile))\n : resolvedResolverVirtualId(encodeResolverVirtualId(normalizedFile));\n const moduleNode = ctx.server.moduleGraph.getModuleById(virtualId);\n\n return moduleNode === undefined ? undefined : [moduleNode, ...ctx.modules];\n },\n };\n};\n","import { version } from '../package.json';\n\nexport const VERSION: string = version;\n"],"names":["generateMethod","VIRTUAL_MODULE_PREFIX","RESOLVED_VIRTUAL_MODULE_PREFIX"],"mappings":";;;;;AAIA,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,aAAa,KAAK;AAC/C,EAAE,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;AAC3C,EAAE,IAAI,UAAU,KAAK,MAAM,EAAE;AAC7B,IAAI,OAAO,MAAM;AACjB,EAAE;AACF,EAAE,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,eAAe,CAAC,SAAS,CAAC,KAAK,aAAa,CAAC;AACrF,CAAC;AACD,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK;AACnD,EAAE,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;AAC3C,EAAE,IAAI,UAAU,KA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,OAAA,GAAkB;;"}
|
|
1
|
+
{"version":3,"file":"nestbridge.vite.js","names":[],"sources":["../../core/build/nestbridge.core.js","../src/codegen/merge-named-parameters-expression.ts","../src/codegen/generate-body-expression.ts","../src/codegen/generate-headers-expression.ts","../src/codegen/generate-parameter-list.ts","../src/codegen/generate-path-expression.ts","../src/codegen/generate-query-expression.ts","../src/codegen/generate-controller-module.ts","../src/codegen/generate-graphql-document.ts","../src/codegen/generate-resolver-argument-list.ts","../src/codegen/generate-resolver-module.ts","../src/declarations/mirror-declaration-path.ts","../src/declarations/write-controller-declarations.ts","../src/declarations/write-resolver-declarations.ts","../src/discovery/discover-files.ts","../src/options/nestbridge-options.ts","../src/virtual-modules/controller-virtual-id.ts","../src/virtual-modules/resolver-virtual-id.ts","../src/plugin/controller-registry.ts","../src/plugin/resolver-registry.ts","../src/plugin/nestbridge-vite-plugin.ts","../package.json","../src/version.ts"],"sourcesContent":["import { SyntaxKind, isArrayLiteralExpression, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isClassDeclaration, isDecorator, isExportDeclaration, isFunctionExpression, isIdentifier, isImportDeclaration, isMethodDeclaration, isNamedExports, isNamedImports, isObjectLiteralExpression, isPropertyAssignment, isPropertyDeclaration, isReturnStatement, isStringLiteralLikeNode, isTypeReferenceNode, isUnionTypeNode } from \"typescript/unstable/ast\";\nimport { API } from \"typescript/unstable/sync\";\nimport { existsSync } from \"node:fs\";\nimport { dirname, extname, relative, resolve } from \"node:path\";\n//#region src/analysis/decorator-inspection.ts\nvar getDecorators = (node) => {\n\tconst decorators = node.modifiers?.filter(isDecorator);\n\treturn decorators === void 0 || decorators.length === 0 ? void 0 : decorators;\n};\nvar findDecorator = (node, decoratorName) => {\n\tconst decorators = getDecorators(node);\n\tif (decorators === void 0) return;\n\treturn decorators.find((decorator) => decoratorNameOf(decorator) === decoratorName);\n};\nvar findAnyDecorator = (node, decoratorNames) => {\n\tconst decorators = getDecorators(node);\n\tif (decorators === void 0) return;\n\treturn decorators.find((decorator) => decoratorNames.includes(decoratorNameOf(decorator) ?? \"\"));\n};\nvar decoratorNameOf = (decorator) => {\n\tconst expression = decorator.expression;\n\tif (isCallExpression(expression) && isIdentifier(expression.expression)) return expression.expression.text;\n\tif (isIdentifier(expression)) return expression.text;\n};\nvar readStaticStringArgument = (decorator) => {\n\tconst expression = decorator.expression;\n\tif (!isCallExpression(expression)) return {\n\t\tok: true,\n\t\tvalue: void 0\n\t};\n\tconst [firstArgument] = expression.arguments;\n\tif (firstArgument === void 0) return {\n\t\tok: true,\n\t\tvalue: void 0\n\t};\n\tif (isStringLiteralLikeNode(firstArgument)) return {\n\t\tok: true,\n\t\tvalue: firstArgument.text\n\t};\n\treturn {\n\t\tok: false,\n\t\targumentText: firstArgument.getText()\n\t};\n};\n//#endregion\n//#region src/models/http-method.ts\nvar HTTP_METHOD_DECORATOR_NAMES = {\n\tGet: \"GET\",\n\tPost: \"POST\",\n\tPut: \"PUT\",\n\tPatch: \"PATCH\",\n\tDelete: \"DELETE\"\n};\n//#endregion\n//#region src/analysis/node-location.ts\nvar locationOf = (sourceFile, node) => {\n\tconst { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));\n\treturn {\n\t\tline: line + 1,\n\t\tcolumn: character + 1\n\t};\n};\n//#endregion\n//#region src/analysis/extract-parameter-definition.ts\nvar SUPPORTED_PARAMETER_DECORATORS = [\n\t\"Param\",\n\t\"Query\",\n\t\"Body\",\n\t\"Headers\"\n];\nvar KNOWN_UNSUPPORTED_PARAMETER_DECORATORS = [\n\t\"Req\",\n\t\"Res\",\n\t\"Request\",\n\t\"Response\"\n];\nvar extractParameterDefinition = (parameter, index, context) => {\n\tconst decorator = findAnyDecorator(parameter, [...SUPPORTED_PARAMETER_DECORATORS, ...KNOWN_UNSUPPORTED_PARAMETER_DECORATORS]);\n\tconst location = locationOf(context.sourceFile, parameter);\n\tif (decorator === void 0) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-parameter\",\n\t\t\ttitle: \"Unsupported parameter.\",\n\t\t\tcontrollerName: context.controllerName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: `Parameter \"${parameter.name.getText()}\" must be decorated with one of @Param, @Query, @Body, or @Headers to be transported through a NestBridge HTTP client.`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst decoratorName = decoratorNameOf(decorator);\n\tif (decoratorName !== void 0 && KNOWN_UNSUPPORTED_PARAMETER_DECORATORS.includes(decoratorName)) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-parameter\",\n\t\t\ttitle: \"Unsupported parameter.\",\n\t\t\tcontrollerName: context.controllerName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: `@${decoratorName}() cannot be transported through a NestBridge HTTP client.`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tif (!isIdentifier(parameter.name)) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-parameter\",\n\t\t\ttitle: \"Unsupported parameter.\",\n\t\t\tcontrollerName: context.controllerName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: \"Destructured parameters cannot be transported through a NestBridge HTTP client.\",\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst argument = readStaticStringArgument(decorator);\n\tif (!argument.ok) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-parameter\",\n\t\t\ttitle: \"Unsupported parameter.\",\n\t\t\tcontrollerName: context.controllerName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: `@${decoratorName}() arguments must be statically analyzable string literals.`,\n\t\t\tfound: `@${decoratorName}(${argument.argumentText})`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst base = {\n\t\tindex,\n\t\tparameterName: parameter.name.text\n\t};\n\tif (decoratorName === \"Param\") {\n\t\tif (argument.value === void 0) {\n\t\t\tcontext.diagnostics.push({\n\t\t\t\tcode: \"unsupported-parameter\",\n\t\t\t\ttitle: \"Unsupported parameter.\",\n\t\t\t\tcontrollerName: context.controllerName,\n\t\t\t\tmemberName: context.methodName,\n\t\t\t\tdetail: \"A whole @Param() is not supported; provide a route parameter name such as @Param('id').\",\n\t\t\t\tfilePath: context.filePath,\n\t\t\t\tline: location.line,\n\t\t\t\tcolumn: location.column\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn {\n\t\t\t...base,\n\t\t\tkind: \"param\",\n\t\t\tname: argument.value\n\t\t};\n\t}\n\tif (decoratorName === \"Headers\") {\n\t\tif (argument.value === void 0) {\n\t\t\tcontext.diagnostics.push({\n\t\t\t\tcode: \"unsupported-parameter\",\n\t\t\t\ttitle: \"Unsupported parameter.\",\n\t\t\t\tcontrollerName: context.controllerName,\n\t\t\t\tmemberName: context.methodName,\n\t\t\t\tdetail: \"A whole @Headers() is not supported; provide a header name such as @Headers('x-example').\",\n\t\t\t\tfilePath: context.filePath,\n\t\t\t\tline: location.line,\n\t\t\t\tcolumn: location.column\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn {\n\t\t\t...base,\n\t\t\tkind: \"header\",\n\t\t\tname: argument.value\n\t\t};\n\t}\n\tif (decoratorName === \"Query\") return {\n\t\t...base,\n\t\tkind: \"query\",\n\t\tname: argument.value\n\t};\n\treturn {\n\t\t...base,\n\t\tkind: \"body\",\n\t\tname: argument.value\n\t};\n};\n//#endregion\n//#region src/analysis/graphql-scalar-type.ts\nvar PRIMITIVE_SCALAR_TYPES = {\n\tstring: \"String\",\n\tnumber: \"Float\",\n\tboolean: \"Boolean\"\n};\nvar unwrapPromise = (typeNode) => {\n\tif (isTypeReferenceNode(typeNode) && isIdentifier(typeNode.typeName) && typeNode.typeName.text === \"Promise\" && typeNode.typeArguments?.[0] !== void 0) return unwrapPromise(typeNode.typeArguments[0]);\n\treturn typeNode;\n};\nvar unwrapNullable = (typeNode) => {\n\tif (!isUnionTypeNode(typeNode)) return {\n\t\tinner: typeNode,\n\t\tisNullable: false\n\t};\n\tconst nonNullMembers = typeNode.types.filter((member) => member.kind !== SyntaxKind.NullKeyword && member.kind !== SyntaxKind.UndefinedKeyword);\n\tconst [onlyMember] = nonNullMembers;\n\tif (nonNullMembers.length !== 1 || onlyMember === void 0) return {\n\t\tinner: typeNode,\n\t\tisNullable: nonNullMembers.length !== typeNode.types.length\n\t};\n\treturn {\n\t\tinner: onlyMember,\n\t\tisNullable: true\n\t};\n};\nvar unwrapArrayElement = (typeNode) => {\n\tif (isArrayTypeNode(typeNode)) return typeNode.elementType;\n\tif (isTypeReferenceNode(typeNode) && isIdentifier(typeNode.typeName) && typeNode.typeName.text === \"Array\" && typeNode.typeArguments?.[0] !== void 0) return typeNode.typeArguments[0];\n};\nvar identifierTextOf = (typeNode) => {\n\tif (isTypeReferenceNode(typeNode) && isIdentifier(typeNode.typeName)) return typeNode.typeName.text;\n\tswitch (typeNode.kind) {\n\t\tcase SyntaxKind.StringKeyword: return \"string\";\n\t\tcase SyntaxKind.NumberKeyword: return \"number\";\n\t\tcase SyntaxKind.BooleanKeyword: return \"boolean\";\n\t\tdefault: return;\n\t}\n};\nvar unwrapTypeNode = (typeNode) => {\n\tconst { inner: withoutNullable, isNullable } = unwrapNullable(unwrapPromise(typeNode));\n\tconst arrayElement = unwrapArrayElement(withoutNullable);\n\tconst identifierText = identifierTextOf(arrayElement === void 0 ? withoutNullable : unwrapNullable(arrayElement).inner);\n\tif (identifierText === void 0) return;\n\treturn {\n\t\tidentifierText,\n\t\tisArray: arrayElement !== void 0,\n\t\tisNullable\n\t};\n};\nvar graphqlScalarNameFor = (identifierText) => PRIMITIVE_SCALAR_TYPES[identifierText] ?? identifierText;\nvar graphqlTypeStringFor = (unwrapped, explicitTypeName) => {\n\tconst baseName = explicitTypeName ?? graphqlScalarNameFor(unwrapped.identifierText);\n\tconst wrapped = unwrapped.isArray ? `[${baseName}!]` : baseName;\n\treturn unwrapped.isNullable ? wrapped : `${wrapped}!`;\n};\n//#endregion\n//#region src/analysis/read-response-kind.ts\nvar OBSERVABLE_TYPE_NAME = \"Observable\";\nvar STREAMABLE_FILE_TYPE_NAME = \"StreamableFile\";\nvar readResponseKind = (returnType) => {\n\tif (returnType === void 0) return \"json\";\n\tconst unwrapped = unwrapPromise(returnType);\n\tif (!isTypeReferenceNode(unwrapped) || !isIdentifier(unwrapped.typeName)) return \"json\";\n\tif (unwrapped.typeName.text === OBSERVABLE_TYPE_NAME) return \"observable\";\n\tif (unwrapped.typeName.text === STREAMABLE_FILE_TYPE_NAME) return \"stream\";\n\treturn \"json\";\n};\n//#endregion\n//#region src/analysis/route-path.ts\nvar trimSlashes = (segment) => segment.replace(/^\\/+/, \"\").replace(/\\/+$/, \"\");\nvar joinRoutePath = (controllerPath, methodPath) => {\n\treturn `/${[trimSlashes(controllerPath), trimSlashes(methodPath ?? \"\")].filter((segment) => segment.length > 0).join(\"/\")}`;\n};\n//#endregion\n//#region src/analysis/extract-method-definition.ts\nvar extractMethodDefinition = (method, context) => {\n\tconst decorator = findAnyDecorator(method, Object.keys(HTTP_METHOD_DECORATOR_NAMES));\n\tif (decorator === void 0) return;\n\tconst methodName = method.name.getText();\n\tconst decoratorName = decoratorNameOf(decorator);\n\tconst location = locationOf(context.sourceFile, method);\n\tif (decoratorName === void 0) return;\n\tconst httpMethod = HTTP_METHOD_DECORATOR_NAMES[decoratorName];\n\tif (httpMethod === void 0) return;\n\tconst routeArgument = readStaticStringArgument(decorator);\n\tif (!routeArgument.ok) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-route\",\n\t\t\ttitle: \"Unsupported route.\",\n\t\t\tcontrollerName: context.controllerName,\n\t\t\tmemberName: methodName,\n\t\t\tdetail: \"Route paths must be statically analyzable.\",\n\t\t\tfound: `@${decoratorName}(${routeArgument.argumentText})`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst parameters = method.parameters.map((parameter, index) => extractParameterDefinition(parameter, index, {\n\t\tsourceFile: context.sourceFile,\n\t\tfilePath: context.filePath,\n\t\tcontrollerName: context.controllerName,\n\t\tmethodName,\n\t\tdiagnostics: context.diagnostics\n\t}));\n\tif (parameters.some((parameter) => parameter === void 0)) return;\n\treturn {\n\t\tname: methodName,\n\t\thttpMethod,\n\t\tpath: joinRoutePath(context.controllerPath, routeArgument.value),\n\t\tparameters: parameters.filter((parameter) => parameter !== void 0),\n\t\tresponseKind: readResponseKind(method.type),\n\t\tline: location.line,\n\t\tcolumn: location.column\n\t};\n};\n//#endregion\n//#region src/analysis/extract-controller-definition.ts\nvar extractControllerDefinition = (classDeclaration, sourceFile, filePath, diagnostics) => {\n\tconst controllerName = classDeclaration.name?.text ?? \"(anonymous controller)\";\n\tconst decorator = findDecorator(classDeclaration, \"Controller\");\n\tif (decorator === void 0) return;\n\tconst location = locationOf(sourceFile, classDeclaration);\n\tconst argument = readStaticStringArgument(decorator);\n\tif (!argument.ok) {\n\t\tdiagnostics.push({\n\t\t\tcode: \"unsupported-route\",\n\t\t\ttitle: \"Unsupported route.\",\n\t\t\tcontrollerName,\n\t\t\tmemberName: \"\",\n\t\t\tdetail: \"Controller paths must be statically analyzable.\",\n\t\t\tfound: `@Controller(${argument.argumentText})`,\n\t\t\tfilePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst methods = classDeclaration.members.filter((member) => isMethodDeclaration(member)).map((method) => extractMethodDefinition(method, {\n\t\tsourceFile,\n\t\tfilePath,\n\t\tcontrollerName,\n\t\tcontrollerPath: argument.value ?? \"\",\n\t\tdiagnostics\n\t})).filter((method) => method !== void 0);\n\treturn {\n\t\tname: controllerName,\n\t\tpath: argument.value ?? \"\",\n\t\tsourceFile: filePath,\n\t\tmethods\n\t};\n};\n//#endregion\n//#region src/analysis/find-controller-classes.ts\nvar findControllerClasses = (sourceFile) => {\n\treturn sourceFile.statements.filter((statement) => isClassDeclaration(statement) && findDecorator(statement, \"Controller\") !== void 0);\n};\n//#endregion\n//#region src/analysis/parse-source-file.ts\nvar sharedApi;\nvar parseSourceFile = (filePath) => {\n\tsharedApi ??= new API();\n\tconst sourceFile = sharedApi.updateSnapshot({ openFiles: [filePath] }).getDefaultProjectForFile(filePath)?.program.getSourceFile(filePath);\n\tif (sourceFile === void 0) throw new Error(`Unable to parse source file: ${filePath}`);\n\treturn sourceFile;\n};\n//#endregion\n//#region src/analysis/analyze-controllers.ts\nvar analyzeControllers = (filePaths) => {\n\tconst diagnostics = [];\n\tconst controllers = [];\n\tfor (const filePath of filePaths) {\n\t\tconst sourceFile = parseSourceFile(filePath);\n\t\tfor (const classDeclaration of findControllerClasses(sourceFile)) {\n\t\t\tconst controller = extractControllerDefinition(classDeclaration, sourceFile, filePath, diagnostics);\n\t\t\tif (controller !== void 0) controllers.push(controller);\n\t\t}\n\t}\n\treturn {\n\t\tcontrollers,\n\t\tdiagnostics\n\t};\n};\n//#endregion\n//#region src/models/graphql-operation-kind.ts\nvar GRAPHQL_OPERATION_DECORATOR_NAMES = {\n\tQuery: \"query\",\n\tMutation: \"mutation\"\n};\n//#endregion\n//#region src/analysis/read-type-thunk-expression.ts\nvar readTypeThunkExpression = (thunk) => {\n\tif (!isBlock(thunk.body)) return thunk.body;\n\treturn thunk.body.statements.find(isReturnStatement)?.expression;\n};\n//#endregion\n//#region src/analysis/read-args-type-option.ts\nvar readArgsTypeOption = (decorator) => {\n\tif (!isCallExpression(decorator.expression)) return;\n\tconst optionsArgument = decorator.expression.arguments.find(isObjectLiteralExpression);\n\tif (optionsArgument === void 0) return;\n\tconst typeProperty = optionsArgument.properties.find((property) => isPropertyAssignment(property) && isIdentifier(property.name) && property.name.text === \"type\");\n\tif (typeProperty === void 0) return;\n\tconst thunk = typeProperty.initializer;\n\tif (!isArrowFunction(thunk) && !isFunctionExpression(thunk)) return;\n\tconst returnedExpression = readTypeThunkExpression(thunk);\n\tif (returnedExpression === void 0) return;\n\tif (isArrayLiteralExpression(returnedExpression)) {\n\t\tconst element = returnedExpression.elements[0];\n\t\treturn element !== void 0 && isIdentifier(element) ? {\n\t\t\ttypeName: element.text,\n\t\t\tisArray: true\n\t\t} : void 0;\n\t}\n\treturn isIdentifier(returnedExpression) ? {\n\t\ttypeName: returnedExpression.text,\n\t\tisArray: false\n\t} : void 0;\n};\n//#endregion\n//#region src/analysis/extract-resolver-argument-definition.ts\nvar extractResolverArgumentDefinition = (parameter, index, context) => {\n\tconst decorator = findAnyDecorator(parameter, [\"Args\"]);\n\tconst location = locationOf(context.sourceFile, parameter);\n\tif (decorator === void 0) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-argument\",\n\t\t\ttitle: \"Unsupported argument.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: `Parameter \"${parameter.name.getText()}\" must be decorated with @Args to be transported through a NestBridge GraphQL client.`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tif (!isIdentifier(parameter.name)) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-argument\",\n\t\t\ttitle: \"Unsupported argument.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: \"Destructured parameters cannot be transported through a NestBridge GraphQL client.\",\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst nameArgument = readStaticStringArgument(decorator);\n\tif (!nameArgument.ok) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-argument\",\n\t\t\ttitle: \"Unsupported argument.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: \"@Args() name must be a statically analyzable string literal.\",\n\t\t\tfound: `@Args(${nameArgument.argumentText})`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tif (nameArgument.value === void 0) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-argument\",\n\t\t\ttitle: \"Unsupported argument.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: \"A whole @Args() is not supported; provide an argument name such as @Args('id').\",\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tif (parameter.type === void 0) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-argument\",\n\t\t\ttitle: \"Unsupported argument.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: `@Args() parameter \"${parameter.name.text}\" needs an explicit type annotation.`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst unwrapped = unwrapTypeNode(parameter.type);\n\tif (unwrapped === void 0) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-argument\",\n\t\t\ttitle: \"Unsupported argument.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: `@Args() parameter \"${parameter.name.text}\" has a type NestBridge cannot statically resolve to a GraphQL type.`,\n\t\t\tfound: parameter.type.getText(),\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst explicitType = readArgsTypeOption(decorator);\n\treturn {\n\t\tindex,\n\t\tparameterName: parameter.name.text,\n\t\tname: nameArgument.value,\n\t\tgraphqlType: graphqlTypeStringFor(unwrapped, explicitType?.typeName)\n\t};\n};\n//#endregion\n//#region src/analysis/resolve-type-declaration.ts\nvar parsedFilesByPath = /* @__PURE__ */ new Map();\nvar parseFile = (filePath) => {\n\tconst cached = parsedFilesByPath.get(filePath);\n\tif (cached !== void 0) return cached;\n\tconst sourceFile = parseSourceFile(filePath);\n\tparsedFilesByPath.set(filePath, sourceFile);\n\treturn sourceFile;\n};\nvar resolveModuleFile = (fromFilePath, moduleSpecifierText) => {\n\tif (!moduleSpecifierText.startsWith(\".\")) return;\n\tconst base = resolve(dirname(fromFilePath), moduleSpecifierText);\n\treturn [\n\t\t`${base}.ts`,\n\t\t`${base}.tsx`,\n\t\tresolve(base, \"index.ts\")\n\t].find((candidate) => existsSync(candidate));\n};\nvar findExportedDeclaration = (sourceFile, name) => sourceFile.statements.find((statement) => isClassDeclaration(statement) && statement.name?.text === name);\nvar findImportSource = (sourceFile, localName) => {\n\tfor (const statement of sourceFile.statements) {\n\t\tif (!isImportDeclaration(statement) || !isStringLiteralLikeNode(statement.moduleSpecifier)) continue;\n\t\tconst namedBindings = statement.importClause?.namedBindings;\n\t\tif (namedBindings === void 0 || !isNamedImports(namedBindings)) continue;\n\t\tconst element = namedBindings.elements.find((candidate) => candidate.name.text === localName);\n\t\tif (element !== void 0) return {\n\t\t\tmoduleSpecifierText: statement.moduleSpecifier.text,\n\t\t\timportedName: element.propertyName?.text ?? element.name.text\n\t\t};\n\t}\n};\nvar findReExportSource = (sourceFile, name) => {\n\tfor (const statement of sourceFile.statements) {\n\t\tif (!isExportDeclaration(statement) || statement.moduleSpecifier === void 0 || !isStringLiteralLikeNode(statement.moduleSpecifier)) continue;\n\t\tif (statement.exportClause === void 0) return statement.moduleSpecifier.text;\n\t\tif (isNamedExports(statement.exportClause) && statement.exportClause.elements.some((element) => (element.propertyName?.text ?? element.name.text) === name)) return statement.moduleSpecifier.text;\n\t}\n};\nvar resolveClassDeclaration = (name, fromSourceFile, fromFilePath, visited = /* @__PURE__ */ new Set()) => {\n\tif (visited.has(fromFilePath)) return;\n\tvisited.add(fromFilePath);\n\tconst direct = findExportedDeclaration(fromSourceFile, name);\n\tif (direct !== void 0) return {\n\t\tclassDeclaration: direct,\n\t\tsourceFile: fromSourceFile,\n\t\tfilePath: fromFilePath\n\t};\n\tconst importSource = findImportSource(fromSourceFile, name);\n\tif (importSource !== void 0) {\n\t\tconst resolvedPath = resolveModuleFile(fromFilePath, importSource.moduleSpecifierText);\n\t\tif (resolvedPath !== void 0) {\n\t\t\tconst nextSourceFile = parseFile(resolvedPath);\n\t\t\tconst result = resolveClassDeclaration(importSource.importedName, nextSourceFile, resolvedPath, visited);\n\t\t\tif (result !== void 0) return result;\n\t\t}\n\t}\n\tconst reExportModuleSpecifierText = findReExportSource(fromSourceFile, name);\n\tif (reExportModuleSpecifierText !== void 0) {\n\t\tconst resolvedPath = resolveModuleFile(fromFilePath, reExportModuleSpecifierText);\n\t\tif (resolvedPath !== void 0) return resolveClassDeclaration(name, parseFile(resolvedPath), resolvedPath, visited);\n\t}\n};\n//#endregion\n//#region src/analysis/extract-selection-fields.ts\nvar PRIMITIVE_SCALAR_NAMES$1 = /* @__PURE__ */ new Set([\n\t\"string\",\n\t\"number\",\n\t\"boolean\"\n]);\nvar extractSelectionFields = (classDeclaration, sourceFile, filePath, context) => {\n\tconst typeName = classDeclaration.name?.text ?? \"(anonymous type)\";\n\tconst location = locationOf(sourceFile, classDeclaration);\n\tif (context.visitedTypeNames.has(typeName)) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"circular-type\",\n\t\t\ttitle: \"Circular type.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: context.methodName,\n\t\t\tdetail: `Type \"${typeName}\" references itself, directly or indirectly. NestBridge cannot build a finite GraphQL selection set for it.`,\n\t\t\tfilePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst nextVisited = new Set(context.visitedTypeNames).add(typeName);\n\tconst properties = classDeclaration.members.filter((member) => isPropertyDeclaration(member) && findDecorator(member, \"Field\") !== void 0);\n\tconst fields = [];\n\tfor (const property of properties) {\n\t\tif (!isIdentifier(property.name)) continue;\n\t\tconst fieldName = property.name.text;\n\t\tconst fieldLocation = locationOf(sourceFile, property);\n\t\tif (property.type === void 0) {\n\t\t\tcontext.diagnostics.push({\n\t\t\t\tcode: \"unsupported-return-type\",\n\t\t\t\ttitle: \"Unsupported field type.\",\n\t\t\t\tcontrollerName: context.resolverName,\n\t\t\t\tmemberName: context.methodName,\n\t\t\t\tdetail: `Field \"${fieldName}\" on \"${typeName}\" needs an explicit type annotation.`,\n\t\t\t\tfilePath,\n\t\t\t\tline: fieldLocation.line,\n\t\t\t\tcolumn: fieldLocation.column\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst unwrapped = unwrapTypeNode(property.type);\n\t\tif (unwrapped === void 0) {\n\t\t\tcontext.diagnostics.push({\n\t\t\t\tcode: \"unsupported-return-type\",\n\t\t\t\ttitle: \"Unsupported field type.\",\n\t\t\t\tcontrollerName: context.resolverName,\n\t\t\t\tmemberName: context.methodName,\n\t\t\t\tdetail: `Field \"${fieldName}\" on \"${typeName}\" has a type NestBridge cannot statically resolve.`,\n\t\t\t\tfound: property.type.getText(),\n\t\t\t\tfilePath,\n\t\t\t\tline: fieldLocation.line,\n\t\t\t\tcolumn: fieldLocation.column\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tif (PRIMITIVE_SCALAR_NAMES$1.has(unwrapped.identifierText)) {\n\t\t\tfields.push({ name: fieldName });\n\t\t\tcontinue;\n\t\t}\n\t\tconst resolved = resolveClassDeclaration(unwrapped.identifierText, sourceFile, filePath);\n\t\tif (resolved === void 0) {\n\t\t\tfields.push({ name: fieldName });\n\t\t\tcontinue;\n\t\t}\n\t\tif (findDecorator(resolved.classDeclaration, \"ObjectType\") === void 0) {\n\t\t\tcontext.diagnostics.push({\n\t\t\t\tcode: \"unsupported-return-type\",\n\t\t\t\ttitle: \"Unsupported field type.\",\n\t\t\t\tcontrollerName: context.resolverName,\n\t\t\t\tmemberName: context.methodName,\n\t\t\t\tdetail: `Field \"${fieldName}\" on \"${typeName}\" resolves to class \"${unwrapped.identifierText}\", which is not decorated with @ObjectType(). NestBridge cannot build a GraphQL selection set for it.`,\n\t\t\t\tfilePath,\n\t\t\t\tline: fieldLocation.line,\n\t\t\t\tcolumn: fieldLocation.column\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst children = extractSelectionFields(resolved.classDeclaration, resolved.sourceFile, resolved.filePath, {\n\t\t\t...context,\n\t\t\tvisitedTypeNames: nextVisited\n\t\t});\n\t\tif (children === void 0) return;\n\t\tfields.push({\n\t\t\tname: fieldName,\n\t\t\tchildren\n\t\t});\n\t}\n\treturn fields;\n};\n//#endregion\n//#region src/analysis/read-graphql-operation-name.ts\nvar readNameFromOptions = (optionsArgument) => {\n\tconst nameProperty = optionsArgument.properties.find((property) => isPropertyAssignment(property) && isIdentifier(property.name) && property.name.text === \"name\");\n\tif (nameProperty === void 0 || !isStringLiteralLikeNode(nameProperty.initializer)) return;\n\treturn nameProperty.initializer.text;\n};\nvar readGraphqlOperationName = (decorator) => {\n\tconst expression = decorator.expression;\n\tif (!isCallExpression(expression)) return {\n\t\tok: true,\n\t\tvalue: void 0\n\t};\n\tlet value;\n\tfor (const argument of expression.arguments) {\n\t\tif (isArrowFunction(argument) || isFunctionExpression(argument)) continue;\n\t\tif (isStringLiteralLikeNode(argument)) {\n\t\t\tvalue = argument.text;\n\t\t\tcontinue;\n\t\t}\n\t\tif (isObjectLiteralExpression(argument)) {\n\t\t\tvalue = readNameFromOptions(argument) ?? value;\n\t\t\tcontinue;\n\t\t}\n\t\treturn {\n\t\t\tok: false,\n\t\t\targumentText: argument.getText()\n\t\t};\n\t}\n\treturn {\n\t\tok: true,\n\t\tvalue\n\t};\n};\n//#endregion\n//#region src/analysis/read-graphql-return-type-option.ts\nvar readGraphqlReturnTypeOption = (decorator) => {\n\tif (!isCallExpression(decorator.expression)) return;\n\tconst thunk = decorator.expression.arguments.find((argument) => isArrowFunction(argument) || isFunctionExpression(argument));\n\tif (thunk === void 0) return;\n\tconst returnedExpression = readTypeThunkExpression(thunk);\n\tif (returnedExpression === void 0) return;\n\tif (isArrayLiteralExpression(returnedExpression)) {\n\t\tconst element = returnedExpression.elements[0];\n\t\treturn element !== void 0 && isIdentifier(element) ? element.text : void 0;\n\t}\n\treturn isIdentifier(returnedExpression) ? returnedExpression.text : void 0;\n};\n//#endregion\n//#region src/analysis/extract-resolver-method-definition.ts\nvar PRIMITIVE_SCALAR_NAMES = /* @__PURE__ */ new Set([\n\t\"string\",\n\t\"number\",\n\t\"boolean\"\n]);\nvar extractResolverMethodDefinition = (method, context) => {\n\tconst decorator = findAnyDecorator(method, Object.keys(GRAPHQL_OPERATION_DECORATOR_NAMES));\n\tif (decorator === void 0) return;\n\tconst methodName = method.name.getText();\n\tconst decoratorName = decoratorNameOf(decorator);\n\tconst location = locationOf(context.sourceFile, method);\n\tif (decoratorName === void 0) return;\n\tconst operationKind = GRAPHQL_OPERATION_DECORATOR_NAMES[decoratorName];\n\tif (operationKind === void 0) return;\n\tconst nameArgument = readGraphqlOperationName(decorator);\n\tif (!nameArgument.ok) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-route\",\n\t\t\ttitle: \"Unsupported operation name.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: methodName,\n\t\t\tdetail: \"GraphQL operation names must be statically analyzable string literals.\",\n\t\t\tfound: `@${decoratorName}(${nameArgument.argumentText})`,\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tconst decoratorReturnType = readGraphqlReturnTypeOption(decorator);\n\tconst identifierText = decoratorReturnType ?? (method.type === void 0 ? void 0 : unwrapTypeNode(method.type)?.identifierText);\n\tif (identifierText === void 0) {\n\t\tcontext.diagnostics.push({\n\t\t\tcode: \"unsupported-return-type\",\n\t\t\ttitle: \"Unsupported return type.\",\n\t\t\tcontrollerName: context.resolverName,\n\t\t\tmemberName: methodName,\n\t\t\tdetail: \"GraphQL resolver methods need a type thunk on @Query()/@Mutation() (e.g. \\\"() => UserType\\\") or an explicit return type annotation so NestBridge can build a selection set.\",\n\t\t\tfilePath: context.filePath,\n\t\t\tline: location.line,\n\t\t\tcolumn: location.column\n\t\t});\n\t\treturn;\n\t}\n\tlet selection = [];\n\tif (!PRIMITIVE_SCALAR_NAMES.has(identifierText.toLowerCase())) {\n\t\tconst resolved = resolveClassDeclaration(identifierText, context.sourceFile, context.filePath);\n\t\tif (resolved === void 0 && decoratorReturnType === void 0) {\n\t\t\tcontext.diagnostics.push({\n\t\t\t\tcode: \"unsupported-return-type\",\n\t\t\t\ttitle: \"Unsupported return type.\",\n\t\t\t\tcontrollerName: context.resolverName,\n\t\t\t\tmemberName: methodName,\n\t\t\t\tdetail: `NestBridge could not locate the declaration of type \"${identifierText}\".`,\n\t\t\t\tfilePath: context.filePath,\n\t\t\t\tline: location.line,\n\t\t\t\tcolumn: location.column\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tif (resolved !== void 0) {\n\t\t\tconst fields = extractSelectionFields(resolved.classDeclaration, resolved.sourceFile, resolved.filePath, {\n\t\t\t\tresolverName: context.resolverName,\n\t\t\t\tmethodName,\n\t\t\t\tdiagnostics: context.diagnostics,\n\t\t\t\tvisitedTypeNames: /* @__PURE__ */ new Set()\n\t\t\t});\n\t\t\tif (fields === void 0) return;\n\t\t\tselection = fields;\n\t\t}\n\t}\n\tconst args = method.parameters.map((parameter, index) => extractResolverArgumentDefinition(parameter, index, {\n\t\tsourceFile: context.sourceFile,\n\t\tfilePath: context.filePath,\n\t\tresolverName: context.resolverName,\n\t\tmethodName,\n\t\tdiagnostics: context.diagnostics\n\t}));\n\tif (args.some((argument) => argument === void 0)) return;\n\treturn {\n\t\tname: methodName,\n\t\toperationKind,\n\t\toperationName: nameArgument.value ?? methodName,\n\t\targuments: args.filter((argument) => argument !== void 0),\n\t\tselection,\n\t\tline: location.line,\n\t\tcolumn: location.column\n\t};\n};\n//#endregion\n//#region src/analysis/extract-resolver-definition.ts\nvar extractResolverDefinition = (classDeclaration, sourceFile, filePath, diagnostics) => {\n\tconst resolverName = classDeclaration.name?.text ?? \"(anonymous resolver)\";\n\treturn {\n\t\tname: resolverName,\n\t\tsourceFile: filePath,\n\t\tmethods: classDeclaration.members.filter((member) => isMethodDeclaration(member)).map((method) => extractResolverMethodDefinition(method, {\n\t\t\tsourceFile,\n\t\t\tfilePath,\n\t\t\tresolverName,\n\t\t\tdiagnostics\n\t\t})).filter((method) => method !== void 0)\n\t};\n};\n//#endregion\n//#region src/analysis/find-resolver-classes.ts\nvar findResolverClasses = (sourceFile) => {\n\treturn sourceFile.statements.filter((statement) => isClassDeclaration(statement) && findDecorator(statement, \"Resolver\") !== void 0);\n};\n//#endregion\n//#region src/analysis/analyze-resolvers.ts\nvar analyzeResolvers = (filePaths) => {\n\tconst diagnostics = [];\n\tconst resolvers = [];\n\tfor (const filePath of filePaths) {\n\t\tconst sourceFile = parseSourceFile(filePath);\n\t\tfor (const classDeclaration of findResolverClasses(sourceFile)) {\n\t\t\tconst resolver = extractResolverDefinition(classDeclaration, sourceFile, filePath, diagnostics);\n\t\t\tif (resolver !== void 0) resolvers.push(resolver);\n\t\t}\n\t}\n\treturn {\n\t\tresolvers,\n\t\tdiagnostics\n\t};\n};\n//#endregion\n//#region src/declarations/generate-controller-declaration.ts\nvar REMOTE_RESULT_HELPERS = {\n\tjson: \"RemoteResult\",\n\tobservable: \"RemoteObservableResult\",\n\tstream: \"RemoteStreamResult\"\n};\nvar toPosixPath = (filePath) => filePath.replace(/\\\\/g, \"/\");\nvar importSpecifierFor = (sourceFile, outputFilePath) => {\n\tif (!sourceFile.startsWith(\".\") && !/^[A-Za-z]:[\\\\/]/.test(sourceFile) && !sourceFile.startsWith(\"/\")) return sourceFile;\n\tconst relativePath = toPosixPath(relative(dirname(outputFilePath), sourceFile));\n\treturn relativePath.startsWith(\".\") ? relativePath : `./${relativePath}`;\n};\nvar stripExtension = (filePath) => {\n\tconst extension = extname(filePath);\n\treturn extension.length > 0 ? filePath.slice(0, -extension.length) : filePath;\n};\nvar generateControllerDeclaration = (controller, outputFilePath) => {\n\tconst sourceFileSpecifier = importSpecifierFor(controller.sourceFile, outputFilePath);\n\tconst importSpecifier = stripExtension(sourceFileSpecifier);\n\tconst serverAlias = `__Server${controller.name}`;\n\tconst classBody = [\n\t\t\" constructor();\",\n\t\t\"\",\n\t\t...controller.methods.map((method) => {\n\t\t\tconst helperName = REMOTE_RESULT_HELPERS[method.responseKind ?? \"json\"];\n\t\t\treturn ` ${method.name}(...args: Parameters<${serverAlias}['${method.name}']>): ${helperName}<${serverAlias}['${method.name}']>;`;\n\t\t})\n\t].join(\"\\n\");\n\tconst usedHelperNames = new Set(controller.methods.map((method) => REMOTE_RESULT_HELPERS[method.responseKind ?? \"json\"]));\n\tconst helperImports = Array.from(usedHelperNames.size > 0 ? usedHelperNames : [\"RemoteResult\"]).sort();\n\treturn [\n\t\t`import type { ${controller.name} as ${serverAlias} } from '${importSpecifier}';`,\n\t\t`import type { ${helperImports.join(\", \")} } from 'nestbridge';`,\n\t\t\"\",\n\t\t\"/**\",\n\t\t\" * Generated by NestBridge — client-facing methods only.\",\n\t\t` * @see {@link ${sourceFileSpecifier}} for the real controller implementation.`,\n\t\t\" */\",\n\t\t`export declare class ${controller.name} {`,\n\t\tclassBody,\n\t\t\"}\",\n\t\t\"\"\n\t].join(\"\\n\");\n};\n//#endregion\n//#region src/diagnostics/format-diagnostic.ts\nvar formatDiagnostic = (diagnostic) => {\n\tconst subject = diagnostic.memberName.length > 0 ? `${diagnostic.controllerName}.${diagnostic.memberName}` : diagnostic.controllerName;\n\tconst lines = [\n\t\t`[NestBridge] ${diagnostic.title}`,\n\t\t\"\",\n\t\tsubject,\n\t\t\"\",\n\t\tdiagnostic.detail\n\t];\n\tif (diagnostic.found !== void 0) lines.push(\"\", \"Found:\", diagnostic.found);\n\tif (diagnostic.expected !== void 0) lines.push(\"\", \"Expected:\", diagnostic.expected);\n\tlines.push(\"\", `${diagnostic.filePath}:${diagnostic.line}:${diagnostic.column}`);\n\treturn lines.join(\"\\n\");\n};\n//#endregion\n//#region src/diagnostics/nestbridge-diagnostic-error.ts\nvar NestBridgeDiagnosticError = class extends Error {\n\tdiagnostic;\n\tconstructor(diagnostic) {\n\t\tsuper(formatDiagnostic(diagnostic));\n\t\tthis.name = \"NestBridgeDiagnosticError\";\n\t\tthis.diagnostic = diagnostic;\n\t}\n};\n//#endregion\n//#region src/version.ts\nvar VERSION = \"1.1.1\";\n//#endregion\nexport { NestBridgeDiagnosticError, VERSION, analyzeControllers, analyzeResolvers, formatDiagnostic, generateControllerDeclaration };\n\n//# sourceMappingURL=nestbridge.core.js.map","interface NamedParameterLike {\n name?: string;\n parameterName: string;\n}\n\nexport const mergeNamedParametersExpression = (parameters: readonly NamedParameterLike[]) => {\n if (parameters.length === 0) {\n return undefined;\n }\n\n const whole = parameters.find((parameter) => parameter.name === undefined);\n const named = parameters.filter((parameter) => parameter.name !== undefined);\n const namedEntries = named.map(\n (parameter) => `${JSON.stringify(parameter.name)}: ${parameter.parameterName}`,\n );\n\n if (whole === undefined) {\n return `{ ${namedEntries.join(', ')} }`;\n }\n\n if (named.length === 0) {\n return whole.parameterName;\n }\n\n return `{ ...${whole.parameterName}, ${namedEntries.join(', ')} }`;\n};\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\nimport { mergeNamedParametersExpression } from './merge-named-parameters-expression';\n\nexport const generateBodyExpression = (parameters: readonly ControllerParameterDefinition[]) =>\n mergeNamedParametersExpression(parameters.filter((parameter) => parameter.kind === 'body'));\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\n\nexport const generateHeadersExpression = (parameters: readonly ControllerParameterDefinition[]) => {\n const headerParameters = parameters.filter((parameter) => parameter.kind === 'header');\n\n if (headerParameters.length === 0) {\n return undefined;\n }\n\n const entries = headerParameters.map(\n (parameter) => `${JSON.stringify(parameter.name)}: ${parameter.parameterName}`,\n );\n\n return `{ ${entries.join(', ')} }`;\n};\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\n\nexport const generateParameterList = (parameters: readonly ControllerParameterDefinition[]) =>\n [...parameters]\n .sort((a, b) => a.index - b.index)\n .map((parameter) => parameter.parameterName)\n .join(', ');\n","import type { ControllerMethodDefinition } from '@nestbridge/core';\n\nconst PARAM_TOKEN_PATTERN = /:([A-Za-z0-9_]+)/;\n\nexport const generatePathExpression = (method: ControllerMethodDefinition) => {\n const paramParameters = method.parameters.filter((parameter) => parameter.kind === 'param');\n const parts = method.path.split(PARAM_TOKEN_PATTERN);\n const expressionParts: string[] = [];\n\n parts.forEach((part, index) => {\n const isParamToken = index % 2 === 1;\n\n if (!isParamToken) {\n if (part.length > 0) {\n expressionParts.push(JSON.stringify(part));\n }\n return;\n }\n\n const match = paramParameters.find((parameter) => parameter.name === part);\n expressionParts.push(\n match !== undefined\n ? `encodeURIComponent(${match.parameterName})`\n : JSON.stringify(`:${part}`),\n );\n });\n\n return expressionParts.length > 0 ? expressionParts.join(' + ') : \"''\";\n};\n","import type { ControllerParameterDefinition } from '@nestbridge/core';\nimport { mergeNamedParametersExpression } from './merge-named-parameters-expression';\n\nexport const generateQueryExpression = (parameters: readonly ControllerParameterDefinition[]) =>\n mergeNamedParametersExpression(parameters.filter((parameter) => parameter.kind === 'query'));\n","import type { ControllerDefinition, ControllerMethodDefinition } from '@nestbridge/core';\nimport { generateBodyExpression } from './generate-body-expression';\nimport { generateHeadersExpression } from './generate-headers-expression';\nimport { generateParameterList } from './generate-parameter-list';\nimport { generatePathExpression } from './generate-path-expression';\nimport { generateQueryExpression } from './generate-query-expression';\n\nconst generateMethod = (method: ControllerMethodDefinition) => {\n const requestProperties = [\n `method: ${JSON.stringify(method.httpMethod)}`,\n `path: ${generatePathExpression(method)}`,\n ];\n\n const queryExpression = generateQueryExpression(method.parameters);\n if (queryExpression !== undefined) {\n requestProperties.push(`query: ${queryExpression}`);\n }\n\n const bodyExpression = generateBodyExpression(method.parameters);\n if (bodyExpression !== undefined) {\n requestProperties.push(`body: ${bodyExpression}`);\n }\n\n const headersExpression = generateHeadersExpression(method.parameters);\n if (headersExpression !== undefined) {\n requestProperties.push(`headers: ${headersExpression}`);\n }\n\n if (method.responseKind === 'stream') {\n requestProperties.push(`responseType: \"blob\"`);\n }\n\n return [\n ` ${method.name}(${generateParameterList(method.parameters)}) {`,\n ' return request({',\n ...requestProperties.map((property) => ` ${property},`),\n ' });',\n ' }',\n ].join('\\n');\n};\n\nexport const generateControllerModule = (controller: ControllerDefinition) => {\n const methods = controller.methods.map(generateMethod).join('\\n\\n');\n\n return [\n \"import { request } from 'nestbridge';\",\n '',\n `export class ${controller.name} {`,\n ' constructor() {}',\n '',\n methods,\n '}',\n '',\n ].join('\\n');\n};\n","import type { ResolverMethodDefinition, SelectionField } from '@nestbridge/core';\n\nconst capitalize = (value: string) => `${value.charAt(0).toUpperCase()}${value.slice(1)}`;\n\nconst renderSelectionSet = (fields: readonly SelectionField[]): string => {\n const rendered = fields.map((field) =>\n field.children === undefined\n ? field.name\n : `${field.name} ${renderSelectionSet(field.children)}`,\n );\n\n return `{ ${rendered.join(' ')} }`;\n};\n\nexport const generateGraphqlDocument = (method: ResolverMethodDefinition) => {\n const variableDeclarations = method.arguments\n .map((argument) => `$${argument.name}: ${argument.graphqlType}`)\n .join(', ');\n const fieldArguments = method.arguments\n .map((argument) => `${argument.name}: $${argument.name}`)\n .join(', ');\n\n const variablesClause = variableDeclarations.length > 0 ? `(${variableDeclarations})` : '';\n const fieldArgumentsClause = fieldArguments.length > 0 ? `(${fieldArguments})` : '';\n const fieldSelection =\n method.selection.length > 0 ? ` ${renderSelectionSet(method.selection)}` : '';\n\n return `${method.operationKind} ${capitalize(method.name)}${variablesClause} { ${method.operationName}${fieldArgumentsClause}${fieldSelection} }`;\n};\n","import type { ResolverArgumentDefinition } from '@nestbridge/core';\n\nexport const generateResolverArgumentList = (\n resolverArguments: readonly ResolverArgumentDefinition[],\n) =>\n [...resolverArguments]\n .sort((a, b) => a.index - b.index)\n .map((argument) => argument.parameterName)\n .join(', ');\n","import type {\n ResolverArgumentDefinition,\n ResolverDefinition,\n ResolverMethodDefinition,\n} from '@nestbridge/core';\nimport { generateGraphqlDocument } from './generate-graphql-document';\nimport { generateResolverArgumentList } from './generate-resolver-argument-list';\n\nconst generateVariablesExpression = (resolverArguments: readonly ResolverArgumentDefinition[]) => {\n if (resolverArguments.length === 0) {\n return undefined;\n }\n\n const entries = resolverArguments.map(\n (argument) => `${JSON.stringify(argument.name)}: ${argument.parameterName}`,\n );\n\n return `{ ${entries.join(', ')} }`;\n};\n\nconst generateMethod = (method: ResolverMethodDefinition) => {\n const requestProperties = [`document: ${JSON.stringify(generateGraphqlDocument(method))}`];\n\n const variablesExpression = generateVariablesExpression(method.arguments);\n if (variablesExpression !== undefined) {\n requestProperties.push(`variables: ${variablesExpression}`);\n }\n\n return [\n ` async ${method.name}(${generateResolverArgumentList(method.arguments)}) {`,\n ' const result = await graphqlRequest({',\n ...requestProperties.map((property) => ` ${property},`),\n ' });',\n '',\n ` return result.${method.operationName};`,\n ' }',\n ].join('\\n');\n};\n\nexport const generateResolverModule = (resolver: ResolverDefinition) => {\n const methods = resolver.methods.map(generateMethod).join('\\n\\n');\n\n return [\n \"import { graphqlRequest } from 'nestbridge';\",\n '',\n `export class ${resolver.name} {`,\n ' constructor() {}',\n '',\n methods,\n '}',\n '',\n ].join('\\n');\n};\n","import { join, relative } from 'node:path';\n\nconst stripLeadingParentSegments = (relativePath: string) => {\n const segments = relativePath.split(/[\\\\/]/);\n const firstOwnedIndex = segments.findIndex((segment) => segment !== '..');\n return segments.slice(firstOwnedIndex === -1 ? segments.length : firstOwnedIndex).join('/');\n};\n\nexport const mirroredDeclarationPath = (\n root: string,\n outputDir: string,\n controllerFilePath: string,\n) => {\n const relativePath = relative(root, controllerFilePath);\n const mirroredPath = stripLeadingParentSegments(relativePath).replace(/\\.ts$/, '.d.ts');\n return join(root, outputDir, mirroredPath);\n};\n","import { mkdirSync, writeFileSync } from 'node:fs';\nimport { dirname } from 'node:path';\nimport { type ControllerDefinition, generateControllerDeclaration } from '@nestbridge/core';\nimport { mirroredDeclarationPath } from './mirror-declaration-path';\n\nexport const writeControllerDeclarations = (\n controllers: readonly ControllerDefinition[],\n root: string,\n outputDir: string,\n) => {\n for (const controller of controllers) {\n const outputFilePath = mirroredDeclarationPath(root, outputDir, controller.sourceFile);\n mkdirSync(dirname(outputFilePath), { recursive: true });\n writeFileSync(\n outputFilePath,\n generateControllerDeclaration(controller, outputFilePath),\n 'utf-8',\n );\n }\n};\n","import { mkdirSync, writeFileSync } from 'node:fs';\nimport { dirname } from 'node:path';\nimport { generateControllerDeclaration, type ResolverDefinition } from '@nestbridge/core';\nimport { mirroredDeclarationPath } from './mirror-declaration-path';\n\nexport const writeResolverDeclarations = (\n resolvers: readonly ResolverDefinition[],\n root: string,\n outputDir: string,\n) => {\n for (const resolver of resolvers) {\n const outputFilePath = mirroredDeclarationPath(root, outputDir, resolver.sourceFile);\n mkdirSync(dirname(outputFilePath), { recursive: true });\n writeFileSync(outputFilePath, generateControllerDeclaration(resolver, outputFilePath), 'utf-8');\n }\n};\n","import { globSync } from 'node:fs';\nimport { resolve } from 'node:path';\n\nexport const discoverFiles = (patterns: readonly string[], root: string) => {\n const matches = globSync([...patterns], { cwd: root });\n return [...new Set(matches.map((match) => resolve(root, match)))].sort();\n};\n","export interface NestBridgeOptions {\n controllers: string | string[];\n resolvers?: string | string[];\n baseURL?: string;\n debug?: boolean;\n outputDir?: string;\n}\n\nexport interface ResolvedNestBridgeOptions {\n controllers: string[];\n resolvers: string[];\n baseURL: string | undefined;\n debug: boolean;\n outputDir: string;\n}\n\nexport const resolveNestBridgeOptions = (\n options: NestBridgeOptions,\n): ResolvedNestBridgeOptions => ({\n controllers: Array.isArray(options.controllers) ? options.controllers : [options.controllers],\n resolvers:\n options.resolvers === undefined\n ? []\n : Array.isArray(options.resolvers)\n ? options.resolvers\n : [options.resolvers],\n baseURL: options.baseURL,\n debug: options.debug ?? false,\n outputDir: options.outputDir ?? '.nestbridge',\n});\n","const VIRTUAL_MODULE_PREFIX = 'virtual:nestbridge/controller/';\nconst RESOLVED_VIRTUAL_MODULE_PREFIX = `\\0${VIRTUAL_MODULE_PREFIX}`;\n\nexport const encodeControllerVirtualId = (absoluteControllerPath: string) =>\n `${VIRTUAL_MODULE_PREFIX}${encodeURIComponent(absoluteControllerPath)}`;\n\nexport const resolvedControllerVirtualId = (virtualId: string) => `\\0${virtualId}`;\n\nexport const isResolvedControllerVirtualId = (id: string) =>\n id.startsWith(RESOLVED_VIRTUAL_MODULE_PREFIX);\n\nexport const decodeControllerVirtualId = (resolvedId: string) =>\n decodeURIComponent(resolvedId.slice(RESOLVED_VIRTUAL_MODULE_PREFIX.length));\n","const VIRTUAL_MODULE_PREFIX = 'virtual:nestbridge/resolver/';\nconst RESOLVED_VIRTUAL_MODULE_PREFIX = `\\0${VIRTUAL_MODULE_PREFIX}`;\n\nexport const encodeResolverVirtualId = (absoluteResolverPath: string) =>\n `${VIRTUAL_MODULE_PREFIX}${encodeURIComponent(absoluteResolverPath)}`;\n\nexport const resolvedResolverVirtualId = (virtualId: string) => `\\0${virtualId}`;\n\nexport const isResolvedResolverVirtualId = (id: string) =>\n id.startsWith(RESOLVED_VIRTUAL_MODULE_PREFIX);\n\nexport const decodeResolverVirtualId = (resolvedId: string) =>\n decodeURIComponent(resolvedId.slice(RESOLVED_VIRTUAL_MODULE_PREFIX.length));\n","import {\n analyzeControllers,\n type ControllerDefinition,\n type NestBridgeDiagnostic,\n} from '@nestbridge/core';\nimport { normalizePath } from 'vite';\nimport { discoverFiles } from '../discovery';\n\nexport interface ControllerRegistryRefreshResult {\n controllers: ControllerDefinition[];\n diagnostics: NestBridgeDiagnostic[];\n}\n\nexport interface ControllerRegistry {\n refresh: () => ControllerRegistryRefreshResult;\n get: (filePath: string) => ControllerDefinition | undefined;\n has: (filePath: string) => boolean;\n all: () => ControllerDefinition[];\n}\n\nexport const createControllerRegistry = (\n patterns: readonly string[],\n root: string,\n): ControllerRegistry => {\n const controllersByFile = new Map<string, ControllerDefinition>();\n\n const refresh = () => {\n controllersByFile.clear();\n\n const files = discoverFiles(patterns, root);\n const { controllers, diagnostics } = analyzeControllers(files);\n\n for (const controller of controllers) {\n controllersByFile.set(normalizePath(controller.sourceFile), controller);\n }\n\n return { controllers, diagnostics };\n };\n\n return {\n refresh,\n get: (filePath) => controllersByFile.get(filePath),\n has: (filePath) => controllersByFile.has(filePath),\n all: () => [...controllersByFile.values()],\n };\n};\n","import {\n analyzeResolvers,\n type NestBridgeDiagnostic,\n type ResolverDefinition,\n} from '@nestbridge/core';\nimport { normalizePath } from 'vite';\nimport { discoverFiles } from '../discovery';\n\nexport interface ResolverRegistryRefreshResult {\n resolvers: ResolverDefinition[];\n diagnostics: NestBridgeDiagnostic[];\n}\n\nexport interface ResolverRegistry {\n refresh: () => ResolverRegistryRefreshResult;\n get: (filePath: string) => ResolverDefinition | undefined;\n has: (filePath: string) => boolean;\n all: () => ResolverDefinition[];\n}\n\nexport const createResolverRegistry = (\n patterns: readonly string[],\n root: string,\n): ResolverRegistry => {\n const resolversByFile = new Map<string, ResolverDefinition>();\n\n const refresh = () => {\n resolversByFile.clear();\n\n const files = discoverFiles(patterns, root);\n const { resolvers, diagnostics } = analyzeResolvers(files);\n\n for (const resolver of resolvers) {\n resolversByFile.set(normalizePath(resolver.sourceFile), resolver);\n }\n\n return { resolvers, diagnostics };\n };\n\n return {\n refresh,\n get: (filePath) => resolversByFile.get(filePath),\n has: (filePath) => resolversByFile.has(filePath),\n all: () => [...resolversByFile.values()],\n };\n};\n","import { formatDiagnostic, type NestBridgeDiagnostic } from '@nestbridge/core';\nimport { normalizePath, type Plugin, type ResolvedConfig } from 'vite';\nimport { generateControllerModule, generateResolverModule } from '../codegen';\nimport { writeControllerDeclarations, writeResolverDeclarations } from '../declarations';\nimport { discoverFiles } from '../discovery';\nimport { type NestBridgeOptions, resolveNestBridgeOptions } from '../options';\nimport {\n decodeControllerVirtualId,\n decodeResolverVirtualId,\n encodeControllerVirtualId,\n encodeResolverVirtualId,\n isResolvedControllerVirtualId,\n isResolvedResolverVirtualId,\n resolvedControllerVirtualId,\n resolvedResolverVirtualId,\n} from '../virtual-modules';\nimport { createControllerRegistry } from './controller-registry';\nimport { createResolverRegistry } from './resolver-registry';\n\ninterface DiagnosticReporter {\n error: (message: string) => never;\n warn: (message: string) => void;\n}\n\nexport const nestBridge = (options: NestBridgeOptions): Plugin => {\n const resolvedOptions = resolveNestBridgeOptions(options);\n\n let viteConfig: ResolvedConfig;\n let controllerRegistry: ReturnType<typeof createControllerRegistry>;\n let resolverRegistry: ReturnType<typeof createResolverRegistry>;\n\n const log = (message: string) => {\n if (resolvedOptions.debug) {\n console.log(`[nestbridge] ${message}`);\n }\n };\n\n const reportDiagnostics = (\n diagnostics: readonly NestBridgeDiagnostic[],\n reporter: DiagnosticReporter,\n ) => {\n for (const diagnostic of diagnostics) {\n const message = formatDiagnostic(diagnostic);\n\n if (viteConfig.command === 'build') {\n reporter.error(message);\n } else {\n reporter.warn(message);\n }\n }\n };\n\n const devReporter: DiagnosticReporter = {\n warn: (message) => console.warn(message),\n error: (message) => {\n throw new Error(message);\n },\n };\n\n const runAnalysis = (reporter: DiagnosticReporter) => {\n const { controllers, diagnostics: controllerDiagnostics } = controllerRegistry.refresh();\n const { resolvers, diagnostics: resolverDiagnostics } = resolverRegistry.refresh();\n\n reportDiagnostics([...controllerDiagnostics, ...resolverDiagnostics], reporter);\n writeControllerDeclarations(controllers, viteConfig.root, resolvedOptions.outputDir);\n writeResolverDeclarations(resolvers, viteConfig.root, resolvedOptions.outputDir);\n log(\n `analyzed ${controllers.length} controller(s), ${resolvers.length} resolver(s), ` +\n `${controllerDiagnostics.length + resolverDiagnostics.length} diagnostic(s)`,\n );\n };\n\n return {\n name: 'nestbridge',\n enforce: 'pre',\n\n configResolved(config) {\n viteConfig = config;\n controllerRegistry = createControllerRegistry(resolvedOptions.controllers, config.root);\n resolverRegistry = createResolverRegistry(resolvedOptions.resolvers, config.root);\n },\n\n buildStart() {\n runAnalysis(this);\n },\n\n async resolveId(source, importer, resolveOptions) {\n if (importer === undefined) {\n return null;\n }\n\n const resolved = await this.resolve(source, importer, { ...resolveOptions, skipSelf: true });\n\n if (resolved === null) {\n return null;\n }\n\n const absolutePath = normalizePath(resolved.id);\n\n if (controllerRegistry.has(absolutePath)) {\n return resolvedControllerVirtualId(encodeControllerVirtualId(absolutePath));\n }\n\n if (resolverRegistry.has(absolutePath)) {\n return resolvedResolverVirtualId(encodeResolverVirtualId(absolutePath));\n }\n\n return null;\n },\n\n load(id) {\n if (isResolvedControllerVirtualId(id)) {\n const controller = controllerRegistry.get(decodeControllerVirtualId(id));\n return controller === undefined ? null : generateControllerModule(controller);\n }\n\n if (isResolvedResolverVirtualId(id)) {\n const resolver = resolverRegistry.get(decodeResolverVirtualId(id));\n return resolver === undefined ? null : generateResolverModule(resolver);\n }\n\n return null;\n },\n\n handleHotUpdate(ctx) {\n const normalizedFile = normalizePath(ctx.file);\n const matchedBefore =\n controllerRegistry.has(normalizedFile) || resolverRegistry.has(normalizedFile);\n const matchesNow =\n discoverFiles(resolvedOptions.controllers, viteConfig.root).includes(normalizedFile) ||\n discoverFiles(resolvedOptions.resolvers, viteConfig.root).includes(normalizedFile);\n\n if (!matchedBefore && !matchesNow) {\n return undefined;\n }\n\n runAnalysis(devReporter);\n log(`nestbridge source changed: ${normalizedFile}`);\n\n const virtualId = controllerRegistry.has(normalizedFile)\n ? resolvedControllerVirtualId(encodeControllerVirtualId(normalizedFile))\n : resolvedResolverVirtualId(encodeResolverVirtualId(normalizedFile));\n const moduleNode = ctx.server.moduleGraph.getModuleById(virtualId);\n\n return moduleNode === undefined ? undefined : [moduleNode, ...ctx.modules];\n },\n };\n};\n","{\n \"name\": \"@nestbridge/vite\",\n \"version\": \"1.1.1\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/MDReal32/nestbridge.git\",\n \"directory\": \"packages/vite\"\n },\n \"main\": \"./build/nestbridge.vite.js\",\n \"types\": \"./build/nestbridge.vite.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/nestbridge.vite.d.ts\",\n \"import\": \"./build/nestbridge.vite.js\"\n }\n },\n \"files\": [\n \"build\"\n ],\n \"scripts\": {\n \"build\": \"vite build\",\n \"test\": \"vitest run\",\n \"typecheck\": \"tsc -p tsconfig.json --noEmit\",\n \"lint\": \"biome check .\"\n },\n \"dependencies\": {\n \"@nestbridge/core\": \"workspace:*\",\n \"@nestbridge/runtime\": \"workspace:*\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^26.4.1\",\n \"rolldown-plugin-dts\": \"^0.28.5\",\n \"typescript\": \"^7.0.2\",\n \"vite\": \"^8.2.2\",\n \"vitest\": \"^5.0.0\"\n },\n \"peerDependencies\": {\n \"vite\": \"^8.2.2\"\n }\n}\n","import { version } from '../package.json';\n\nexport const VERSION: string = version;\n"],"mappings":";;;;;;AAKA,IAAI,iBAAiB,SAAS;CAC7B,MAAM,aAAa,KAAK,WAAW,OAAO,WAAW;CACrD,OAAO,eAAe,KAAK,KAAK,WAAW,WAAW,IAAI,KAAK,IAAI;AACpE;AACA,IAAI,iBAAiB,MAAM,kBAAkB;CAC5C,MAAM,aAAa,cAAc,IAAI;CACrC,IAAI,eAAe,KAAK,GAAG;CAC3B,OAAO,WAAW,MAAM,cAAc,gBAAgB,SAAS,MAAM,aAAa;AACnF;AACA,IAAI,oBAAoB,MAAM,mBAAmB;CAChD,MAAM,aAAa,cAAc,IAAI;CACrC,IAAI,eAAe,KAAK,GAAG;CAC3B,OAAO,WAAW,MAAM,cAAc,eAAe,SAAS,g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
|
"name": "@nestbridge/vite",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"@nestbridge/runtime": "workspace:*"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"vite
|
|
33
|
+
"@types/node": "^26.4.1",
|
|
34
|
+
"rolldown-plugin-dts": "^0.28.5",
|
|
35
|
+
"typescript": "^7.0.2",
|
|
36
|
+
"vite": "^8.2.2",
|
|
37
37
|
"vitest": "^5.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"vite": "^
|
|
40
|
+
"vite": "^8.2.2"
|
|
41
41
|
}
|
|
42
42
|
}
|