sst 2.0.20 → 2.0.21
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/runtime/server.js +0 -1
- package/sst.mjs +0 -1
- package/support/nodejs-runtime/index.mjs +16 -9
package/package.json
CHANGED
package/runtime/server.js
CHANGED
|
@@ -89,7 +89,6 @@ export const useRuntimeServer = Context.memo(async () => {
|
|
|
89
89
|
},
|
|
90
90
|
limit: "10mb",
|
|
91
91
|
}), (req, res) => {
|
|
92
|
-
console.log(JSON.stringify(req.body, null, 4));
|
|
93
92
|
Logger.debug("Worker", req.params.workerID, "got response", req.body);
|
|
94
93
|
const worker = workers.fromID(req.params.workerID);
|
|
95
94
|
bus.publish("function.success", {
|
package/sst.mjs
CHANGED
|
@@ -2310,7 +2310,6 @@ var init_server2 = __esm({
|
|
|
2310
2310
|
limit: "10mb"
|
|
2311
2311
|
}),
|
|
2312
2312
|
(req, res) => {
|
|
2313
|
-
console.log(JSON.stringify(req.body, null, 4));
|
|
2314
2313
|
Logger.debug("Worker", req.params.workerID, "got response", req.body);
|
|
2315
2314
|
const worker = workers.fromID(req.params.workerID);
|
|
2316
2315
|
bus.publish("function.success", {
|
|
@@ -14669,16 +14669,23 @@ while (true) {
|
|
|
14669
14669
|
);
|
|
14670
14670
|
continue;
|
|
14671
14671
|
}
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14672
|
+
while (true) {
|
|
14673
|
+
try {
|
|
14674
|
+
await (0, import_undici.fetch)(
|
|
14675
|
+
`${input.url}/runtime/invocation/${context.awsRequestId}/response`,
|
|
14676
|
+
{
|
|
14677
|
+
method: "POST",
|
|
14678
|
+
headers: {
|
|
14679
|
+
"Content-Type": "application/json"
|
|
14680
|
+
},
|
|
14681
|
+
body: JSON.stringify(response)
|
|
14682
|
+
}
|
|
14683
|
+
);
|
|
14684
|
+
break;
|
|
14685
|
+
} catch {
|
|
14686
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
14680
14687
|
}
|
|
14681
|
-
|
|
14688
|
+
}
|
|
14682
14689
|
}
|
|
14683
14690
|
/*! Bundled license information:
|
|
14684
14691
|
|