@apify/utilities 2.4.1 → 2.5.0

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.
@@ -63,7 +63,9 @@ export declare class WebhookPayloadTemplate {
63
63
  * Parse also validates the template structure, so it can be used
64
64
  * to check validity of the template JSON and usage of allowedVariables.
65
65
  */
66
- static parse(payloadTemplate: string, allowedVariables?: Set<string> | null, context?: Record<string, any>): Record<string, any>;
66
+ static parse(payloadTemplate: string, allowedVariables?: Set<string> | null, context?: Record<string, any>, options?: {
67
+ interpolateStrings?: boolean;
68
+ }): Record<string, any>;
67
69
  /**
68
70
  * Stringify an object into a webhook payload template.
69
71
  * Values created using `getTemplateVariable('foo.bar')`
@@ -97,11 +99,16 @@ export declare class WebhookPayloadTemplate {
97
99
  */
98
100
  static getVariable(variableName: string): JsonVariable;
99
101
  private _parse;
102
+ private _interpolate;
103
+ private _interpolateString;
104
+ private _interpolateObject;
105
+ private _interpolateArray;
100
106
  private _findPositionOfNextVariable;
101
107
  private _isVariableInsideString;
102
108
  private _countUnescapedDoubleQuotesUpToIndex;
103
109
  private _replaceVariable;
104
110
  private _validateVariableName;
111
+ private _getVariableValue;
105
112
  private _getVariableReplacement;
106
113
  }
107
114
  export {};