@remotion/lambda 4.0.0-webhook.25 → 4.0.0-webhook.27
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.
|
@@ -75,13 +75,15 @@ exports.mockableHttpClients = {
|
|
|
75
75
|
* @returns {Promise<void>} Promise of HTTP request with resolve/reject to be used for error handling.
|
|
76
76
|
*/
|
|
77
77
|
function invokeWebhook({ payload, secret, url, }) {
|
|
78
|
+
const jsonPayload = JSON.stringify(payload);
|
|
78
79
|
return new Promise((resolve, reject) => {
|
|
79
80
|
const req = getWebhookClient(url)(url, {
|
|
80
81
|
method: 'POST',
|
|
81
82
|
headers: {
|
|
82
83
|
'Content-Type': 'application/json',
|
|
84
|
+
'Content-Length': jsonPayload.length,
|
|
83
85
|
'X-Remotion-Mode': 'production',
|
|
84
|
-
'X-Remotion-Signature': calculateSignature(
|
|
86
|
+
'X-Remotion-Signature': calculateSignature(jsonPayload, secret),
|
|
85
87
|
'X-Remotion-Status': payload.type,
|
|
86
88
|
},
|
|
87
89
|
timeout: 5000,
|
|
@@ -92,7 +94,7 @@ function invokeWebhook({ payload, secret, url, }) {
|
|
|
92
94
|
}
|
|
93
95
|
resolve();
|
|
94
96
|
});
|
|
95
|
-
req.write(
|
|
97
|
+
req.write(jsonPayload);
|
|
96
98
|
req.on('error', (err) => {
|
|
97
99
|
reject(err);
|
|
98
100
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.0.0-webhook.
|
|
3
|
+
"version": "4.0.0-webhook.27+eb81308ee",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@aws-sdk/client-service-quotas": "3.58.0",
|
|
33
33
|
"@aws-sdk/lib-storage": "3.58.0",
|
|
34
34
|
"@aws-sdk/s3-request-presigner": "3.58.0",
|
|
35
|
-
"@remotion/bundler": "4.0.0-webhook.
|
|
36
|
-
"@remotion/cli": "4.0.0-webhook.
|
|
37
|
-
"@remotion/renderer": "4.0.0-webhook.
|
|
35
|
+
"@remotion/bundler": "4.0.0-webhook.27+eb81308ee",
|
|
36
|
+
"@remotion/cli": "4.0.0-webhook.27+eb81308ee",
|
|
37
|
+
"@remotion/renderer": "4.0.0-webhook.27+eb81308ee",
|
|
38
38
|
"aws-policies": "^1.0.1",
|
|
39
39
|
"mime-types": "2.1.34",
|
|
40
|
-
"remotion": "4.0.0-webhook.
|
|
40
|
+
"remotion": "4.0.0-webhook.27+eb81308ee"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "eb81308ee07a402f4a8dd9ff24306bb07dd78175"
|
|
66
66
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|