@atlaspack/utils 2.18.2 → 2.18.3

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.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaspack/utils
2
2
 
3
+ ## 2.18.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
8
+
9
+ - [#754](https://github.com/atlassian-labs/atlaspack/pull/754) [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2) Thanks [@benjervis](https://github.com/benjervis)! - Adds padding to the progress reporting improvement lines so that the numbers appear right aligned
10
+
11
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd)]:
12
+ - @atlaspack/types-internal@2.19.2
13
+ - @atlaspack/feature-flags@2.23.1
14
+ - @atlaspack/markdown-ansi@2.14.3
15
+ - @atlaspack/diagnostic@2.14.3
16
+ - @atlaspack/codeframe@2.13.8
17
+ - @atlaspack/logger@2.14.18
18
+ - @atlaspack/rust@3.6.1
19
+
3
20
  ## 2.18.2
4
21
 
5
22
  ### Patch Changes
@@ -32,5 +32,8 @@ function getProgressMessage(event) {
32
32
  }
33
33
  function getPackageProgressMessage(completeBundles, totalBundles) {
34
34
  let percent = Math.floor(completeBundles / totalBundles * 100);
35
- return `Packaging bundles ${completeBundles}/${totalBundles} (${percent}%)`;
35
+ let completeStr = completeBundles.toString();
36
+ let totalStr = totalBundles.toString();
37
+ let displayBundles = completeStr.padStart(totalStr.length, ' ');
38
+ return `Packaging bundles ${displayBundles}/${totalBundles} (${percent}%)`;
36
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/utils",
3
- "version": "2.18.2",
3
+ "version": "2.18.3",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -31,13 +31,13 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@atlaspack/codeframe": "2.13.7",
35
- "@atlaspack/diagnostic": "2.14.2",
36
- "@atlaspack/feature-flags": "2.23.0",
37
- "@atlaspack/logger": "2.14.17",
38
- "@atlaspack/markdown-ansi": "2.14.2",
39
- "@atlaspack/types-internal": "2.19.1",
40
- "@atlaspack/rust": "3.6.0",
34
+ "@atlaspack/codeframe": "2.13.8",
35
+ "@atlaspack/diagnostic": "2.14.3",
36
+ "@atlaspack/feature-flags": "2.23.1",
37
+ "@atlaspack/logger": "2.14.18",
38
+ "@atlaspack/markdown-ansi": "2.14.3",
39
+ "@atlaspack/types-internal": "2.19.2",
40
+ "@atlaspack/rust": "3.6.1",
41
41
  "@parcel/source-map": "^2.1.1",
42
42
  "@types/micromatch": "^4.0.9",
43
43
  "@types/node-forge": "^1.3.13",
@@ -60,7 +60,7 @@
60
60
  "terminal-link": "^2.1.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@atlaspack/babel-register": "2.14.2",
63
+ "@atlaspack/babel-register": "2.14.3",
64
64
  "benny": "^3.7.1",
65
65
  "random-int": "^1.0.0"
66
66
  },
@@ -34,5 +34,10 @@ export function getPackageProgressMessage(
34
34
  totalBundles: number,
35
35
  ): string {
36
36
  let percent = Math.floor((completeBundles / totalBundles) * 100);
37
- return `Packaging bundles ${completeBundles}/${totalBundles} (${percent}%)`;
37
+ let completeStr = completeBundles.toString();
38
+ let totalStr = totalBundles.toString();
39
+
40
+ let displayBundles = completeStr.padStart(totalStr.length, ' ');
41
+
42
+ return `Packaging bundles ${displayBundles}/${totalBundles} (${percent}%)`;
38
43
  }