@rolldown/debug 1.0.0-beta.8-commit.d53650c → 1.0.0-beta.8-commit.2686eb1

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.
@@ -1,3 +1,3 @@
1
1
  export type BuildEnd = {
2
- kind: 'BuildEnd';
2
+ action: 'BuildEnd';
3
3
  };
@@ -1,3 +1,3 @@
1
1
  export type BuildStart = {
2
- kind: 'BuildStart';
2
+ action: 'BuildStart';
3
3
  };
@@ -1,5 +1,5 @@
1
1
  export type HookLoadCallEnd = {
2
- kind: 'HookLoadCallEnd';
2
+ action: 'HookLoadCallEnd';
3
3
  module_id: string;
4
4
  source: string | null;
5
5
  plugin_name: string;
@@ -1,5 +1,5 @@
1
1
  export type HookLoadCallStart = {
2
- kind: 'HookLoadCallStart';
2
+ action: 'HookLoadCallStart';
3
3
  module_id: string;
4
4
  plugin_name: string;
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  export type HookResolveIdCallEnd = {
2
- kind: 'HookResolveIdCallEnd';
2
+ action: 'HookResolveIdCallEnd';
3
3
  resolved_id: string | null;
4
4
  /**
5
5
  * If the value is `true/false`, it means the plugin explicitly returned the value for this field.
@@ -10,4 +10,6 @@ export type HookResolveIdCallEnd = {
10
10
  * The index of the plugin in the plugin list. It's unique to each plugin.
11
11
  */
12
12
  plugin_index: number;
13
+ trigger: 'automatic' | 'manual';
14
+ call_id: string;
13
15
  };
@@ -1,5 +1,5 @@
1
1
  export type HookResolveIdCallStart = {
2
- kind: 'HookResolveIdCallStart';
2
+ action: 'HookResolveIdCallStart';
3
3
  importer: string | null;
4
4
  module_request: string;
5
5
  import_kind: string;
@@ -8,4 +8,6 @@ export type HookResolveIdCallStart = {
8
8
  * The index of the plugin in the plugin list. It's unique to each plugin.
9
9
  */
10
10
  plugin_index: number;
11
+ trigger: 'automatic' | 'manual';
12
+ call_id: string;
11
13
  };
@@ -1,5 +1,5 @@
1
1
  export type HookTransformCallEnd = {
2
- kind: 'HookTransformCallEnd';
2
+ action: 'HookTransformCallEnd';
3
3
  module_id: string;
4
4
  transformed_source: string | null;
5
5
  plugin_name: string;
@@ -1,5 +1,5 @@
1
1
  export type HookTransformCallStart = {
2
- kind: 'HookTransformCallStart';
2
+ action: 'HookTransformCallStart';
3
3
  module_id: string;
4
4
  source: string;
5
5
  plugin_name: string;
@@ -6,4 +6,4 @@ import type { HookResolveIdCallEnd } from "./HookResolveIdCallEnd";
6
6
  import type { HookResolveIdCallStart } from "./HookResolveIdCallStart";
7
7
  import type { HookTransformCallEnd } from "./HookTransformCallEnd";
8
8
  import type { HookTransformCallStart } from "./HookTransformCallStart";
9
- export type Action = HookTransformCallStart | HookTransformCallEnd | HookLoadCallStart | HookLoadCallEnd | BuildStart | BuildEnd | HookResolveIdCallStart | HookResolveIdCallEnd;
9
+ export type Meta = HookTransformCallStart | HookTransformCallEnd | HookLoadCallStart | HookLoadCallEnd | BuildStart | BuildEnd | HookResolveIdCallStart | HookResolveIdCallEnd;
@@ -1,4 +1,3 @@
1
- export * from './Action.js';
2
1
  export * from './BuildEnd.js';
3
2
  export * from './BuildStart.js';
4
3
  export * from './HookLoadCallEnd.js';
@@ -7,3 +6,4 @@ export * from './HookResolveIdCallEnd.js';
7
6
  export * from './HookResolveIdCallStart.js';
8
7
  export * from './HookTransformCallEnd.js';
9
8
  export * from './HookTransformCallStart.js';
9
+ export * from './Meta.js';
@@ -1,4 +1,3 @@
1
- export * from './Action.js';
2
1
  export * from './BuildEnd.js';
3
2
  export * from './BuildStart.js';
4
3
  export * from './HookLoadCallEnd.js';
@@ -7,3 +6,4 @@ export * from './HookResolveIdCallEnd.js';
7
6
  export * from './HookResolveIdCallStart.js';
8
7
  export * from './HookTransformCallEnd.js';
9
8
  export * from './HookTransformCallStart.js';
9
+ export * from './Meta.js';
package/dist/index.d.ts CHANGED
@@ -1,11 +1,9 @@
1
- import { type Action } from './generated/index.js';
1
+ import { type Meta } from './generated/index.js';
2
2
  export * from './generated/index.js';
3
3
  export interface Event {
4
4
  timestamp: string;
5
5
  session_id: string;
6
- fields: {
7
- action: Action;
8
- };
6
+ meta: Meta;
9
7
  }
10
8
  export declare function parseToEvents(data: string): Event[];
11
9
  export declare function parseToEvent(data: string): Event;
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/generated/Action.ts","../src/generated/BuildEnd.ts","../src/generated/BuildStart.ts","../src/generated/HookLoadCallEnd.ts","../src/generated/HookLoadCallStart.ts","../src/generated/HookResolveIdCallEnd.ts","../src/generated/HookResolveIdCallStart.ts","../src/generated/HookTransformCallEnd.ts","../src/generated/HookTransformCallStart.ts","../src/generated/index.ts"],"version":"5.8.3"}
1
+ {"root":["../src/index.ts","../src/generated/BuildEnd.ts","../src/generated/BuildStart.ts","../src/generated/HookLoadCallEnd.ts","../src/generated/HookLoadCallStart.ts","../src/generated/HookResolveIdCallEnd.ts","../src/generated/HookResolveIdCallStart.ts","../src/generated/HookTransformCallEnd.ts","../src/generated/HookTransformCallStart.ts","../src/generated/Meta.ts","../src/generated/index.ts"],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/debug",
3
- "version": "1.0.0-beta.8-commit.d53650c",
3
+ "version": "1.0.0-beta.8-commit.2686eb1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
File without changes