@rsdoctor/utils 1.5.1 → 1.5.2-beta.0

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/dist/common.cjs CHANGED
@@ -873,8 +873,8 @@ for(var __rspack_i in (()=>{
873
873
  total: diffAssetsByExtensions(baseline, current)
874
874
  },
875
875
  js: {
876
- total: diffAssetsByExtensions(baseline, current, types_.Constants.JSExtension),
877
- initial: diffAssetsByExtensions(baseline, current, types_.Constants.JSExtension, !0)
876
+ total: diffAssetsByExtensions(baseline, current, types_.Constants.JSExtensions),
877
+ initial: diffAssetsByExtensions(baseline, current, types_.Constants.JSExtensions, !0)
878
878
  },
879
879
  css: {
880
880
  total: diffAssetsByExtensions(baseline, current, types_.Constants.CSSExtension),
@@ -894,7 +894,7 @@ for(var __rspack_i in (()=>{
894
894
  },
895
895
  others: {
896
896
  total: diffAssetsByExtensions(baseline, current, (asset)=>!isAssetMatchExtensions(asset, [
897
- types_.Constants.JSExtension,
897
+ ...types_.Constants.JSExtensions,
898
898
  types_.Constants.CSSExtension,
899
899
  types_.Constants.HtmlExtension
900
900
  ].concat(types_.Constants.ImgExtensions, types_.Constants.MediaExtensions, types_.Constants.FontExtensions, types_.Constants.MapExtensions)))
@@ -940,7 +940,7 @@ for(var __rspack_i in (()=>{
940
940
  function getAssetsSummary(assets, chunks, options = {}) {
941
941
  let jsOpt = {
942
942
  ...options,
943
- filterOrExtensions: types_.Constants.JSExtension
943
+ filterOrExtensions: types_.Constants.JSExtensions
944
944
  }, cssOpt = {
945
945
  ...options,
946
946
  filterOrExtensions: types_.Constants.CSSExtension
@@ -959,7 +959,7 @@ for(var __rspack_i in (()=>{
959
959
  }, otherOpt = {
960
960
  ...options,
961
961
  filterOrExtensions: (asset)=>!isAssetMatchExtensions(asset, [
962
- types_.Constants.JSExtension,
962
+ ...types_.Constants.JSExtensions,
963
963
  types_.Constants.CSSExtension,
964
964
  types_.Constants.HtmlExtension
965
965
  ].concat(types_.Constants.ImgExtensions, types_.Constants.MediaExtensions, types_.Constants.FontExtensions, types_.Constants.MapExtensions))
package/dist/common.js CHANGED
@@ -662,8 +662,8 @@ function getAssetsDiffResult(baseline, current) {
662
662
  total: diffAssetsByExtensions(baseline, current)
663
663
  },
664
664
  js: {
665
- total: diffAssetsByExtensions(baseline, current, types_Constants.JSExtension),
666
- initial: diffAssetsByExtensions(baseline, current, types_Constants.JSExtension, !0)
665
+ total: diffAssetsByExtensions(baseline, current, types_Constants.JSExtensions),
666
+ initial: diffAssetsByExtensions(baseline, current, types_Constants.JSExtensions, !0)
667
667
  },
668
668
  css: {
669
669
  total: diffAssetsByExtensions(baseline, current, types_Constants.CSSExtension),
@@ -683,7 +683,7 @@ function getAssetsDiffResult(baseline, current) {
683
683
  },
684
684
  others: {
685
685
  total: diffAssetsByExtensions(baseline, current, (asset)=>!isAssetMatchExtensions(asset, [
686
- types_Constants.JSExtension,
686
+ ...types_Constants.JSExtensions,
687
687
  types_Constants.CSSExtension,
688
688
  types_Constants.HtmlExtension
689
689
  ].concat(types_Constants.ImgExtensions, types_Constants.MediaExtensions, types_Constants.FontExtensions, types_Constants.MapExtensions)))
@@ -729,7 +729,7 @@ function diffAssetsByExtensions(baseline, current, filterOrExtensions, isInitial
729
729
  function getAssetsSummary(assets, chunks, options = {}) {
730
730
  let jsOpt = {
731
731
  ...options,
732
- filterOrExtensions: types_Constants.JSExtension
732
+ filterOrExtensions: types_Constants.JSExtensions
733
733
  }, cssOpt = {
734
734
  ...options,
735
735
  filterOrExtensions: types_Constants.CSSExtension
@@ -748,7 +748,7 @@ function getAssetsSummary(assets, chunks, options = {}) {
748
748
  }, otherOpt = {
749
749
  ...options,
750
750
  filterOrExtensions: (asset)=>!isAssetMatchExtensions(asset, [
751
- types_Constants.JSExtension,
751
+ ...types_Constants.JSExtensions,
752
752
  types_Constants.CSSExtension,
753
753
  types_Constants.HtmlExtension
754
754
  ].concat(types_Constants.ImgExtensions, types_Constants.MediaExtensions, types_Constants.FontExtensions, types_Constants.MapExtensions))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/utils",
3
- "version": "1.5.1",
3
+ "version": "1.5.2-beta.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -76,7 +76,7 @@
76
76
  "picocolors": "^1.1.1",
77
77
  "rslog": "^1.2.11",
78
78
  "strip-ansi": "^6.0.1",
79
- "@rsdoctor/types": "1.5.1"
79
+ "@rsdoctor/types": "1.5.2-beta.0"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@types/babel__code-frame": "7.27.0",