@rsdoctor/types 0.1.4 → 0.1.6-beta.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.
@@ -2,6 +2,10 @@ import { PlainObject, ObjectPropertyNames } from './common';
2
2
  import { StoreData } from './sdk';
3
3
  export interface RsdoctorManifest {
4
4
  client: RsdoctorManifestClient;
5
+ /**
6
+ * manifest url in tos, used by inner-rsdoctor.
7
+ */
8
+ cloudManifestUrl?: string;
5
9
  data: RsdoctorManifestData;
6
10
  /** current build name */
7
11
  name?: string;
@@ -18,6 +22,10 @@ export interface RsdoctorManifestSeriesData {
18
22
  }
19
23
  export interface RsdoctorManifestWithShardingFiles extends Omit<RsdoctorManifest, 'data'> {
20
24
  data: Record<keyof RsdoctorManifestData, string[] | string>;
25
+ /**
26
+ * manifest data shareding file urls in tos, used by inner-rsdoctor.
27
+ */
28
+ cloudData?: Record<keyof RsdoctorManifestData, string[] | string>;
21
29
  /**
22
30
  * local server will proxy the manifest content and inject `__LOCAL__SERVER__: true`
23
31
  */
@@ -10,6 +10,6 @@ exports.message = {
10
10
  description: `
11
11
  #### Description
12
12
 
13
- Detect if there is a low version of ECMA syntax in the js bundle file
13
+ Detect if there is a newer version of ECMA syntax in the js bundle file
14
14
  `,
15
15
  };
@@ -8,6 +8,7 @@ export interface Hooks {
8
8
  {
9
9
  manifestWithShardingFiles: RsdoctorManifestWithShardingFiles;
10
10
  manifestDiskPath: string;
11
+ manifestCloudPath?: string;
11
12
  }
12
13
  ]>;
13
14
  }
@@ -77,6 +77,7 @@ export interface RsdoctorSDKInstance {
77
77
  /** Change build name */
78
78
  setName(name: string): void;
79
79
  setHash(hash: string): void;
80
+ getHash(): string;
80
81
  /**
81
82
  * write the manifest to a folder
82
83
  * - use this.outputDir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/types",
3
- "version": "0.1.4",
3
+ "version": "0.1.6-beta.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",