@rsdoctor/types 1.5.6 → 1.5.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.
Files changed (2) hide show
  1. package/dist/client.d.ts +54 -0
  2. package/package.json +1 -1
package/dist/client.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { ModuleSize } from './sdk/module.js';
1
2
  export declare enum RsdoctorClientUrlQuery {
2
3
  BundleDiffFiles = "__bundle_files__",
3
4
  ManifestFile = "manifest",
@@ -107,4 +108,57 @@ export interface RsdoctorClientAssetsSummary {
107
108
  total: AssetInfo;
108
109
  };
109
110
  }
111
+ export interface RsdoctorClientModuleDiffItem {
112
+ path: string;
113
+ size: {
114
+ baseline: ModuleSize;
115
+ current: ModuleSize;
116
+ };
117
+ /** Percent change based on parsedSize */
118
+ percent: number;
119
+ state: RsdoctorClientDiffState;
120
+ }
121
+ export interface RsdoctorClientModulesDiffResult {
122
+ added: Array<{
123
+ path: string;
124
+ size: ModuleSize;
125
+ }>;
126
+ removed: Array<{
127
+ path: string;
128
+ size: ModuleSize;
129
+ }>;
130
+ changed: RsdoctorClientModuleDiffItem[];
131
+ }
132
+ export interface RsdoctorClientPackageDiffItem {
133
+ name: string;
134
+ version: string;
135
+ root: string;
136
+ size: {
137
+ baseline: ModuleSize;
138
+ current: ModuleSize;
139
+ };
140
+ /** Percent change based on parsedSize */
141
+ percent: number;
142
+ state: RsdoctorClientDiffState;
143
+ }
144
+ export interface RsdoctorClientPackagesDiffResult {
145
+ added: Array<{
146
+ name: string;
147
+ version: string;
148
+ root: string;
149
+ size: ModuleSize;
150
+ }>;
151
+ removed: Array<{
152
+ name: string;
153
+ version: string;
154
+ root: string;
155
+ size: ModuleSize;
156
+ }>;
157
+ changed: RsdoctorClientPackageDiffItem[];
158
+ }
159
+ export interface RsdoctorClientBundleDiffResult {
160
+ assets: RsdoctorClientAssetsDiffResult;
161
+ modules: RsdoctorClientModulesDiffResult;
162
+ packages: RsdoctorClientPackagesDiffResult;
163
+ }
110
164
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/types",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",