ampscript-data 0.1.3 → 0.2.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 +2 -0
  2. package/package.json +24 -2
  3. package/src/index.js +330 -40
package/README.md CHANGED
@@ -48,6 +48,8 @@ for (const fn of FUNCTIONS) {
48
48
  console.log(fn.returnType); // e.g. 'string'
49
49
  console.log(fn.syntax); // canonical signature string
50
50
  console.log(fn.example); // usage example (where available)
51
+ console.log(fn.docUrl); // URL to official Salesforce developer docs
52
+ console.log(fn.guideUrl); // URL to ampscript.guide reference page
51
53
  }
52
54
  ```
53
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ampscript-data",
3
- "version": "0.1.3",
3
+ "version": "0.2.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",
@@ -29,9 +29,31 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "scripts": {
32
- "test": "echo No tests defined"
32
+ "test": "echo No tests defined",
33
+ "lint": "eslint .",
34
+ "lint:fix": "eslint --fix .",
35
+ "prepare": "husky || true",
36
+ "format": "prettier --write .",
37
+ "format:check": "prettier --check ."
33
38
  },
34
39
  "engines": {
35
40
  "node": ">=18.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "@eslint/js": "^10.0.1",
44
+ "eslint": "^10.1.0",
45
+ "eslint-config-prettier": "^10.1.8",
46
+ "eslint-plugin-jsdoc": "^62.0.0",
47
+ "eslint-plugin-prettier": "^5.5.0",
48
+ "eslint-plugin-unicorn": "^64.0.0",
49
+ "globals": "^17.4.0",
50
+ "husky": "^9.1.7",
51
+ "lint-staged": "^17.0.5",
52
+ "prettier": "^3.8.1"
53
+ },
54
+ "lint-staged": {
55
+ "*.{js,mjs,cjs}": [
56
+ "eslint --fix"
57
+ ]
36
58
  }
37
59
  }