@salesforce-sentry/cli-shared 0.1.0 → 0.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/README.md +34 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @salesforce-sentry/cli-shared
2
+
3
+ Internal shared utilities for the salesforce-sentry CLI tools. Used by [`@salesforce-sentry/enduser-cli`](https://www.npmjs.com/package/@salesforce-sentry/enduser-cli) and [`@salesforce-sentry/isv-cli`](https://www.npmjs.com/package/@salesforce-sentry/isv-cli).
4
+
5
+ Not intended for direct use.
6
+
7
+ ## Utilities
8
+
9
+ ### `utils/sfdx.js`
10
+
11
+ SFDX project helpers:
12
+
13
+ - `readSfdxProject(projectRoot)` — parses `sfdx-project.json`
14
+ - `getSourceDirs(projectRoot)` — returns all package directory paths
15
+ - `getDefaultSourceDir(projectRoot)` — returns the default package directory path
16
+ - `findProjectFiles(projectRoot, predicate)` — walks all source dirs, returns files matching predicate
17
+
18
+ ### `utils/dsn.js`
19
+
20
+ Sentry DSN parsing and validation:
21
+
22
+ - `parseDSN(dsn)` — returns `{ valid, publicKey, host, projectId, remoteUrl }`
23
+ - `validateDSN(dsn)` — returns an error string or `null`
24
+
25
+ ### `utils/interactive.js`
26
+
27
+ Terminal diff and prompt UX:
28
+
29
+ - `colorDiff(patch)` — colorizes a unified diff string (green additions, red removals)
30
+ - `showDiffAndPrompt(transform)` — prints a colored diff and prompts yes / no / all / quit
31
+
32
+ ### `utils/meta-xml.js`
33
+
34
+ - `readMetaXml(filePath)` — parses a Salesforce `.xml-meta.xml` file and returns the parsed object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce-sentry/cli-shared",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared utilities for salesforce-sentry CLI tools",
5
5
  "license": "MIT",
6
6
  "files": [