ampscript-data 3.1.0 → 3.1.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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/src/index.js +15 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ampscript-data",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Canonical AMPscript function catalog, keywords, and personalization strings for SFMC tooling",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -41,15 +41,15 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@eslint/js": "^10.0.1",
44
- "eslint": "^10.1.0",
44
+ "eslint": "^10.8.0",
45
45
  "eslint-config-prettier": "^10.1.8",
46
- "eslint-plugin-jsdoc": "^63.0.10",
47
- "eslint-plugin-prettier": "^5.5.0",
48
- "eslint-plugin-unicorn": "^70.0.0",
49
- "globals": "^17.4.0",
46
+ "eslint-plugin-jsdoc": "^63.3.3",
47
+ "eslint-plugin-prettier": "^5.5.6",
48
+ "eslint-plugin-unicorn": "^73.0.0",
49
+ "globals": "^17.9.0",
50
50
  "husky": "^9.1.7",
51
- "lint-staged": "^17.0.5",
52
- "prettier": "^3.8.1"
51
+ "lint-staged": "^17.3.0",
52
+ "prettier": "^3.9.6"
53
53
  },
54
54
  "lint-staged": {
55
55
  "*.{js,mjs,cjs}": [
package/src/index.js CHANGED
@@ -5186,18 +5186,26 @@ export const FUNCTIONS = [
5186
5186
  },
5187
5187
  ];
5188
5188
 
5189
- /** Case-insensitive lookup: lowercase name -> function entry */
5189
+ /**
5190
+ * Case-insensitive lookup: lowercase name -> function entry
5191
+ */
5190
5192
  export const functionLookup = new Map(FUNCTIONS.map((f) => [f.name.toLowerCase(), f]));
5191
5193
 
5192
- /** Set of lowercase function names for quick membership checks */
5194
+ /**
5195
+ * Set of lowercase function names for quick membership checks
5196
+ */
5193
5197
  export const functionNames = new Set(FUNCTIONS.map((f) => f.name.toLowerCase()));
5194
5198
 
5195
5199
  // ── Canonical casing map ─────────────────────────────────────────────────────
5196
5200
 
5197
- /** Ordered list of canonical PascalCase function names */
5201
+ /**
5202
+ * Ordered list of canonical PascalCase function names
5203
+ */
5198
5204
  export const CANONICAL_FUNCTIONS = FUNCTIONS.map((f) => f.name);
5199
5205
 
5200
- /** Map from lowercase -> canonical PascalCase name */
5206
+ /**
5207
+ * Map from lowercase -> canonical PascalCase name
5208
+ */
5201
5209
  export const FUNCTION_CANONICAL_MAP = new Map(
5202
5210
  CANONICAL_FUNCTIONS.map((name) => [name.toLowerCase(), name]),
5203
5211
  );
@@ -5268,7 +5276,9 @@ export function getMcnNotes(name) {
5268
5276
  // lookup below is derived from those flags for consumers that need a quick
5269
5277
  // name -> entry map of deprecated functions.
5270
5278
 
5271
- /** Case-insensitive lookup of deprecated functions: lowercase name -> function entry */
5279
+ /**
5280
+ * Case-insensitive lookup of deprecated functions: lowercase name -> function entry
5281
+ */
5272
5282
  export const deprecatedFunctionLookup = new Map(
5273
5283
  FUNCTIONS.filter((f) => f.deprecated).map((f) => [f.name.toLowerCase(), f]),
5274
5284
  );