ampscript-data 1.0.0 → 2.0.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.
Files changed (3) hide show
  1. package/README.md +7 -1
  2. package/package.json +1 -1
  3. package/src/index.js +2141 -671
package/README.md CHANGED
@@ -169,10 +169,16 @@ getMcnNotes('ProperCase'); // null
169
169
 
170
170
  ### `AMPSCRIPT_KEYWORDS`
171
171
 
172
- An array of AMPscript language keywords (`IF`, `FOR`, `SET`, etc.):
172
+ An array of AMPscript language keyword descriptors (`if`, `for`, `set`, etc.). Each entry carries a short description and a completion snippet with `${n:placeholder}` tab stops:
173
173
 
174
174
  ```js
175
175
  import { AMPSCRIPT_KEYWORDS } from 'ampscript-data';
176
+
177
+ for (const kw of AMPSCRIPT_KEYWORDS) {
178
+ console.log(kw.name); // e.g. 'if'
179
+ console.log(kw.description); // human-readable description
180
+ console.log(kw.snippet); // completion body, e.g. 'if ${1:condition} then\n\t${2}\nendif'
181
+ }
176
182
  ```
177
183
 
178
184
  ### `PERSONALIZATION_STRINGS`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ampscript-data",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "Canonical AMPscript function catalog, keywords, and personalization strings for SFMC tooling",
5
5
  "type": "module",
6
6
  "main": "src/index.js",