@digitraffic/common 2025.3.4-1 → 2025.3.4-2

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.
@@ -163,7 +163,7 @@ describe("integration tests", () => {
163
163
  const t = createTemplate(i);
164
164
  // body base64-encoded
165
165
  expect(t).toEqual({
166
- body: "eyBib2R5OiAiJ21vaSIgfQ==",
166
+ payload: "eyBib2R5OiAiJ21vaSIgfQ==",
167
167
  });
168
168
  });
169
169
  });
@@ -18,6 +18,8 @@ export declare class DigitrafficIntegration<T extends string> {
18
18
  /**
19
19
  * Body is passed as an base64-encoded string, so broken input should't break anything. You should
20
20
  * decode, parse and validate the input in the lambda.
21
+ *
22
+ * The encoded body will be passed to handler with name payload!!
21
23
  */
22
24
  passBody(): this;
23
25
  addPathParameter(...names: T[]): this;
@@ -4,7 +4,7 @@ import { DigitrafficIntegrationResponse } from "../../runtime/digitraffic-integr
4
4
  const VELOCITY_ALL_PARAMS = `#foreach($paramName in $params.keySet())
5
5
  #set($tmp = $paramMap.put($paramName, $params[$paramName]))
6
6
  #end`;
7
- const VELOCITY_PASS_BODY = `#set($tmp = $paramMap.put('body', $util.base64Encode($input.body)))`;
7
+ const VELOCITY_PASS_BODY = `#set($tmp = $paramMap.put('payload', $util.base64Encode($input.body)))`;
8
8
  export class DigitrafficIntegration {
9
9
  lambda;
10
10
  mediaType;
@@ -29,6 +29,8 @@ export class DigitrafficIntegration {
29
29
  /**
30
30
  * Body is passed as an base64-encoded string, so broken input should't break anything. You should
31
31
  * decode, parse and validate the input in the lambda.
32
+ *
33
+ * The encoded body will be passed to handler with name payload!!
32
34
  */
33
35
  passBody() {
34
36
  this._passBody = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitraffic/common",
3
- "version": "2025.3.4-1",
3
+ "version": "2025.3.4-2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "repository": {