@syntax-syllogism/flow-delta 0.0.1 → 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.
- package/dist/cli.js +15 -1
- package/dist/gitlab-report.js +15 -1
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -1174,6 +1174,20 @@ function safeFileName(value) {
|
|
|
1174
1174
|
return value.replace(/[^a-zA-Z0-9._-]+/g, "_");
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
|
+
// src/util/is-main-module.ts
|
|
1178
|
+
import { realpathSync } from "node:fs";
|
|
1179
|
+
import { fileURLToPath } from "node:url";
|
|
1180
|
+
function isMainModule(metaUrl, argvPath = process.argv[1]) {
|
|
1181
|
+
if (!argvPath) {
|
|
1182
|
+
return false;
|
|
1183
|
+
}
|
|
1184
|
+
try {
|
|
1185
|
+
return realpathSync(fileURLToPath(metaUrl)) === realpathSync(argvPath);
|
|
1186
|
+
} catch {
|
|
1187
|
+
return false;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1177
1191
|
// src/cli.ts
|
|
1178
1192
|
var CLI_USAGE = `Usage:
|
|
1179
1193
|
flow-delta --old <old.flow-meta.xml> --new <new.flow-meta.xml> [--out dir] [--json]
|
|
@@ -1345,7 +1359,7 @@ function globToRegExp(pattern) {
|
|
|
1345
1359
|
source += "$";
|
|
1346
1360
|
return new RegExp(source);
|
|
1347
1361
|
}
|
|
1348
|
-
if (import.meta.url
|
|
1362
|
+
if (isMainModule(import.meta.url)) {
|
|
1349
1363
|
void main();
|
|
1350
1364
|
}
|
|
1351
1365
|
export {
|
package/dist/gitlab-report.js
CHANGED
|
@@ -10,6 +10,20 @@ function safeFileName(value) {
|
|
|
10
10
|
return value.replace(/[^a-zA-Z0-9._-]+/g, "_");
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
// src/util/is-main-module.ts
|
|
14
|
+
import { realpathSync } from "node:fs";
|
|
15
|
+
import { fileURLToPath } from "node:url";
|
|
16
|
+
function isMainModule(metaUrl, argvPath = process.argv[1]) {
|
|
17
|
+
if (!argvPath) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
return realpathSync(fileURLToPath(metaUrl)) === realpathSync(argvPath);
|
|
22
|
+
} catch {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
13
27
|
// src/ci/gitlab-report.ts
|
|
14
28
|
var DEFAULT_MARKER = "<!-- FlowDelta:report -->";
|
|
15
29
|
var REPORTER_USAGE = `Usage:
|
|
@@ -176,7 +190,7 @@ function normalizePath(value) {
|
|
|
176
190
|
function escapeTableCell(value) {
|
|
177
191
|
return value.replaceAll("|", "\\|").replaceAll("`", "\\`").replace(/\r?\n/g, "<br>");
|
|
178
192
|
}
|
|
179
|
-
if (import.meta.url
|
|
193
|
+
if (isMainModule(import.meta.url)) {
|
|
180
194
|
void main();
|
|
181
195
|
}
|
|
182
196
|
export {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syntax-syllogism/flow-delta",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Semantic visual diff for Salesforce Flows",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Jacob Richter",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/Syntax-Syllogism/flow-delta.git"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/Syntax-Syllogism/flow-delta/issues"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://github.com/
|
|
15
|
+
"homepage": "https://github.com/Syntax-Syllogism/flow-delta#readme",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"salesforce",
|
|
18
18
|
"flow",
|