@rsdoctor/core 2.0.0-beta.3 → 2.0.0-rc.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/{630.js → e.js} +3 -3
- package/dist/index.js +2098 -23
- package/dist/index.js.LICENSE.txt +45 -0
- package/dist/inner-plugins/plugins/sourcemapTool.d.ts +3 -8
- package/dist/probe-loader.js +1 -1
- package/dist/proxy-loader.js +2 -2
- package/dist/{26.js → r.js} +489 -48
- package/dist/rslib-runtime.js +18 -11
- package/dist/sdk/multiple/controller.d.ts +3 -0
- package/dist/sdk/multiple/primary.d.ts +1 -0
- package/dist/sdk/sdk/index.d.ts +2 -0
- package/dist/sdk/utils/writeJson.d.ts +1 -0
- package/package.json +6 -6
- /package/dist/{630.js.LICENSE.txt → e.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* bytes
|
|
3
|
+
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
4
|
+
* Copyright(c) 2015 Jed Watson
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* depd
|
|
10
|
+
* Copyright(c) 2014-2018 Douglas Christopher Wilson
|
|
11
|
+
* MIT Licensed
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/*!
|
|
15
|
+
* http-errors
|
|
16
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
17
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
18
|
+
* MIT Licensed
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/*!
|
|
22
|
+
* raw-body
|
|
23
|
+
* Copyright(c) 2013-2014 Jonathan Ong
|
|
24
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
25
|
+
* MIT Licensed
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/*!
|
|
29
|
+
* statuses
|
|
30
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
31
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
32
|
+
* MIT Licensed
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
* toidentifier
|
|
37
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
38
|
+
* MIT Licensed
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/*!
|
|
42
|
+
* unpipe
|
|
43
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
44
|
+
* MIT Licensed
|
|
45
|
+
*/
|
|
@@ -6,24 +6,21 @@ export declare const UNASSIGNED = "[unassigned]";
|
|
|
6
6
|
* @param compilation - The current compilation object.
|
|
7
7
|
* @param pluginInstance - The Rsdoctor plugin instance.
|
|
8
8
|
* @param sourceMapFilenameRegex - Regex to extract file paths from source map sources.
|
|
9
|
-
* @param namespace - Optional namespace for resolving sources.
|
|
10
9
|
*/
|
|
11
10
|
interface SourceMapAssetOptions {
|
|
12
11
|
compilation: Plugin.BaseCompilation;
|
|
13
12
|
pluginInstance: RsdoctorPluginInstance<Plugin.BaseCompiler, Linter.ExtendRuleData<any, string>[]>;
|
|
14
13
|
sourceMapFilenameRegex: RegExp;
|
|
15
|
-
namespace?: string;
|
|
16
14
|
}
|
|
17
15
|
/**
|
|
18
16
|
* Binds a context cache to a source path resolver.
|
|
19
17
|
* @param context - The base context directory.
|
|
20
|
-
* @param namespace - Optional namespace for resolving sources.
|
|
21
18
|
* @param cache - The cache map to store resolved paths.
|
|
22
19
|
* @param sourceMapDir - The directory containing source maps.
|
|
23
20
|
* @param sourceRoot - The source root directory.
|
|
24
21
|
* @returns A function that resolves source paths based on the given context.
|
|
25
22
|
*/
|
|
26
|
-
export declare function bindContextCache(context: string,
|
|
23
|
+
export declare function bindContextCache(context: string, cache?: Map<string, string>, sourceMapDir?: string, sourceRoot?: string): (source: string, sourceMapFilenameRegex?: RegExp) => string;
|
|
27
24
|
/**
|
|
28
25
|
* Collects and processes source map information for a given asset.
|
|
29
26
|
* Groups mappings by line, sorts them, and reconstructs the original source code segments.
|
|
@@ -32,17 +29,15 @@ export declare function bindContextCache(context: string, namespace?: string, ca
|
|
|
32
29
|
* @param _compilation - The current compilation object.
|
|
33
30
|
* @param _this - The Rsdoctor plugin instance.
|
|
34
31
|
* @param sourceMapFilenameRegex - Regex to extract file paths from source map sources.
|
|
35
|
-
* @param namespace - Optional namespace for resolving sources.
|
|
36
32
|
*/
|
|
37
|
-
export declare function collectSourceMaps(map: any, assetLinesCodeList: string[], _compilation: Plugin.BaseCompilation, _this: RsdoctorPluginInstance<Plugin.BaseCompiler, Linter.ExtendRuleData[]>, sourceMapFilenameRegex?: RegExp,
|
|
33
|
+
export declare function collectSourceMaps(map: any, assetLinesCodeList: string[], _compilation: Plugin.BaseCompilation, _this: RsdoctorPluginInstance<Plugin.BaseCompiler, Linter.ExtendRuleData[]>, sourceMapFilenameRegex?: RegExp, skipSources?: Set<string>, sourceMapPath?: string): Promise<void>;
|
|
38
34
|
/**
|
|
39
35
|
* Handles the afterEmit event for assets to collect source map information.
|
|
40
36
|
* @param compilation - The current compilation object.
|
|
41
37
|
* @param _this - The Rsdoctor plugin instance.
|
|
42
38
|
* @param sourceMapFilenameRegex - Regex to extract file paths from source map sources.
|
|
43
|
-
* @param namespace - Optional namespace for resolving sources.
|
|
44
39
|
*/
|
|
45
|
-
export declare function handleAfterEmitAssets(compilation: Plugin.BaseCompilation, _this: RsdoctorPluginInstance<Plugin.BaseCompiler, Linter.ExtendRuleData<any, string>[]>, sourceMapFilenameRegex?: RegExp
|
|
40
|
+
export declare function handleAfterEmitAssets(compilation: Plugin.BaseCompilation, _this: RsdoctorPluginInstance<Plugin.BaseCompiler, Linter.ExtendRuleData<any, string>[]>, sourceMapFilenameRegex?: RegExp): Promise<void>;
|
|
46
41
|
/**
|
|
47
42
|
* Handles the emit event for assets to collect source map information.
|
|
48
43
|
* @param options - The options for handling source map assets.
|
package/dist/probe-loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
export { default } from "./
|
|
2
|
+
export { default } from "./e.js";
|
package/dist/proxy-loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import { shouldSkipLoader, reportLoader, getInternalLoaderOptions, getOriginLoaderModule } from "./
|
|
3
|
-
import { createLoaderContextTrap } from "./
|
|
2
|
+
import { shouldSkipLoader, reportLoader, getInternalLoaderOptions, getOriginLoaderModule } from "./r.js";
|
|
3
|
+
import { createLoaderContextTrap } from "./e.js";
|
|
4
4
|
function addCacheMarkerDependency(context) {
|
|
5
5
|
let { cacheMarkerPath } = getInternalLoaderOptions(context);
|
|
6
6
|
cacheMarkerPath && context.addBuildDependency(cacheMarkerPath);
|