spec-controller 0.1.81 → 0.1.82
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 +16 -8
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -12955,8 +12955,15 @@ function commandList() {
|
|
|
12955
12955
|
};
|
|
12956
12956
|
return { commands, push: (command) => commands.push(command), read };
|
|
12957
12957
|
}
|
|
12958
|
+
function commentLineEnd(text, source, at, word) {
|
|
12959
|
+
if (comment(source, at, word) === void 0)
|
|
12960
|
+
return source;
|
|
12961
|
+
const end = text.indexOf("\n", at);
|
|
12962
|
+
return source[end] === text[end] ? source : `${source.slice(0, end)}
|
|
12963
|
+
${source.slice(end + 1)}`;
|
|
12964
|
+
}
|
|
12958
12965
|
function simpleCommands(text) {
|
|
12959
|
-
|
|
12966
|
+
let source = text.replace(JOINED_LINE, (joined, pairs) => pairs.padEnd(joined.length));
|
|
12960
12967
|
const { commands, push, read } = commandList();
|
|
12961
12968
|
const bodies = [];
|
|
12962
12969
|
let words = [];
|
|
@@ -12964,13 +12971,13 @@ function simpleCommands(text) {
|
|
|
12964
12971
|
let quoted = false;
|
|
12965
12972
|
let target;
|
|
12966
12973
|
const endWord = () => {
|
|
12967
|
-
if (word
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
target
|
|
12973
|
-
|
|
12974
|
+
if (word === void 0)
|
|
12975
|
+
return;
|
|
12976
|
+
if (target === void 0)
|
|
12977
|
+
words.push(word);
|
|
12978
|
+
else if (target.kind === "heredoc")
|
|
12979
|
+
bodies.push({ delimiter: word, tabs: target.tabs, quoted });
|
|
12980
|
+
target = void 0;
|
|
12974
12981
|
word = void 0;
|
|
12975
12982
|
quoted = false;
|
|
12976
12983
|
};
|
|
@@ -12982,6 +12989,7 @@ function simpleCommands(text) {
|
|
|
12982
12989
|
words = [];
|
|
12983
12990
|
};
|
|
12984
12991
|
for (let at = 0; at < source.length; ) {
|
|
12992
|
+
source = commentLineEnd(text, source, at, word);
|
|
12985
12993
|
const token = nextToken(source, at, word);
|
|
12986
12994
|
if (token.kind === "part") {
|
|
12987
12995
|
word = (word ?? "") + token.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.82",
|
|
4
4
|
"description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reconciliation",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"esbuild": "0.28.1",
|
|
26
26
|
"fast-xml-parser": "^5.11.2",
|
|
27
27
|
"yaml": "^2.9.0",
|
|
28
|
-
"@3f-consulting/spec-controller-core": "0.1.
|
|
28
|
+
"@3f-consulting/spec-controller-core": "0.1.82"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|