@omen.foundation/node-microservice-runtime 0.1.107 → 0.1.108
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/package.json +1 -1
- package/scripts/publish-service.mjs +15 -7
package/package.json
CHANGED
|
@@ -1073,13 +1073,6 @@ async function updateManifest({
|
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
|
-
const requestBody = {
|
|
1077
|
-
autoDeploy: true,
|
|
1078
|
-
comments: comments ?? '',
|
|
1079
|
-
manifest: mappedServices,
|
|
1080
|
-
storageReferences: storageReferences.length > 0 ? storageReferences : null,
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
1076
|
// Log storage references being sent to backend
|
|
1084
1077
|
if (storageReferences.length > 0) {
|
|
1085
1078
|
console.log(`[beamo-node] Publishing ${storageReferences.length} storage reference(s) in manifest:`);
|
|
@@ -1099,6 +1092,21 @@ async function updateManifest({
|
|
|
1099
1092
|
console.warn(`[beamo-node] Make sure you have @StorageObject('StorageName') decorators in your code.`);
|
|
1100
1093
|
}
|
|
1101
1094
|
|
|
1095
|
+
// Build request body matching C# CLI format exactly
|
|
1096
|
+
// C# sends: { comments, manifest, storageReferences } where storageReferences comes from manifest.storageReference
|
|
1097
|
+
// C# assigns it directly, so if null/empty it serializes as null (not omitted)
|
|
1098
|
+
const requestBody = {
|
|
1099
|
+
autoDeploy: true,
|
|
1100
|
+
comments: comments ?? '',
|
|
1101
|
+
manifest: mappedServices,
|
|
1102
|
+
storageReferences: storageReferences.length > 0 ? storageReferences : null,
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
// Log full request body structure to verify format
|
|
1106
|
+
if (storageReferences.length > 0) {
|
|
1107
|
+
console.log(`[beamo-node] Request body includes storageReferences: ${storageReferences.length} reference(s)`);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1102
1110
|
const publishUrl = new URL('/basic/beamo/manifest', apiHost);
|
|
1103
1111
|
const publishHeaders = {
|
|
1104
1112
|
Authorization: `Bearer ${token}`,
|