taraskevizer 7.0.0 → 7.0.2
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 +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -16,7 +16,7 @@ const printWithPrefix = (msg) => {
|
|
|
16
16
|
process.argv.splice(0, 2);
|
|
17
17
|
const checkForOptions = (options) => process.argv[0] && options.includes(process.argv[0].toLowerCase());
|
|
18
18
|
if (checkForOptions(["-v", "--version"])) {
|
|
19
|
-
printWithPrefix("7.0.
|
|
19
|
+
printWithPrefix("7.0.2");
|
|
20
20
|
process.exit(0);
|
|
21
21
|
}
|
|
22
22
|
if (checkForOptions(["-h", "--help"])) {
|
package/dist/index.cjs
CHANGED
|
@@ -2482,7 +2482,10 @@ var whitespacesToSpaces = (text, { storage }) => {
|
|
|
2482
2482
|
return " ";
|
|
2483
2483
|
});
|
|
2484
2484
|
};
|
|
2485
|
-
var restoreWhitespaces = (text, { storage }) =>
|
|
2485
|
+
var restoreWhitespaces = (text, { storage }) => {
|
|
2486
|
+
storage.spaces.reverse();
|
|
2487
|
+
return text.replace(/ /g, () => storage.spaces.pop());
|
|
2488
|
+
};
|
|
2486
2489
|
|
|
2487
2490
|
// src/steps/trim.ts
|
|
2488
2491
|
var trim = (text) => ` ${text.trim()} `;
|
package/dist/index.js
CHANGED
|
@@ -2452,7 +2452,10 @@ var whitespacesToSpaces = (text, { storage }) => {
|
|
|
2452
2452
|
return " ";
|
|
2453
2453
|
});
|
|
2454
2454
|
};
|
|
2455
|
-
var restoreWhitespaces = (text, { storage }) =>
|
|
2455
|
+
var restoreWhitespaces = (text, { storage }) => {
|
|
2456
|
+
storage.spaces.reverse();
|
|
2457
|
+
return text.replace(/ /g, () => storage.spaces.pop());
|
|
2458
|
+
};
|
|
2456
2459
|
|
|
2457
2460
|
// src/steps/trim.ts
|
|
2458
2461
|
var trim = (text) => ` ${text.trim()} `;
|