eslint-plugin-sfmc 4.16.0 → 4.16.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-sfmc",
3
- "version": "4.16.0",
3
+ "version": "4.16.1",
4
4
  "description": "ESLint plugin for Salesforce Marketing Cloud Engagement+Next - AMPscript, Server-Side JavaScript (SSJS) and Handlebars",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -36,12 +36,12 @@
36
36
  "mcn"
37
37
  ],
38
38
  "dependencies": {
39
- "@handlebars/parser": "^2.2.2",
40
39
  "ampscript-data": "^4.0.0",
41
40
  "ampscript-parser": "^0.3.1",
42
41
  "eslint-plugin-mso-email": "^2.0.0",
43
42
  "handlebars-data": "^0.4.0",
44
43
  "mso-conditional-parser": "^2.0.1",
44
+ "sfmc-handlebars-parser": "^0.1.0",
45
45
  "ssjs-data": "^2.0.0"
46
46
  },
47
47
  "peerDependencies": {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * ESLint-compatible parser for Marketing Cloud Next Handlebars.
3
3
  *
4
- * Wraps the `@handlebars/parser` package and adds the metadata ESLint needs:
4
+ * Wraps the `sfmc-handlebars-parser` package and adds the metadata ESLint needs:
5
5
  * - `range: [start, end]` on every node (derived from the parser's
6
6
  * 1-based-line / 0-based-column `loc` via a line-start table)
7
7
  * - `loc: { start: {line,column}, end: {line,column} }` (kept from the parser,
@@ -13,7 +13,7 @@
13
13
  * runs (the processor does this) so Handlebars never sees `%%[ ... ]%%` syntax.
14
14
  */
15
15
 
16
- import { parse as hbsParse } from '@handlebars/parser';
16
+ import { parse as hbsParse } from 'sfmc-handlebars-parser';
17
17
 
18
18
  // ── Node renaming for ESTree collisions ───────────────────────────────────
19
19
  //
@@ -97,7 +97,7 @@ function annotateNode(node, lineStarts, textLength, fallback) {
97
97
  }
98
98
 
99
99
  // ESLint requires every traversed node to expose a numeric `range` and a
100
- // matching `loc`. `@handlebars/parser` attaches `loc` to most nodes but a
100
+ // matching `loc`. `sfmc-handlebars-parser` attaches `loc` to most nodes but a
101
101
  // few (e.g. Hash, HashPair) can omit it — inherit the parent's span so the
102
102
  // traverser never sees an undefined range.
103
103
  let span = fallback;