@omen.foundation/node-microservice-runtime 0.1.108 → 0.1.109
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 +11 -22
package/package.json
CHANGED
|
@@ -1102,11 +1102,6 @@ async function updateManifest({
|
|
|
1102
1102
|
storageReferences: storageReferences.length > 0 ? storageReferences : null,
|
|
1103
1103
|
};
|
|
1104
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
|
-
|
|
1110
1105
|
const publishUrl = new URL('/basic/beamo/manifest', apiHost);
|
|
1111
1106
|
const publishHeaders = {
|
|
1112
1107
|
Authorization: `Bearer ${token}`,
|
|
@@ -1115,23 +1110,17 @@ async function updateManifest({
|
|
|
1115
1110
|
'X-BEAM-SCOPE': `${cid}.${pid}`,
|
|
1116
1111
|
};
|
|
1117
1112
|
|
|
1118
|
-
//
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
// console.error(`[beamo-node] - Backend will check: {registryURI}/{imageNameMD5}/manifests/{imageId}`);
|
|
1130
|
-
// console.error(`[beamo-node] - Backend will use headers: X-KS-PROJECTID: rc.projectId (from X-BEAM-SCOPE)`);
|
|
1131
|
-
// console.error(`[beamo-node] - NOTE: rc.gameId might differ from realm PID if backend resolves it differently`);
|
|
1132
|
-
// console.error(`[beamo-node] Request Body:`, JSON.stringify(requestBody, null, 2));
|
|
1133
|
-
// console.error(`[beamo-node] Service Entry in Manifest:`, JSON.stringify(mappedServices.find(s => s.serviceName === serviceId), null, 2));
|
|
1134
|
-
// }
|
|
1113
|
+
// Always log the full manifest being sent for debugging
|
|
1114
|
+
console.log(`\n=== MANIFEST BEING SENT TO BACKEND ===`);
|
|
1115
|
+
console.log(`URL: ${publishUrl}`);
|
|
1116
|
+
console.log(`Method: POST`);
|
|
1117
|
+
console.log(`Headers:`, JSON.stringify(publishHeaders, null, 2));
|
|
1118
|
+
console.log(`\nFull Request Body:`);
|
|
1119
|
+
console.log(JSON.stringify(requestBody, null, 2));
|
|
1120
|
+
console.log(`\nService Entry in Manifest:`);
|
|
1121
|
+
const serviceEntry = mappedServices.find(s => s.serviceName === serviceId);
|
|
1122
|
+
console.log(JSON.stringify(serviceEntry, null, 2));
|
|
1123
|
+
console.log(`=== END MANIFEST ===\n`);
|
|
1135
1124
|
|
|
1136
1125
|
const response = await fetch(publishUrl, {
|
|
1137
1126
|
method: 'POST',
|