@bundle-stats/utils 4.7.7 → 4.7.8-beta.1

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": "@bundle-stats/utils",
3
- "version": "4.7.7",
3
+ "version": "4.7.8-beta.1",
4
4
  "description": "BundleStats utils",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/utils#readme",
37
37
  "dependencies": {
38
- "@bundle-stats/plugin-webpack-filter": "^4.7.7",
39
- "@bundle-stats/plugin-webpack-validate": "^4.7.7",
38
+ "@bundle-stats/plugin-webpack-filter": "4.7.8-beta.1",
39
+ "@bundle-stats/plugin-webpack-validate": "4.7.8-beta.1",
40
40
  "query-string": "7.1.3",
41
41
  "serialize-query-params": "2.0.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/jest": "29.5.5",
45
- "@types/lodash": "4.14.199",
46
- "core-js": "3.33.0",
44
+ "@types/jest": "29.5.6",
45
+ "@types/lodash": "4.14.200",
46
+ "core-js": "3.33.1",
47
47
  "jest": "29.7.0",
48
48
  "jest-cli": "29.7.0",
49
49
  "jest-date-mock": "1.0.8",
@@ -57,5 +57,5 @@
57
57
  "core-js": "^3.0.0",
58
58
  "lodash": "^4.0.0"
59
59
  },
60
- "gitHead": "431753d233e136331634ea1f942cffb09d325171"
60
+ "gitHead": "d9b5768b72af63332adcc97cd2451d0353549c71"
61
61
  }
@@ -6,10 +6,10 @@ import { PACKAGES_SEPARATOR, PACKAGE_ID_SEPARATOR } from '../config';
6
6
  import { createGetMetricType } from '../utils/metrics';
7
7
  import { metrics } from './metrics';
8
8
 
9
- // Md5 hash matcher
9
+ // Match hex hash
10
10
  const HASH_PATTERN = '[a-f|0-9]{5,32}';
11
11
 
12
- // Match has prefix
12
+ // Match hash separator
13
13
  const HASH_SEPARATOR_PATTERN = '[-|.]';
14
14
 
15
15
  // Match multiple extensions: .js, .js.gz, .min.js, .chunk.js
@@ -19,7 +19,7 @@ const PATTERNS = [
19
19
  // Match path/name-HASH.ext, path/name.HASH.ext, path/name-HASH.chunk.ext
20
20
  `(.*)${HASH_SEPARATOR_PATTERN}${HASH_PATTERN}(${EXTENSION_PATTERN.source})$`,
21
21
 
22
- // Match static/HASH
22
+ // Match static/HASH.ext
23
23
  `(static)/${HASH_PATTERN}(.*${EXTENSION_PATTERN.source})$`,
24
24
  ].map((pattern) => new RegExp(pattern));
25
25