@rsdoctor/utils 1.2.2-beta.3 → 1.2.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.
@@ -136,10 +136,7 @@ class APIDataLoader {
136
136
  const { isRspack, hasSourceMap } = (0, external_rspack_js_namespaceObject.checkSourceMapSupport)(configs);
137
137
  const { assets = [], chunks = [] } = res[0] || {};
138
138
  const { modules = [] } = res[1] || {};
139
- const checkModules = (module)=>{
140
- if (0 === module.size.parsedSize) return false;
141
- return true;
142
- };
139
+ const checkModules = (_module)=>true;
143
140
  return index_js_namespaceObject.getAssetDetails(assetPath, assets, chunks, modules, isRspack || hasSourceMap ? checkModules : ()=>true);
144
141
  });
145
142
  case types_namespaceObject.SDK.ServerAPI.API.GetSummaryBundles:
@@ -304,8 +301,6 @@ class APIDataLoader {
304
301
  moduleCodeMap
305
302
  };
306
303
  });
307
- case types_namespaceObject.SDK.ServerAPI.API.GetTileReportHtml:
308
- return this.loader.loadData('otherReports').then((otherReports)=>null == otherReports ? void 0 : otherReports.tileReportHtml);
309
304
  case types_namespaceObject.SDK.ServerAPI.API.GetChunkGraph:
310
305
  return this.loader.loadData('chunkGraph').then((res)=>{
311
306
  const { chunks = [] } = res || {};
@@ -108,10 +108,7 @@ class APIDataLoader {
108
108
  const { isRspack, hasSourceMap } = checkSourceMapSupport(configs);
109
109
  const { assets = [], chunks = [] } = res[0] || {};
110
110
  const { modules = [] } = res[1] || {};
111
- const checkModules = (module)=>{
112
- if (0 === module.size.parsedSize) return false;
113
- return true;
114
- };
111
+ const checkModules = (_module)=>true;
115
112
  return getAssetDetails(assetPath, assets, chunks, modules, isRspack || hasSourceMap ? checkModules : ()=>true);
116
113
  });
117
114
  case SDK.ServerAPI.API.GetSummaryBundles:
@@ -276,8 +273,6 @@ class APIDataLoader {
276
273
  moduleCodeMap
277
274
  };
278
275
  });
279
- case SDK.ServerAPI.API.GetTileReportHtml:
280
- return this.loader.loadData('otherReports').then((otherReports)=>null == otherReports ? void 0 : otherReports.tileReportHtml);
281
276
  case SDK.ServerAPI.API.GetChunkGraph:
282
277
  return this.loader.loadData('chunkGraph').then((res)=>{
283
278
  const { chunks = [] } = res || {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,GAAG,EAAE,QAAQ,EAAa,MAAM,iBAAiB,CAAC;AAUjE;;GAEG;AACH,qBAAa,aAAa;IACZ,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,kBAAkB;gBAAnC,MAAM,EAAE,QAAQ,CAAC,kBAAkB;IAIlD,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE;IAItB,OAAO,CACZ,CAAC,SAAS,GAAG,CAAC,SAAS,CAAC,GAAG,EAC3B,CAAC,SACC,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAC/E,CAAC,SACC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAEzE,GAAG,IAAI,EAAE,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,GACrD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAuhB/C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,GAAG,EAAE,QAAQ,EAAa,MAAM,iBAAiB,CAAC;AAUjE;;GAEG;AACH,qBAAa,aAAa;IACZ,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,kBAAkB;gBAAnC,MAAM,EAAE,QAAQ,CAAC,kBAAkB;IAIlD,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE;IAItB,OAAO,CACZ,CAAC,SAAS,GAAG,CAAC,SAAS,CAAC,GAAG,EAC3B,CAAC,SACC,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAC/E,CAAC,SACC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAEzE,GAAG,IAAI,EAAE,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,GACrD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAmhB/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/utils",
3
- "version": "1.2.2-beta.3",
3
+ "version": "1.2.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -83,7 +83,7 @@
83
83
  "picocolors": "^1.1.1",
84
84
  "rslog": "^1.2.9",
85
85
  "strip-ansi": "^6.0.1",
86
- "@rsdoctor/types": "1.2.2-beta.3"
86
+ "@rsdoctor/types": "1.2.3"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@rslib/core": "^0.11.0",