@rsdoctor/core 0.1.6 → 0.1.7

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.
@@ -46,7 +46,8 @@ function normalizeUserConfig(config = {}) {
46
46
  disableClientServer = false,
47
47
  sdkInstance,
48
48
  reportCodeType = { noModuleSource: false, noAssetsAndModuleSource: false },
49
- disableTOSUpload = false
49
+ disableTOSUpload = false,
50
+ innerClientPath = ""
50
51
  } = config;
51
52
  (0, import_assert.default)(linter && typeof linter === "object");
52
53
  (0, import_assert.default)(features && typeof features === "object");
@@ -93,7 +94,8 @@ function normalizeUserConfig(config = {}) {
93
94
  *
94
95
  * */
95
96
  reportCodeType: reportCodeType ? reportCodeType.noModuleSource ? import_types.SDK.ToDataType.Lite : reportCodeType.noAssetsAndModuleSource ? import_types.SDK.ToDataType.LiteAndNoAsset : import_types.SDK.ToDataType.Normal : _features.lite ? import_types.SDK.ToDataType.Lite : import_types.SDK.ToDataType.Normal,
96
- disableTOSUpload
97
+ disableTOSUpload,
98
+ innerClientPath
97
99
  };
98
100
  return res;
99
101
  }
@@ -3,7 +3,7 @@ import type { RsdoctorSlaveSDK, RsdoctorWebpackSDK } from '@rsdoctor/sdk';
3
3
  import { ChunkGraph, ModuleGraph } from '@rsdoctor/graph';
4
4
  import { rules } from '../rules/rules';
5
5
  import { RuleData } from '@rsdoctor/types/dist/linter';
6
- type InternalRules = typeof rules[number] & RuleData[];
6
+ type InternalRules = (typeof rules)[number] & RuleData[];
7
7
  export interface RsdoctorWebpackPluginOptions<Rules extends LinterType.ExtendRuleData[]> {
8
8
  /** Checker configuration */
9
9
  linter?: LinterType.Options<Rules, InternalRules>;
@@ -38,10 +38,15 @@ export interface RsdoctorWebpackPluginOptions<Rules extends LinterType.ExtendRul
38
38
  noAssetsAndModuleSource?: boolean;
39
39
  } | undefined;
40
40
  /**
41
- * control the Rsdoctor upload data to TOS.
41
+ * control the Rsdoctor upload data to TOS, used by inner-rsdoctor.
42
42
  * @default false
43
43
  */
44
44
  disableTOSUpload?: boolean;
45
+ /**
46
+ * The name of inner rsdoctor's client package, used by inner-rsdoctor.
47
+ * @default false
48
+ */
49
+ innerClientPath?: string;
45
50
  }
46
51
  export interface RsdoctorWebpackMultiplePluginOptions<Rules extends LinterType.ExtendRuleData[] = LinterType.ExtendRuleData[]> extends Omit<RsdoctorWebpackPluginOptions<Rules>, 'sdkInstance'>, Pick<ConstructorParameters<typeof RsdoctorSlaveSDK>[0], 'stage'> {
47
52
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -50,9 +50,9 @@
50
50
  "semver": "^7.5.4",
51
51
  "source-map": "^0.7.4",
52
52
  "webpack-bundle-analyzer": "^4.9.1",
53
- "@rsdoctor/graph": "0.1.6",
54
- "@rsdoctor/sdk": "0.1.6",
55
- "@rsdoctor/utils": "0.1.6"
53
+ "@rsdoctor/graph": "0.1.7",
54
+ "@rsdoctor/sdk": "0.1.7",
55
+ "@rsdoctor/utils": "0.1.7"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@rspack/core": "0.5.1",
@@ -72,8 +72,8 @@
72
72
  "tslib": "2.4.1",
73
73
  "typescript": "^5.2.2",
74
74
  "webpack": "^5.89.0",
75
- "@scripts/test-helper": "0.1.1",
76
- "@rsdoctor/types": "0.1.6"
75
+ "@rsdoctor/types": "0.1.7",
76
+ "@scripts/test-helper": "0.1.1"
77
77
  },
78
78
  "publishConfig": {
79
79
  "access": "public",