@autobe/compiler 0.10.3 → 0.10.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.
|
@@ -53,14 +53,18 @@ class AutoBeInterfaceCompiler {
|
|
|
53
53
|
value: "Generated by AutoBE - https://github.com/wrtnlabs/autobe",
|
|
54
54
|
},
|
|
55
55
|
});
|
|
56
|
-
return Object.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
return Object.fromEntries([
|
|
57
|
+
...(yield ArrayUtil_1.ArrayUtil.asyncMap(Object.entries(files), (_a) => __awaiter(this, [_a], void 0, function* ([key, value]) {
|
|
58
|
+
return [
|
|
59
|
+
key,
|
|
60
|
+
key.endsWith(".ts") && key.endsWith(".d.ts") === false
|
|
61
|
+
? yield FilePrinter_1.FilePrinter.beautify(value)
|
|
62
|
+
: value,
|
|
63
|
+
];
|
|
64
|
+
}))),
|
|
65
|
+
["packages/api/swagger.json", JSON.stringify(swagger, null, 2)],
|
|
66
|
+
...Object.entries(AutoBeCompilerTemplate_1.AutoBeCompilerTemplate).filter(([key]) => key !== "src/MyGlobal.ts"),
|
|
67
|
+
]);
|
|
64
68
|
});
|
|
65
69
|
}
|
|
66
70
|
transform(document) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoBeInterfaceCompiler.js","sourceRoot":"","sources":["../src/AutoBeInterfaceCompiler.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yCAAsD;AACtD,6CAA2D;AAG3D,mEAAwE;AACxE,yEAAsE;AACtE,iDAA8C;AAC9C,qDAAkD;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,uBAAuB;IACrB,OAAO,CAClB,QAAiC;;YAEjC,MAAM,OAAO,GAAsB,IAAA,2CAAwB,EAAC,QAAQ,CAAC,CAAC;YACtE,MAAM,OAAO,GAA6B,IAAI,k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Q,CAAC,KAAK,CAAC;4BACnC,CAAC,CAAC,KAAK;qBACV,CAAA;kBAAA,CACF,CAAC;gBACF,CAAC,2BAA2B,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;gBAC/D,GAAG,MAAM,CAAC,OAAO,CAAC,+CAAsB,CAAC,CAAC,MAAM,CAC9C,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,iBAAiB,CACrC;aACF,CAAC,CAAC;QACL,CAAC;KAAA;IAEY,SAAS,CACpB,QAAiC;;YAEjC,OAAO,IAAA,2CAAwB,EAAC,QAAQ,CAAC,CAAC;QAC5C,CAAC;KAAA;IAEY,MAAM,CACjB,QAA2B;;YAE3B,OAAO,IAAA,6BAAqB,EAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;KAAA;CACF;AA7CD,0DA6CC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobe/compiler",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "AI backend server code generator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Wrtn Technologies",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"prisma-markdown": "^3.0.0",
|
|
26
26
|
"tstl": "^3.0.0",
|
|
27
27
|
"typia": "^9.5.0",
|
|
28
|
-
"@autobe/interface": "^0.10.
|
|
29
|
-
"@autobe/utils": "^0.10.
|
|
28
|
+
"@autobe/interface": "^0.10.4",
|
|
29
|
+
"@autobe/utils": "^0.10.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.15.3",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"ts-node": "^10.9.2",
|
|
36
36
|
"ts-patch": "^3.3.0",
|
|
37
37
|
"typescript": "~5.8.3",
|
|
38
|
-
"@autobe/filesystem": "^0.10.
|
|
38
|
+
"@autobe/filesystem": "^0.10.4"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
41
41
|
"ai",
|
|
@@ -48,21 +48,21 @@ export class AutoBeInterfaceCompiler implements IAutoBeInterfaceCompiler {
|
|
|
48
48
|
value: "Generated by AutoBE - https://github.com/wrtnlabs/autobe",
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
|
-
return
|
|
52
|
-
...
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
return Object.fromEntries([
|
|
52
|
+
...(await ArrayUtil.asyncMap(
|
|
53
|
+
Object.entries(files),
|
|
54
|
+
async ([key, value]) => [
|
|
55
|
+
key,
|
|
56
|
+
key.endsWith(".ts") && key.endsWith(".d.ts") === false
|
|
57
|
+
? await FilePrinter.beautify(value)
|
|
58
|
+
: value,
|
|
59
|
+
],
|
|
60
|
+
)),
|
|
61
|
+
["packages/api/swagger.json", JSON.stringify(swagger, null, 2)],
|
|
62
|
+
...Object.entries(AutoBeCompilerTemplate).filter(
|
|
63
|
+
([key]) => key !== "src/MyGlobal.ts",
|
|
62
64
|
),
|
|
63
|
-
|
|
64
|
-
...AutoBeCompilerTemplate,
|
|
65
|
-
};
|
|
65
|
+
]);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
public async transform(
|