@514labs/moose-lib 0.6.239-ci-3-g92b829a6 → 0.6.239-ci-3-g6e595e05
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/compilerPlugin.js +3 -6
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs +3 -6
- package/dist/compilerPlugin.mjs.map +1 -1
- package/dist/dataModels/toDataModels.js +2 -2
- package/dist/dataModels/toDataModels.js.map +1 -1
- package/dist/dataModels/toDataModels.mjs +2 -2
- package/dist/dataModels/toDataModels.mjs.map +1 -1
- package/package.json +1 -1
package/dist/compilerPlugin.mjs
CHANGED
|
@@ -891,8 +891,8 @@ var handleCodec = (t, checker) => {
|
|
|
891
891
|
}
|
|
892
892
|
return codecType.value;
|
|
893
893
|
};
|
|
894
|
-
var toColumns = (t, checker
|
|
895
|
-
if (
|
|
894
|
+
var toColumns = (t, checker) => {
|
|
895
|
+
if (checker.getIndexInfosOfType(t).length !== 0) {
|
|
896
896
|
console.log("[CompilerPlugin]", checker.getIndexInfosOfType(t));
|
|
897
897
|
throwIndexTypeError(t, checker);
|
|
898
898
|
}
|
|
@@ -980,14 +980,11 @@ var typiaTypeGuard = (node) => {
|
|
|
980
980
|
var transformNewMooseResource = (node, checker) => {
|
|
981
981
|
const typeName = checker.getSymbolAtLocation(node.expression).name;
|
|
982
982
|
const typeNode = node.typeArguments[0];
|
|
983
|
-
const allowIndexSignatures = ["IngestApi", "Stream"].includes(typeName);
|
|
984
983
|
const internalArguments = typeName === "DeadLetterQueue" ? [typiaTypeGuard(node)] : [
|
|
985
984
|
typiaJsonSchemas(typeNode),
|
|
986
985
|
parseAsAny(
|
|
987
986
|
JSON.stringify(
|
|
988
|
-
toColumns(checker.getTypeAtLocation(typeNode), checker
|
|
989
|
-
allowIndexSignatures
|
|
990
|
-
})
|
|
987
|
+
toColumns(checker.getTypeAtLocation(typeNode), checker)
|
|
991
988
|
)
|
|
992
989
|
)
|
|
993
990
|
];
|