utilium 2.5.1 → 2.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/lice.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Typescript utilities",
5
5
  "funding": {
6
6
  "type": "individual",
package/scripts/lice.js CHANGED
@@ -30,7 +30,7 @@ const licenseSpec = /^\s*\/(?:\/|\*) SPDX-License-Identifier: (.+)/;
30
30
 
31
31
  async function check_file(path, display) {
32
32
  if (matchesGlob(path, exclude)) {
33
- console.log(styleText('whiteBright', ' (skipped)'));
33
+ console.log(styleText('whiteBright', 'Skipped:'), display);
34
34
  return 'skipped';
35
35
  }
36
36
 
@@ -44,14 +44,14 @@ async function check_file(path, display) {
44
44
  }
45
45
 
46
46
  if (!expectedLicense) {
47
- if (verbose) console.log(styleText(['dim'], 'Found: ') + display);
47
+ if (verbose) console.log(styleText(['dim'], 'Found:'), display);
48
48
  return 'with license';
49
49
  }
50
50
 
51
51
  const [, license] = match;
52
52
 
53
53
  if (license == expectedLicense) {
54
- if (verbose) console.log(styleText(['green', 'dim'], 'Correct: ') + display);
54
+ if (verbose) console.log(styleText(['green', 'dim'], 'Correct:'), display);
55
55
  return 'correct';
56
56
  }
57
57
 
@@ -61,7 +61,7 @@ async function check_file(path, display) {
61
61
 
62
62
  async function write_file(path, display) {
63
63
  if (matchesGlob(path, exclude)) {
64
- console.log(styleText('whiteBright', ' (skipped)'));
64
+ console.log(styleText('whiteBright', 'Skipped:'), display);
65
65
  return 'skipped';
66
66
  }
67
67
 
@@ -79,7 +79,7 @@ async function write_file(path, display) {
79
79
  const [, license] = match;
80
80
 
81
81
  if (license == expectedLicense) {
82
- if (verbose) console.log(styleText(['green', 'dim'], 'Correct: ') + display);
82
+ if (verbose) console.log(styleText(['green', 'dim'], 'Correct:'), display);
83
83
  return 'correct';
84
84
  }
85
85