eslint-plugin-sfmc 4.4.0 → 4.4.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.4.
|
|
3
|
+
"version": "4.4.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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-mso-email": "^2.0.0",
|
|
43
43
|
"handlebars-data": "^0.3.0",
|
|
44
44
|
"mso-conditional-parser": "^2.0.1",
|
|
45
|
-
"ssjs-data": "^0.
|
|
45
|
+
"ssjs-data": "^0.20.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"eslint": ">=9.0.0"
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
* Rule: ssjs-no-nonexistent-global
|
|
3
3
|
*
|
|
4
4
|
* Flags bare-name SSJS globals that are officially documented but proven NOT to
|
|
5
|
-
* exist at runtime — calling them throws a ReferenceError.
|
|
5
|
+
* exist at runtime as callable identifiers — calling them throws a ReferenceError.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* The offending names come from ssjs-data's `notDefinedAtRuntime` flag, so phantom
|
|
8
|
+
* globals are picked up automatically without editing this rule. Only bare-name
|
|
9
|
+
* callable phantoms (Identifier callees) are flagged here; object-namespace
|
|
10
|
+
* phantoms accessed via member calls (e.g. `Recipient.GetAttributeValue(...)`) are
|
|
11
|
+
* out of scope for this rule.
|
|
9
12
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
13
|
+
* Note: many bare-name Core globals (Write, Stringify, Base64Encode, Format,
|
|
14
|
+
* Redirect, …) are NOT phantom — they exist after `Platform.Load("core")` when
|
|
15
|
+
* called in the same scope as the load, so they are intentionally not flagged.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
import { notDefinedAtRuntimeGlobalLookup } from 'ssjs-data';
|