@nestbridge/unplugin 2.0.3 → 2.0.4
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nestbridge.unplugin.js","names":[],"sources":["../../core/build/nestbridge.core.js","../src/codegen/generate-config-module.ts","../src/virtual-modules/config-virtual-id.ts","../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/plugin/normalize-path.ts","../src/plugin/controller-registry.ts","../src/plugin/resolver-registry.ts","../src/plugin/nestbridge-unplugin-factory.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 = \"2.0.4\";\n//#endregion\nexport { NestBridgeDiagnosticError, VERSION, analyzeControllers, analyzeResolvers, formatDiagnostic, generateControllerDeclaration };\n\n//# sourceMappingURL=nestbridge.core.js.map","import type { ResolvedNestBridgeOptions } from '../options';\n\nexport const generateConfigModule = (options: ResolvedNestBridgeOptions) => {\n if (options.baseURL === undefined) {\n return '';\n }\n\n return [\n \"import { setNestBridgeBaseURL } from 'nestbridge';\",\n '',\n `setNestBridgeBaseURL(${JSON.stringify(options.baseURL)});`,\n '',\n ].join('\\n');\n};\n","/**\n * Must not contain a colon: webpack treats any `letter+:` prefix as a URL\n * scheme and routes the request past its filesystem resolver entirely,\n * bypassing the resolveId hook this virtual module relies on.\n */\nexport const CONFIG_VIRTUAL_MODULE_ID = 'virtual-nestbridge-config';\n\nexport const RESOLVED_CONFIG_VIRTUAL_MODULE_ID = `\\0${CONFIG_VIRTUAL_MODULE_ID}`;\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 { CONFIG_VIRTUAL_MODULE_ID } from '../virtual-modules';\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 '${CONFIG_VIRTUAL_MODULE_ID}';`,\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 { CONFIG_VIRTUAL_MODULE_ID } from '../virtual-modules';\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 '${CONFIG_VIRTUAL_MODULE_ID}';`,\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 root?: string;\n}\n\nexport interface ResolvedNestBridgeOptions {\n controllers: string[];\n resolvers: string[];\n baseURL: string | undefined;\n debug: boolean;\n outputDir: string;\n root: string | undefined;\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 root: options.root,\n});\n","import { posix } from 'node:path';\n\nconst isWindows = process.platform === 'win32';\n\nexport const normalizePath = (filePath: string) =>\n posix.normalize(isWindows ? filePath.replaceAll('\\\\', '/') : filePath);\n","import {\n analyzeControllers,\n type ControllerDefinition,\n type NestBridgeDiagnostic,\n} from '@nestbridge/core';\nimport { discoverFiles } from '../discovery';\nimport { normalizePath } from './normalize-path';\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 { discoverFiles } from '../discovery';\nimport { normalizePath } from './normalize-path';\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 { createUnplugin, type UnpluginInstance, type UnpluginOptions } from 'unplugin';\nimport { generateConfigModule, generateControllerModule, generateResolverModule } from '../codegen';\nimport { writeControllerDeclarations, writeResolverDeclarations } from '../declarations';\nimport { discoverFiles } from '../discovery';\nimport { type NestBridgeOptions, resolveNestBridgeOptions } from '../options';\nimport { CONFIG_VIRTUAL_MODULE_ID, RESOLVED_CONFIG_VIRTUAL_MODULE_ID } from '../virtual-modules';\nimport { createControllerRegistry } from './controller-registry';\nimport { normalizePath } from './normalize-path';\nimport { createResolverRegistry } from './resolver-registry';\n\nconst reportDiagnostics = (\n diagnostics: readonly NestBridgeDiagnostic[],\n watchMode: boolean | undefined,\n) => {\n for (const diagnostic of diagnostics) {\n const message = formatDiagnostic(diagnostic);\n\n if (watchMode === false) {\n throw new Error(message);\n }\n\n console.warn(message);\n }\n};\n\nexport const nestBridgeUnplugin: UnpluginInstance<NestBridgeOptions, false> = createUnplugin<\n NestBridgeOptions,\n false\n>((options, meta) => {\n const resolvedOptions = resolveNestBridgeOptions(options);\n\n let root = resolvedOptions.root ?? process.cwd();\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 runAnalysis = () => {\n const { controllers, diagnostics: controllerDiagnostics } = controllerRegistry.refresh();\n const { resolvers, diagnostics: resolverDiagnostics } = resolverRegistry.refresh();\n\n reportDiagnostics([...controllerDiagnostics, ...resolverDiagnostics], meta.watchMode);\n writeControllerDeclarations(controllers, root, resolvedOptions.outputDir);\n writeResolverDeclarations(resolvers, 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 buildStart() {\n controllerRegistry = createControllerRegistry(resolvedOptions.controllers, root);\n resolverRegistry = createResolverRegistry(resolvedOptions.resolvers, root);\n runAnalysis();\n },\n\n resolveId(source) {\n if (source === CONFIG_VIRTUAL_MODULE_ID) {\n return RESOLVED_CONFIG_VIRTUAL_MODULE_ID;\n }\n\n return null;\n },\n\n load(id) {\n if (id === RESOLVED_CONFIG_VIRTUAL_MODULE_ID) {\n return generateConfigModule(resolvedOptions);\n }\n\n return null;\n },\n\n transform(_code, id) {\n const absolutePath = normalizePath(id);\n\n const controller = controllerRegistry.get(absolutePath);\n if (controller !== undefined) {\n return generateControllerModule(controller);\n }\n\n const resolver = resolverRegistry.get(absolutePath);\n if (resolver !== undefined) {\n return generateResolverModule(resolver);\n }\n\n return null;\n },\n\n watchChange(id) {\n const changedFile = normalizePath(id);\n const wasTracked = controllerRegistry.has(changedFile) || resolverRegistry.has(changedFile);\n const isTrackedNow =\n discoverFiles(resolvedOptions.controllers, root).map(normalizePath).includes(changedFile) ||\n discoverFiles(resolvedOptions.resolvers, root).map(normalizePath).includes(changedFile);\n\n if (!wasTracked && !isTrackedNow) {\n return;\n }\n\n runAnalysis();\n log(`nestbridge source changed: ${changedFile}`);\n },\n\n vite: {\n configResolved(config) {\n if (resolvedOptions.root === undefined) {\n root = config.root;\n }\n },\n },\n } satisfies UnpluginOptions;\n});\n","{\n \"name\": \"@nestbridge/unplugin\",\n \"version\": \"2.0.4\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/MDReal32/nestbridge.git\",\n \"directory\": \"packages/unplugin\"\n },\n \"main\": \"./build/nestbridge.unplugin.js\",\n \"types\": \"./build/nestbridge.unplugin.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/nestbridge.unplugin.d.ts\",\n \"import\": \"./build/nestbridge.unplugin.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 \"unplugin\": \"^3.3.0\"\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}\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,gBAAgB,SAAS,KAAK,EAAE,CAAC;AAChG;AACA,IAAI,mBAAmB,cAAc;CACpC,MAAM,aAAa,UAAU;CAC7B,IAAI,iBAAiB,UAAU,KAAK,aAAa,WAAW,UAAU,GAAG,OAAO,WAAW,WAAW;CACtG,IAAI,aAAa,UAAU,GAAG,OAAO,WAAW;AACjD;AACA,IAAI,4BAA4B,cAAc;CAC7C,MAAM,aAAa,UAAU;CAC7B,IAAI,CAAC,iBAAiB,UAAU,GAAG,OAAO;EACzC,IAAI;EACJ,OAAO,KAAK;CACb;CACA,MAAM,CAAC,iBAAiB,WAAW;CACnC,IAAI,kBAAkB,KAAK,GAAG,OAAO;EACpC,IAAI;EACJ,OAAO,KAAK;CACb;CACA,IAAI,wBAAwB,aAAa,GAAG,OAAO;EAClD,IAAI;EACJ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