vasille 7.0.0-rc.2 → 7.0.0-rc.3
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.
package/lib/dev/inspectable.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { DevExpression, DevReference } from "./state.js";
|
|
2
2
|
let positionId = 1;
|
|
3
|
-
function
|
|
4
|
-
return (error.stack
|
|
5
|
-
?.split("\n")
|
|
6
|
-
.slice(1)
|
|
7
|
-
.map(line => line.trim()) ?? []);
|
|
8
|
-
}
|
|
9
|
-
export function executionPosition(inspector, pathLineAndChar, error) {
|
|
3
|
+
export function executionPosition(pathLineAndChar, error) {
|
|
10
4
|
const id = positionId++;
|
|
11
5
|
inspector.registerExecutionPosition({
|
|
12
6
|
id: id,
|
|
13
7
|
position: pathLineAndChar,
|
|
14
|
-
stack:
|
|
8
|
+
stack: error.stack ?? "",
|
|
15
9
|
});
|
|
16
10
|
return id;
|
|
17
11
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "The same devkit which is designed to build fault tolerant frontends (core library).",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
|
-
"version": "7.0.0-rc.
|
|
6
|
+
"version": "7.0.0-rc.3",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./types/index.d.ts",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DevReference } from "./state.js";
|
|
2
2
|
export type StaticPosition = [string, number, number, number, number];
|
|
3
3
|
export type ExecutionPosition = number;
|
|
4
|
-
export declare function executionPosition(
|
|
4
|
+
export declare function executionPosition(pathLineAndChar: StaticPosition, error: Error): ExecutionPosition;
|
|
5
5
|
export declare function errorToString(e: unknown): string;
|
|
6
6
|
export interface Inspectable {
|
|
7
7
|
id: number;
|
|
@@ -150,7 +150,7 @@ export interface ProtocolRouterTargetResult {
|
|
|
150
150
|
export interface ProtocolExecutionPosition {
|
|
151
151
|
id: number;
|
|
152
152
|
position: StaticPosition;
|
|
153
|
-
stack: string
|
|
153
|
+
stack: string;
|
|
154
154
|
}
|
|
155
155
|
export interface ProtocolDevValue {
|
|
156
156
|
id: number;
|