taraskevizer 8.0.3 → 8.0.4
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/bin.js +5 -4
- package/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -2
package/dist/bin.js
CHANGED
|
@@ -14,7 +14,7 @@ const printWithPrefix = (msg) => {
|
|
|
14
14
|
process.argv.splice(0, 2);
|
|
15
15
|
const checkForOptions = (options) => process.argv[0] && options.includes(process.argv[0].toLowerCase());
|
|
16
16
|
if (checkForOptions(["-v", "--version"])) {
|
|
17
|
-
printWithPrefix("8.0.
|
|
17
|
+
printWithPrefix("8.0.4");
|
|
18
18
|
process.exit(0);
|
|
19
19
|
}
|
|
20
20
|
if (checkForOptions(["-h", "--help"])) {
|
|
@@ -158,17 +158,18 @@ const optionDict = toHashTable([
|
|
|
158
158
|
]
|
|
159
159
|
]);
|
|
160
160
|
let currOption;
|
|
161
|
-
|
|
161
|
+
process.argv.reverse();
|
|
162
|
+
while (currOption = process.argv.pop()) {
|
|
162
163
|
if (currOption in optionDict) {
|
|
163
164
|
optionDict[currOption]();
|
|
164
165
|
} else {
|
|
165
|
-
process.argv.
|
|
166
|
+
process.argv.push(currOption);
|
|
166
167
|
break;
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
let text = "";
|
|
170
171
|
if (process.argv.length) {
|
|
171
|
-
text = process.argv.join(" ");
|
|
172
|
+
text = process.argv.reverse().join(" ");
|
|
172
173
|
} else {
|
|
173
174
|
const chunks = [];
|
|
174
175
|
let length = 0;
|
package/dist/index.cjs
CHANGED
|
@@ -2399,8 +2399,10 @@ var NOFIX_CHAR = " ";
|
|
|
2399
2399
|
var NOFIX_REGEX = new RegExp(NOFIX_CHAR, "g");
|
|
2400
2400
|
var applyNoFix = (options) => {
|
|
2401
2401
|
const { noFixArr } = options.storage;
|
|
2402
|
-
if (noFixArr.length)
|
|
2403
|
-
|
|
2402
|
+
if (noFixArr.length) {
|
|
2403
|
+
noFixArr.reverse();
|
|
2404
|
+
options.text = options.text.replace(NOFIX_REGEX, () => noFixArr.pop());
|
|
2405
|
+
}
|
|
2404
2406
|
};
|
|
2405
2407
|
var resolveSpecialSyntax = (leftAngleBracket) => mutatingStep(
|
|
2406
2408
|
({
|
package/dist/index.js
CHANGED
|
@@ -2372,8 +2372,10 @@ var NOFIX_CHAR = " ";
|
|
|
2372
2372
|
var NOFIX_REGEX = new RegExp(NOFIX_CHAR, "g");
|
|
2373
2373
|
var applyNoFix = (options) => {
|
|
2374
2374
|
const { noFixArr } = options.storage;
|
|
2375
|
-
if (noFixArr.length)
|
|
2376
|
-
|
|
2375
|
+
if (noFixArr.length) {
|
|
2376
|
+
noFixArr.reverse();
|
|
2377
|
+
options.text = options.text.replace(NOFIX_REGEX, () => noFixArr.pop());
|
|
2378
|
+
}
|
|
2377
2379
|
};
|
|
2378
2380
|
var resolveSpecialSyntax = (leftAngleBracket) => mutatingStep(
|
|
2379
2381
|
({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taraskevizer",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"author": "GooseOb",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"test": "esrun --send-code-mode=temporaryFile test",
|
|
50
50
|
"test-cli": "bun run build && esrun --send-code-mode=temporaryFile test",
|
|
51
51
|
"postinstall": "husky",
|
|
52
|
-
"typecheck": "tsc --project src/tsconfig.json",
|
|
53
52
|
"docs": "typedoc --out docs src/index.ts --skipErrorChecking"
|
|
54
53
|
},
|
|
55
54
|
"sideEffects": false,
|