@rsdoctor/core 2.0.2 → 2.0.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.
- package/dist/e.js +3079 -79
- package/dist/e.js.LICENSE.txt +1 -1
- package/dist/index.js +4 -3
- package/dist/r.js +4 -4
- package/package.json +7 -7
package/dist/e.js.LICENSE.txt
CHANGED
package/dist/index.js
CHANGED
|
@@ -3696,9 +3696,10 @@ class GraphAPI extends BaseAPI {
|
|
|
3696
3696
|
});
|
|
3697
3697
|
}
|
|
3698
3698
|
async getModuleGraphForAsset() {
|
|
3699
|
-
let { req } = this.ctx, { assetPath } = req.body;
|
|
3699
|
+
let { req } = this.ctx, { assetPath, withFileContent } = req.body;
|
|
3700
3700
|
return this.dataLoader.loadAPI(SDK.ServerAPI.API.GetAssetDetails, {
|
|
3701
|
-
assetPath
|
|
3701
|
+
assetPath,
|
|
3702
|
+
withFileContent
|
|
3702
3703
|
});
|
|
3703
3704
|
}
|
|
3704
3705
|
async getChunksByModuleId() {
|
|
@@ -5311,7 +5312,7 @@ class RsdoctorSDKController {
|
|
|
5311
5312
|
return this.slaves.filter((item)=>this.activeSlaves.has(item));
|
|
5312
5313
|
}
|
|
5313
5314
|
}
|
|
5314
|
-
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/core","version":"2.0.
|
|
5315
|
+
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/core","version":"2.0.3","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/core"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./proxy-loader":{"types":"./dist/proxy-loader.d.ts","default":"./dist/proxy-loader.js"}},"main":"dist/index.js","types":"dist/index.d.ts","typesVersions":{"*":{".":["./dist/index.d.ts"],"proxy-loader":["./dist/proxy-loader.d.ts"]}},"files":["dist","static"],"scripts":{"build":"rs lib","dev":"npm run start","start":"rs lib -w","test":"rs test"},"dependencies":{"@rsdoctor/client":"workspace:*","@rsdoctor/shared":"workspace:*","@swc-next/parser":"0.6.1","caniuse-lite":"^1.0.30001823","sirv":"catalog:","source-map":"catalog:"},"devDependencies":{"@babel/code-frame":"7.26.2","@rsbuild/plugin-check-syntax":"catalog:","@rspack/core":"catalog:","@rspack/lite-tapable":"catalog:","@scripts/test-helper":"workspace:*","@swc-next/walker":"0.6.1","@types/babel__code-frame":"7.27.0","@types/cors":"2.8.19","@types/envinfo":"7.8.4","@types/estree":"catalog:","@types/fs-extra":"catalog:","@types/node":"catalog:","@types/semver":"^7.8.0","@types/ws":"^8.18.2","babel-loader":"10.1.1","browserslist-load-config":"^1.0.4","connect-next":"catalog:","cors":"2.8.6","envinfo":"7.21.0","filesize":"catalog:","fs-extra":"catalog:","get-port":"5.1.1","json-stream-stringify":"3.0.1","launch-editor":"^2.14.2","lines-and-columns":"2.0.4","open":"^11.0.4","raw-body":"4.0.0","rslog":"^2.3.0","semver":"^7.8.6","string-loader":"0.0.1","ts-loader":"^9.6.2","typescript":"catalog:","ws":"8.22.1"},"peerDependencies":{"@rspack/core":"^2.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"engines":{"node":"^20.19.0 || >=22.12.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
5315
5316
|
let pluginTapName = 'RsdoctorRspackPlugin', pluginTapPostOptions = {
|
|
5316
5317
|
name: pluginTapName,
|
|
5317
5318
|
stage: 999
|
package/dist/r.js
CHANGED
|
@@ -10,7 +10,7 @@ import { EventEmitter } from "node:events";
|
|
|
10
10
|
import http from "http";
|
|
11
11
|
import os_0 from "os";
|
|
12
12
|
import { execFileSync as external_child_process_execFileSync } from "child_process";
|
|
13
|
-
import { Algorithm, Fetch, Graph, Loader, Lodash, Summary, Time } from "@rsdoctor/shared/common-browser";
|
|
13
|
+
import { Algorithm, Fetch, Graph, Loader, Lodash, Summary, Time, decycle } from "@rsdoctor/shared/common-browser";
|
|
14
14
|
import "process";
|
|
15
15
|
import { Asset, Chunk, ChunkGraph, Chunks, Dependency, EntryPoint, Module, extractCodeFromSourceLines, parseLocation } from "@rsdoctor/shared/graph";
|
|
16
16
|
import { Err, Linter, Manifest, Rule, SDK } from "@rsdoctor/shared/types";
|
|
@@ -33744,7 +33744,7 @@ function safeCloneDeep(value, visited = new WeakMap()) {
|
|
|
33744
33744
|
function processCompilerConfig(config) {
|
|
33745
33745
|
let { plugins, infrastructureLogging: _infrastructureLogging, ...rest } = config, _rest = safeCloneDeep(rest);
|
|
33746
33746
|
return _rest.module?.defaultRules && makeRulesSerializable(_rest.module.defaultRules), _rest.module?.rules && makeRulesSerializable(_rest.module.rules), {
|
|
33747
|
-
..._rest,
|
|
33747
|
+
...decycle(_rest),
|
|
33748
33748
|
plugins: plugins.map((e)=>e?.constructor.name)
|
|
33749
33749
|
};
|
|
33750
33750
|
}
|
|
@@ -33829,8 +33829,8 @@ class InternalLoaderPlugin extends InternalBasePlugin {
|
|
|
33829
33829
|
try {
|
|
33830
33830
|
if (compilation.compiler && compilation.compiler !== compiler) return;
|
|
33831
33831
|
let wrapper = (callback)=>(loaderContext, module)=>{
|
|
33832
|
-
let
|
|
33833
|
-
let rawOptions = loader.options, opts = 'object' == typeof rawOptions && null !== rawOptions ? rawOptions : {};
|
|
33832
|
+
let proxyLoaders = module?.loaders || loaderContext?.loaders || [], contextLoaders = loaderContext?.loaders ?? [], originLoaders = proxyLoaders.map((loader, index)=>{
|
|
33833
|
+
let contextLoader = contextLoaders[index], rawOptions = loader.options ?? (contextLoader?.request === loader.loader ? contextLoader.options : void 0), opts = 'object' == typeof rawOptions && null !== rawOptions ? rawOptions : {};
|
|
33834
33834
|
return opts[Loader.LoaderInternalPropertyName] ? {
|
|
33835
33835
|
...loader,
|
|
33836
33836
|
loader: opts[Loader.LoaderInternalPropertyName].loader,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"static"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@rsdoctor/client": "2.0.
|
|
39
|
-
"@rsdoctor/shared": "2.0.
|
|
40
|
-
"@swc-next/parser": "0.
|
|
41
|
-
"caniuse-lite": "^1.0.
|
|
38
|
+
"@rsdoctor/client": "2.0.3",
|
|
39
|
+
"@rsdoctor/shared": "2.0.3",
|
|
40
|
+
"@swc-next/parser": "0.6.1",
|
|
41
|
+
"caniuse-lite": "^1.0.30001823",
|
|
42
42
|
"sirv": "3.0.2",
|
|
43
43
|
"source-map": "^0.8.0"
|
|
44
44
|
},
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@rspack/core": "^2.3.1",
|
|
49
49
|
"@rspack/lite-tapable": "^1.3.0",
|
|
50
50
|
"@scripts/test-helper": "0.1.1",
|
|
51
|
+
"@swc-next/walker": "0.6.1",
|
|
51
52
|
"@types/babel__code-frame": "7.27.0",
|
|
52
53
|
"@types/cors": "2.8.19",
|
|
53
54
|
"@types/envinfo": "7.8.4",
|
|
@@ -61,8 +62,7 @@
|
|
|
61
62
|
"connect-next": "5.0.0",
|
|
62
63
|
"cors": "2.8.6",
|
|
63
64
|
"envinfo": "7.21.0",
|
|
64
|
-
"
|
|
65
|
-
"filesize": "^11.0.29",
|
|
65
|
+
"filesize": "^11.0.30",
|
|
66
66
|
"fs-extra": "^11.1.1",
|
|
67
67
|
"get-port": "5.1.1",
|
|
68
68
|
"json-stream-stringify": "3.0.1",
|