@rsdoctor/types 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.
@@ -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
  */
@@ -96,6 +96,7 @@ export interface ResponseTypes extends LoaderAPIResponse, ResolverAPIResponse, P
96
96
  moduleGraph: SDK.ModuleGraphData;
97
97
  packageGraph: SDK.PackageGraphData;
98
98
  moduleCodeMap: SDK.ModuleCodeData;
99
+ cloudManifestUrl: string;
99
100
  };
100
101
  [API.GetModuleCodeByModuleId]: SDK.ModuleSource;
101
102
  [API.GetModuleCodeByModuleIds]: SDK.ModuleCodeData;
@@ -12,6 +12,7 @@ export interface RsdoctorServerInstance {
12
12
  readonly app: connect.Server;
13
13
  readonly port: number;
14
14
  readonly origin: string;
15
+ innerClientPath?: string;
15
16
  get(route: string, cb: (...args: Parameters<connect.NextHandleFunction>) => string | PlainObject): connect.Server;
16
17
  post(route: string, cb: (...args: Parameters<connect.NextHandleFunction>) => string | PlainObject): connect.Server;
17
18
  proxy(route: string, method: 'GET' | 'POST', cb: (...args: Parameters<connect.NextHandleFunction>) => PlainObject | string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/types",
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",