@rsdoctor/core 2.0.0-beta.3 → 2.0.0-beta.4

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.
@@ -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
+ */
@@ -8,7 +8,12 @@ function __webpack_require__(moduleId) {
8
8
  };
9
9
  return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
10
10
  }
11
- __webpack_require__.m = __webpack_modules__, __webpack_require__.d = (exports, getters, values)=>{
11
+ __webpack_require__.m = __webpack_modules__, __webpack_require__.n = (module)=>{
12
+ var getter = module && module.__esModule ? ()=>module.default : ()=>module;
13
+ return __webpack_require__.d(getter, {
14
+ a: getter
15
+ }), getter;
16
+ }, __webpack_require__.d = (exports, getters, values)=>{
12
17
  var define = (defs, kind)=>{
13
18
  for(var key in defs)__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key) && Object.defineProperty(exports, key, {
14
19
  enumerable: !0,
@@ -6,6 +6,8 @@ export declare class RsdoctorSDKController {
6
6
  private outputDir;
7
7
  private outputOwner?;
8
8
  private refreshManifestTask;
9
+ private readonly compilerDirectories;
10
+ private readonly briefReports;
9
11
  root: string;
10
12
  constructor(root?: string);
11
13
  get master(): RsdoctorPrimarySDK;
@@ -15,6 +17,7 @@ export declare class RsdoctorSDKController {
15
17
  registerSlave(slave: RsdoctorPrimarySDK): void;
16
18
  setOutputDir(slave: RsdoctorPrimarySDK, outputDir: string): void;
17
19
  getCompilerOutputDir(slave: RsdoctorPrimarySDK): string;
20
+ writeBriefJson(current: RsdoctorPrimarySDK, data: Manifest.RsdoctorBriefData): void;
18
21
  getSeriesData(serverUrl?: boolean): Manifest.RsdoctorManifestSeriesData[];
19
22
  getBriefSeriesData(current: RsdoctorPrimarySDK): Manifest.RsdoctorManifestSeriesData[];
20
23
  createSlave({ name, displayName, compilerPath, parentCompilerPath, isChild, stage, extraConfig, type, }: Omit<ConstructorParameters<typeof RsdoctorPrimarySDK>[0], 'controller'>): RsdoctorPrimarySDK;
@@ -29,6 +29,7 @@ export declare class RsdoctorPrimarySDK extends RsdoctorSDK implements SDK.Rsdoc
29
29
  reportFileName: string;
30
30
  constructor({ name, displayName, compilerPath, parentCompilerPath, isChild, stage, controller, extraConfig, type, }: RsdoctorSlaveSDKOptions);
31
31
  get isMaster(): boolean;
32
+ protected writeBriefJson(data: Manifest.RsdoctorBriefData): void;
32
33
  protected writePieces(_storeData: Common.PlainObject, options?: SDK.WriteStoreOptionsType): Promise<void>;
33
34
  protected writeManifest(): Promise<string>;
34
35
  refreshManifestSeries(): Promise<void>;
@@ -42,6 +42,8 @@ export declare class RsdoctorSDK<T extends RsdoctorRspackSDKOptions = RsdoctorRs
42
42
  reportChunkGraph(data: SDK.ChunkGraphInstance): void;
43
43
  reportSummaryData(part: Partial<SDK.SummaryData>): void;
44
44
  createPackageGraph(): void;
45
+ getBriefJsonPath(outputDir?: string): string | undefined;
46
+ protected writeBriefJson(data: Manifest.RsdoctorBriefData): void;
45
47
  writeStore(options?: SDK.WriteStoreOptionsType): Promise<string>;
46
48
  getStoreData(): SDK.BuilderStoreData;
47
49
  getManifestData(): Manifest.RsdoctorManifestWithShardingFiles;
@@ -0,0 +1 @@
1
+ export declare function writeJsonAtomic(filePath: string, data: unknown): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/core",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -50,15 +50,13 @@
50
50
  "get-port": "5.1.1",
51
51
  "launch-editor": "^2.14.1",
52
52
  "lines-and-columns": "2.0.4",
53
- "open": "^11.0.2",
54
- "raw-body": "3.0.2",
55
53
  "rslog": "^2.1.3",
56
54
  "semver": "^7.8.5",
57
55
  "sirv": "3.0.2",
58
56
  "source-map": "^0.7.6",
59
57
  "ws": "8.21.3",
60
- "@rsdoctor/client": "2.0.0-beta.3",
61
- "@rsdoctor/shared": "2.0.0-beta.3"
58
+ "@rsdoctor/client": "2.0.0-beta.4",
59
+ "@rsdoctor/shared": "2.0.0-beta.4"
62
60
  },
63
61
  "devDependencies": {
64
62
  "@rsbuild/plugin-check-syntax": "^1.6.1",
@@ -73,6 +71,8 @@
73
71
  "babel-loader": "10.1.1",
74
72
  "filesize": "^11.0.23",
75
73
  "json-stream-stringify": "3.0.1",
74
+ "open": "^11.0.2",
75
+ "raw-body": "3.0.2",
76
76
  "string-loader": "0.0.1",
77
77
  "ts-loader": "^9.6.2",
78
78
  "typescript": "^7.0.2",