@jsenv/file-size-impact 14.3.8 → 14.3.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/file-size-impact",
3
- "version": "14.3.8",
3
+ "version": "14.3.10",
4
4
  "description": "Add files size impact into pull requests",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@jsenv/dynamic-import-worker": "1.2.1",
37
- "@jsenv/filesystem": "4.10.10",
38
- "@jsenv/github-pull-request-impact": "1.8.8",
39
- "@jsenv/urls": "2.5.2",
37
+ "@jsenv/filesystem": "4.10.12",
38
+ "@jsenv/github-pull-request-impact": "1.8.10",
39
+ "@jsenv/urls": "2.5.3",
40
40
  "@jsenv/humanize": "1.2.8"
41
41
  }
42
42
  }
package/readme.md CHANGED
@@ -196,10 +196,10 @@ const fileSizeReport = await generateFileSizeReport({
196
196
 
197
197
  ## trackingConfig
198
198
 
199
- _trackingConfig_ parameter is an object used to configure group of files you want to track. This parameter is optional with a default value exported in [src/jsenvTrackingConfig.js](./src/jsenvTrackingConfig.js)
199
+ _trackingConfig_ parameter is an object used to configure group of files you want to track. This parameter is optional with a default value exported in [src/jsenv_tracking_config.js](./src/jsenv_tracking_config.js)
200
200
 
201
201
  _trackingConfig_ keys are group names that will appear in the generated comment.
202
- _trackingConfig_ values are objects associating a pattern to a value. This object is refered as _metaValueMap_ in [@jsenv/url-meta#structuredMetaMap](https://github.com/jsenv/url-meta#structuredmetamap).
202
+ _trackingConfig_ values are objects associating a pattern to a value.
203
203
 
204
204
  For example you can create two groups named _"critical files"_ and _"remaining files"_ like this:
205
205
 
@@ -1,5 +1,5 @@
1
1
  import { collectDirectoryMatchReport } from "@jsenv/filesystem";
2
- import { fileURLToPath } from "node:url";
2
+ import { urlToFileSystemPath } from "@jsenv/urls";
3
3
 
4
4
  export const applyTrackingConfig = async (
5
5
  trackingConfig,
@@ -39,7 +39,7 @@ const applyTracking = async (
39
39
  predicate: (meta) => Boolean(meta.track) || Boolean(meta.manifest),
40
40
  });
41
41
  } catch (e) {
42
- const directoryPath = fileURLToPath(rootDirectoryUrl);
42
+ const directoryPath = urlToFileSystemPath(rootDirectoryUrl);
43
43
  if (e.code === "ENOENT" && e.path === directoryPath) {
44
44
  console.warn(`${directoryPath} does not exists`);
45
45
  return [];