@rsdoctor/core 2.0.0-beta.4 → 2.0.0-rc.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/dist/e.js +6422 -0
- package/dist/{630.js.LICENSE.txt → e.js.LICENSE.txt} +1 -1
- package/dist/index.d.ts +458 -7
- package/dist/index.js +2532 -1698
- package/dist/index.js.LICENSE.txt +8 -2
- package/dist/probe-loader.d.ts +13 -0
- package/dist/probe-loader.js +1 -1
- package/dist/proxy-loader.d.ts +36 -1
- package/dist/proxy-loader.js +2 -2
- package/dist/{26.js → r.js} +9244 -272
- package/dist/r.js.LICENSE.txt +57 -0
- package/dist/rslib-runtime.js +15 -13
- package/package.json +26 -26
- package/dist/630.js +0 -1280
- package/dist/build-utils/build/chunks/assetsModules.d.ts +0 -23
- package/dist/build-utils/build/chunks/index.d.ts +0 -2
- package/dist/build-utils/build/chunks/rspack/transform.d.ts +0 -13
- package/dist/build-utils/build/envinfo.d.ts +0 -13
- package/dist/build-utils/build/file/cache.d.ts +0 -5
- package/dist/build-utils/build/file/index.d.ts +0 -3
- package/dist/build-utils/build/file/sharding.d.ts +0 -21
- package/dist/build-utils/build/index.d.ts +0 -10
- package/dist/build-utils/build/json.d.ts +0 -3
- package/dist/build-utils/build/loader/index.d.ts +0 -2
- package/dist/build-utils/build/loader/probeLoader.d.ts +0 -9
- package/dist/build-utils/build/loader/probeLoaderPlugin.d.ts +0 -6
- package/dist/build-utils/build/module-graph/index.d.ts +0 -1
- package/dist/build-utils/build/module-graph/rspack/transform.d.ts +0 -26
- package/dist/build-utils/build/process.d.ts +0 -2
- package/dist/build-utils/build/server.d.ts +0 -14
- package/dist/build-utils/build/utils/index.d.ts +0 -3
- package/dist/build-utils/build/utils/loader.d.ts +0 -20
- package/dist/build-utils/build/utils/parseBundle.d.ts +0 -12
- package/dist/build-utils/build/utils/plugin.d.ts +0 -5
- package/dist/build-utils/index.d.ts +0 -11
- package/dist/common/global-config.d.ts +0 -21
- package/dist/compat.d.ts +0 -34
- package/dist/error/error.d.ts +0 -35
- package/dist/error/index.d.ts +0 -2
- package/dist/error/transform.d.ts +0 -3
- package/dist/error/utils.d.ts +0 -4
- package/dist/inner-plugins/constants.d.ts +0 -6
- package/dist/inner-plugins/index.d.ts +0 -2
- package/dist/inner-plugins/loaders/proxy.d.ts +0 -7
- package/dist/inner-plugins/plugins/base.d.ts +0 -12
- package/dist/inner-plugins/plugins/bundle.d.ts +0 -15
- package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.ts +0 -34
- package/dist/inner-plugins/plugins/errors.d.ts +0 -12
- package/dist/inner-plugins/plugins/index.d.ts +0 -10
- package/dist/inner-plugins/plugins/loader.d.ts +0 -12
- package/dist/inner-plugins/plugins/plugins.d.ts +0 -8
- package/dist/inner-plugins/plugins/progress.d.ts +0 -8
- package/dist/inner-plugins/plugins/resolver.d.ts +0 -12
- package/dist/inner-plugins/plugins/rspack.d.ts +0 -9
- package/dist/inner-plugins/plugins/rules.d.ts +0 -8
- package/dist/inner-plugins/plugins/sourcemapTool.d.ts +0 -52
- package/dist/inner-plugins/plugins/summary.d.ts +0 -15
- package/dist/inner-plugins/utils/circleDetect.d.ts +0 -4
- package/dist/inner-plugins/utils/config.d.ts +0 -6
- package/dist/inner-plugins/utils/index.d.ts +0 -9
- package/dist/inner-plugins/utils/loader.d.ts +0 -10
- package/dist/inner-plugins/utils/normalize-config.d.ts +0 -32
- package/dist/inner-plugins/utils/openBrowser.d.ts +0 -1
- package/dist/inner-plugins/utils/plugin-common.d.ts +0 -11
- package/dist/inner-plugins/utils/plugin.d.ts +0 -4
- package/dist/inner-plugins/utils/ruleWarnings.d.ts +0 -2
- package/dist/inner-plugins/utils/sdk.d.ts +0 -8
- package/dist/logger.d.ts +0 -9
- package/dist/rspack-plugin/constants.d.ts +0 -9
- package/dist/rspack-plugin/index.d.ts +0 -1
- package/dist/rspack-plugin/plugin.d.ts +0 -55
- package/dist/rspack-plugin/session.d.ts +0 -19
- package/dist/rspack-plugin/writeStore.d.ts +0 -2
- package/dist/rule-utils/document/document.d.ts +0 -16
- package/dist/rule-utils/document/index.d.ts +0 -3
- package/dist/rule-utils/document/server.d.ts +0 -4
- package/dist/rule-utils/document/types.d.ts +0 -31
- package/dist/rule-utils/index.d.ts +0 -2
- package/dist/rule-utils/parser/asserts.d.ts +0 -81
- package/dist/rule-utils/parser/index.d.ts +0 -4
- package/dist/rule-utils/parser/parser.d.ts +0 -118
- package/dist/rule-utils/parser/types.d.ts +0 -30
- package/dist/rule-utils/parser/utils.d.ts +0 -27
- package/dist/rules/index.d.ts +0 -3
- package/dist/rules/linter.d.ts +0 -9
- package/dist/rules/rule.d.ts +0 -27
- package/dist/rules/rules/cjs-require/index.d.ts +0 -4
- package/dist/rules/rules/cjs-require/types.d.ts +0 -7
- package/dist/rules/rules/cross-chunks-package/index.d.ts +0 -4
- package/dist/rules/rules/cross-chunks-package/types.d.ts +0 -3
- package/dist/rules/rules/cross-chunks-package/utils.d.ts +0 -1
- package/dist/rules/rules/default-import-check/index.d.ts +0 -4
- package/dist/rules/rules/default-import-check/types.d.ts +0 -4
- package/dist/rules/rules/default-import-check/utils.d.ts +0 -10
- package/dist/rules/rules/duplicate-package/index.d.ts +0 -4
- package/dist/rules/rules/duplicate-package/types.d.ts +0 -24
- package/dist/rules/rules/duplicate-package/utils.d.ts +0 -3
- package/dist/rules/rules/ecma-version-check/htmlParserStub.d.ts +0 -3
- package/dist/rules/rules/ecma-version-check/index.d.ts +0 -5
- package/dist/rules/rules/ecma-version-check/types.d.ts +0 -13
- package/dist/rules/rules/esm-resolved-to-cjs/index.d.ts +0 -4
- package/dist/rules/rules/esm-resolved-to-cjs/types.d.ts +0 -8
- package/dist/rules/rules/index.d.ts +0 -2
- package/dist/rules/rules/loader-performance-optimization/index.d.ts +0 -4
- package/dist/rules/rules/loader-performance-optimization/types.d.ts +0 -22
- package/dist/rules/rules/loader-performance-optimization/utils.d.ts +0 -1
- package/dist/rules/rules/module-mixed-chunks/index.d.ts +0 -4
- package/dist/rules/rules/module-mixed-chunks/types.d.ts +0 -3
- package/dist/rules/rules/side-effects-only-imports/index.d.ts +0 -4
- package/dist/rules/rules/side-effects-only-imports/types.d.ts +0 -9
- package/dist/rules/utils.d.ts +0 -3
- package/dist/sdk/index.d.ts +0 -2
- package/dist/sdk/multiple/controller.d.ts +0 -26
- package/dist/sdk/multiple/index.d.ts +0 -2
- package/dist/sdk/multiple/primary.d.ts +0 -41
- package/dist/sdk/multiple/server.d.ts +0 -7
- package/dist/sdk/sdk/core.d.ts +0 -34
- package/dist/sdk/sdk/index.d.ts +0 -54
- package/dist/sdk/sdk/types.d.ts +0 -26
- package/dist/sdk/server/apis/alerts.d.ts +0 -5
- package/dist/sdk/server/apis/base.d.ts +0 -11
- package/dist/sdk/server/apis/bundle-diff.d.ts +0 -6
- package/dist/sdk/server/apis/data.d.ts +0 -6
- package/dist/sdk/server/apis/fs.d.ts +0 -5
- package/dist/sdk/server/apis/graph.d.ts +0 -12
- package/dist/sdk/server/apis/index.d.ts +0 -10
- package/dist/sdk/server/apis/loader.d.ts +0 -15
- package/dist/sdk/server/apis/plugin.d.ts +0 -6
- package/dist/sdk/server/apis/project.d.ts +0 -8
- package/dist/sdk/server/apis/renderer.d.ts +0 -6
- package/dist/sdk/server/apis/resolver.d.ts +0 -6
- package/dist/sdk/server/client.d.ts +0 -3
- package/dist/sdk/server/fakeServer.d.ts +0 -9
- package/dist/sdk/server/index.d.ts +0 -44
- package/dist/sdk/server/json-body.d.ts +0 -6
- package/dist/sdk/server/router.d.ts +0 -24
- package/dist/sdk/server/security.d.ts +0 -5
- package/dist/sdk/server/socket/api.d.ts +0 -15
- package/dist/sdk/server/socket/index.d.ts +0 -48
- package/dist/sdk/server/utils.d.ts +0 -6
- package/dist/sdk/utils/base.d.ts +0 -1
- package/dist/sdk/utils/constant.d.ts +0 -1
- package/dist/sdk/utils/date.d.ts +0 -1
- package/dist/sdk/utils/index.d.ts +0 -4
- package/dist/sdk/utils/manifestSharding.d.ts +0 -16
- package/dist/sdk/utils/openBrowser.d.ts +0 -4
- package/dist/sdk/utils/upload.d.ts +0 -2
- package/dist/sdk/utils/writeJson.d.ts +0 -1
- package/dist/sdk.d.ts +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/loader.d.ts +0 -24
- package/dist/types/plugin.d.ts +0 -22
- package/dist/types/rules.d.ts +0 -7
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SDK } from '@rsdoctor/shared/types';
|
|
2
|
-
export declare function getDataByPagination<T>(data: T[], pagination: SDK.ServerAPI.PaginationRequest): {
|
|
3
|
-
data: T[];
|
|
4
|
-
pagination: SDK.ServerAPI.PaginationResponse;
|
|
5
|
-
};
|
|
6
|
-
export declare function getLocalIpAddress(): string;
|
package/dist/sdk/utils/base.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function findRoot(startDir?: string): string | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CLOUD_DIR: string;
|
package/dist/sdk/utils/date.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const formatLocalDate: (date: Date) => string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_MANIFEST_SHARD_SIZE: number;
|
|
2
|
-
interface WriteManifestShardsOptions {
|
|
3
|
-
index?: number;
|
|
4
|
-
shardSize?: number;
|
|
5
|
-
compressionLevel?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ManifestShardFile {
|
|
8
|
-
path: string;
|
|
9
|
-
basename: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Compress JSON fragments as one deflate stream, encode that stream as one
|
|
13
|
-
* continuous Base64 value, and write bounded physical shards.
|
|
14
|
-
*/
|
|
15
|
-
export declare function writeManifestShards(jsonFragments: string[], folder: string, options?: WriteManifestShardsOptions): Promise<ManifestShardFile[]>;
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function writeJsonAtomic(filePath: string, data: unknown): void;
|
package/dist/sdk.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './sdk/index.js';
|
package/dist/types/index.d.ts
DELETED
package/dist/types/loader.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Loader } from '@rsdoctor/shared/common-browser';
|
|
2
|
-
export interface ProxyLoaderInternalOptions {
|
|
3
|
-
/**
|
|
4
|
-
* A session marker registered as a loader build dependency so persistent
|
|
5
|
-
* caches are invalidated when a new Rsdoctor session starts.
|
|
6
|
-
*/
|
|
7
|
-
cacheMarkerPath?: string;
|
|
8
|
-
cwd: string;
|
|
9
|
-
/**
|
|
10
|
-
* the url host of http server(which used to collect data).
|
|
11
|
-
*/
|
|
12
|
-
host: string;
|
|
13
|
-
/**
|
|
14
|
-
* correct loader path.
|
|
15
|
-
*/
|
|
16
|
-
loader: string;
|
|
17
|
-
/** include the loader option */
|
|
18
|
-
hasOptions: boolean;
|
|
19
|
-
skipLoaders: string[];
|
|
20
|
-
}
|
|
21
|
-
export interface ProxyLoaderOptions {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
[Loader.LoaderInternalPropertyName]: ProxyLoaderInternalOptions;
|
|
24
|
-
}
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Linter, Linter as LinterType, Plugin, SDK } from '@rsdoctor/shared/types';
|
|
2
|
-
export interface BasePluginInstance<T extends Plugin.BaseCompiler> {
|
|
3
|
-
apply: (compiler: T) => void;
|
|
4
|
-
[k: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export interface InternalPlugin<T extends Plugin.BaseCompiler, Rules extends LinterType.ExtendRuleData[] = []> extends BasePluginInstance<T> {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly scheduler: RsdoctorPluginInstance<T, Rules>;
|
|
9
|
-
}
|
|
10
|
-
export interface RsdoctorPluginInstance<T extends Plugin.BaseCompiler, Rules extends LinterType.ExtendRuleData[] = []> extends BasePluginInstance<T> {
|
|
11
|
-
readonly name: string;
|
|
12
|
-
readonly options: Plugin.RsdoctorPluginOptionsNormalized<Rules>;
|
|
13
|
-
readonly sdk: SDK.RsdoctorBuilderSDKInstance;
|
|
14
|
-
readonly isRsdoctorPlugin: boolean;
|
|
15
|
-
_modulesGraphApplied?: boolean;
|
|
16
|
-
chunkGraph?: SDK.ChunkGraphInstance;
|
|
17
|
-
modulesGraph: SDK.ModuleGraphInstance;
|
|
18
|
-
ensureModulesChunksGraphApplied(compiler: T): void;
|
|
19
|
-
}
|
|
20
|
-
export type RsdoctorRspackPluginInstance<Rules extends LinterType.ExtendRuleData[] = []> = RsdoctorPluginInstance<Plugin.BaseCompilerType<'rspack'>, Rules>;
|
|
21
|
-
export type RsdoctorRspackPluginOptions<Rules extends LinterType.ExtendRuleData[]> = Plugin.RsdoctorRspackPluginOptions<Rules>;
|
|
22
|
-
export type RsdoctorRspackPluginOptionsNormalized<Rules extends Linter.ExtendRuleData[]> = Plugin.RsdoctorPluginOptionsNormalized<Rules>;
|