Sign In

handlebars-data

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-data - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
+1
-1
package.json
{
"name": "handlebars-data",
"version": "0.1.0",
"version": "0.2.0",
"description": "Canonical Handlebars for Marketing Cloud Next helper catalog, built-in bindings, and unsupported-construct definitions for SFMC tooling",

@@ -5,0 +5,0 @@ "type": "module",

@@ -18,3 +18,3 @@ # handlebars-data

| `getHelperMcnSince(name)` | API version a helper first shipped in, or `null`. |
| `BUILTIN_BINDINGS` | The three `{!$...}` built-in data-source bindings. |
| `BUILTIN_BINDINGS` | The three `{!$...}` built-in data-source bindings, each enriched with `docUrl`. |
| `bindingLookup` / `bindingNames` / `isBuiltinBinding(name)` | Binding lookups. |

@@ -21,0 +21,0 @@ | `UNSUPPORTED_CONSTRUCTS` | Handlebars constructs the MCN engine does not support (flagged as errors). |

@@ -1029,2 +1029,9 @@ /**

/**
* Documentation URL shared by all built-in bindings. The bindings are described
* on the data-sources guide page (a guide page, not a per-binding reference).
*/
const BINDING_DOC_URL =
'https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/guide/mcn-handlebars-guide-data-sources.html';
/**
* Salesforce-only built-in bindings written with the `{!$namespace.Field}`

@@ -1035,3 +1042,3 @@ * syntax. These are reserved data-source references, not Handlebars helpers.

*/
export const BUILTIN_BINDINGS = [
const BUILTIN_BINDINGS_RAW = [
{

@@ -1060,2 +1067,12 @@ name: 'organization.Address',

/**
* Canonical built-in `{!$...}` binding catalog, enriched with a documentation URL.
*
* @type {{name: string, token: string, namespace: string, mcnSince: number, description: string, docUrl: string}[]}
*/
export const BUILTIN_BINDINGS = BUILTIN_BINDINGS_RAW.map((binding) => ({
...binding,
docUrl: BINDING_DOC_URL,
}));
/** Case-insensitive lookup: lowercase binding name -> binding definition. */

@@ -1062,0 +1079,0 @@ export const bindingLookup = new Map(