@kubb/ast 5.0.0-beta.44 → 5.0.0-beta.46
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{types-lc8xMmUs.d.ts → types-BaaNZbSi.d.ts} +4 -19
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/factory.ts +5 -1
- package/src/infer.ts +2 -2
- package/src/nodes/code.ts +0 -6
- package/src/nodes/file.ts +1 -1
- package/src/nodes/http.ts +1 -35
- package/src/nodes/index.ts +4 -10
- package/src/nodes/operation.ts +2 -2
- package/src/nodes/schema.ts +6 -6
- package/src/printer.ts +2 -2
- package/src/types.ts +2 -19
- package/src/utils/ast.ts +1 -1
- package/src/visitor.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1465,7 +1465,7 @@ function createFile(input) {
|
|
|
1465
1465
|
if (!extname) throw new Error(`No extname found for ${input.baseName}`);
|
|
1466
1466
|
const source = (input.sources ?? []).flatMap((item) => item.nodes ?? []).map((node) => extractStringsFromNodes([node])).filter(Boolean).join("\n\n");
|
|
1467
1467
|
const resolvedExports = input.exports?.length ? combineExports(input.exports) : [];
|
|
1468
|
-
const resolvedImports = input.imports?.length ? combineImports(input.imports, resolvedExports, source || void 0) : [];
|
|
1468
|
+
const resolvedImports = (input.imports?.length ? combineImports(input.imports, resolvedExports, source || void 0) : []).filter((imp) => imp.path !== input.path);
|
|
1469
1469
|
const resolvedSources = input.sources?.length ? combineSources(input.sources) : [];
|
|
1470
1470
|
return {
|
|
1471
1471
|
kind: "File",
|