align-spaces 2.0.0 → 3.0.0
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/ChangeLog +11 -0
- package/README.md +2 -2
- package/bin/align-spaces.js +3 -6
- package/lib/align-spaces.js +1 -3
- package/package.json +9 -10
package/ChangeLog
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
2026.02.10, v3.0.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- b1a7c93 align-spaces: migrate to ESM
|
|
5
|
+
- 3fd9d3d align-spaces: try-catch v4.0.9
|
|
6
|
+
- 4b98e76 align-spaces: supertape v12.4.0
|
|
7
|
+
- 9cf1108 align-spaces: putout v41.20.1
|
|
8
|
+
- dffacb4 align-spaces: madrun v12.1.3
|
|
9
|
+
- e752d5b align-spaces: eslint-plugin-putout v30.0.2
|
|
10
|
+
- 6d07553 align-spaces: eslint v10.0.0
|
|
11
|
+
|
|
1
12
|
2025.02.09, v2.0.0
|
|
2
13
|
|
|
3
14
|
feature:
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ align-spaces unaligned.js
|
|
|
26
26
|
`align-spaces` can be used as a library:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
|
-
|
|
29
|
+
import {alignSpaces} from 'align-spaces';
|
|
30
30
|
|
|
31
31
|
alignSpaces(`
|
|
32
32
|
const t = 'hello';
|
|
@@ -42,7 +42,7 @@ module.exports = () => {
|
|
|
42
42
|
`
|
|
43
43
|
const t = 'hello';
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
export defualt function() {
|
|
46
46
|
cosnt m = 'world';
|
|
47
47
|
....
|
|
48
48
|
return t + m;
|
package/bin/align-spaces.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import process from 'node:process';
|
|
4
|
+
import fs from 'node:fs';
|
|
5
|
+
import {alignSpaces} from '../lib/align-spaces.js';
|
|
4
6
|
|
|
5
|
-
const process = require('node:process');
|
|
6
7
|
const [name] = process.argv.slice(2);
|
|
7
8
|
|
|
8
9
|
if (!name) {
|
|
@@ -10,10 +11,6 @@ if (!name) {
|
|
|
10
11
|
process.exit();
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const fs = require('node:fs');
|
|
14
|
-
|
|
15
|
-
const alignSpaces = require('..');
|
|
16
|
-
|
|
17
14
|
const str = fs.readFileSync(name, 'utf8');
|
|
18
15
|
|
|
19
16
|
fs.writeFileSync(name, alignSpaces(str));
|
package/lib/align-spaces.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "align-spaces",
|
|
3
|
-
"version": "
|
|
4
|
-
"type": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "align spaces on empty lines of a source code",
|
|
7
7
|
"homepage": "http://github.com/coderaiser/align-spaces",
|
|
@@ -31,18 +31,17 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"c8": "^10.1.3",
|
|
33
33
|
"coveralls": "^3.0.0",
|
|
34
|
-
"eslint": "^
|
|
35
|
-
"eslint-plugin-
|
|
36
|
-
"
|
|
37
|
-
"madrun": "^10.2.4",
|
|
34
|
+
"eslint": "^10.0.0",
|
|
35
|
+
"eslint-plugin-putout": "^30.0.2",
|
|
36
|
+
"madrun": "^12.1.3",
|
|
38
37
|
"nodemon": "^3.1.9",
|
|
39
|
-
"putout": "^
|
|
40
|
-
"supertape": "^
|
|
41
|
-
"try-catch": "^
|
|
38
|
+
"putout": "^41.20.1",
|
|
39
|
+
"supertape": "^12.4.0",
|
|
40
|
+
"try-catch": "^4.0.9"
|
|
42
41
|
},
|
|
43
42
|
"license": "MIT",
|
|
44
43
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
44
|
+
"node": ">=22"
|
|
46
45
|
},
|
|
47
46
|
"publishConfig": {
|
|
48
47
|
"access": "public"
|