@tywalk/pcf-helper-run 1.3.5 → 1.3.7

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.
@@ -13,7 +13,7 @@ describe('pcf-helper-run performanceUtil', () => {
13
13
  });
14
14
  it('should handle small durations', () => {
15
15
  const result = (0, performanceUtil_1.formatMsToSec)('Quick: %is', 250);
16
- expect(result).toBe('Quick: 0.25s');
16
+ expect(result).toBe('Quick: 0.3s');
17
17
  });
18
18
  it('should handle zero ms', () => {
19
19
  const result = (0, performanceUtil_1.formatMsToSec)('Instant: %is', 0);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Unified CLI interface for Power Platform Component Framework (PCF) development — init, build, import, deploy, and manage PCF controls in Dataverse.",
5
5
  "main": "dist/index.js",
6
6
  "types": "./types/",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@tywalk/color-logger": "^1.0.3",
55
- "@tywalk/pcf-helper": "^1.10.0"
55
+ "@tywalk/pcf-helper": "^1.12.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@semantic-release/git": "^10.0.1",
@@ -21,7 +21,7 @@ const formatter = new Intl.DateTimeFormat('en-US', {
21
21
  * @returns {string} The formatted number of seconds.
22
22
  */
23
23
  function formatMsToSec(format, ms) {
24
- const seconds = ms / 1000;
24
+ const seconds = (ms / 1000).toFixed(1);
25
25
  // %i truncates floats in util.format, so normalize to %f to preserve precision.
26
26
  const normalizedFormat = format.replace(/%i/g, '%f');
27
27
  return util_1.default.format(normalizedFormat, seconds);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Unified CLI interface for Power Platform Component Framework (PCF) development — init, build, import, deploy, and manage PCF controls in Dataverse.",
5
5
  "main": "dist/index.js",
6
6
  "types": "./types/",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@tywalk/color-logger": "^1.0.3",
55
- "@tywalk/pcf-helper": "^1.10.0"
55
+ "@tywalk/pcf-helper": "^1.12.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@semantic-release/git": "^10.0.1",