@routier/core 0.4.0 → 0.5.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.
- package/dist/index.cjs +73 -438
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +78 -443
- package/dist/index.js.map +1 -1
- package/dist/plugins/TelemetryDbPlugin.d.ts +43 -0
- package/dist/plugins/index.cjs +68 -1
- package/dist/plugins/index.cjs.map +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +73 -3
- package/dist/plugins/index.js.map +1 -1
- package/package.json +1 -9
- package/dist/capabilities/Capability.d.ts +0 -11
- package/dist/capabilities/PerformanceCapability.d.ts +0 -13
- package/dist/capabilities/TracingCapability.d.ts +0 -11
- package/dist/capabilities/index.cjs +0 -820
- package/dist/capabilities/index.cjs.map +0 -1
- package/dist/capabilities/index.d.ts +0 -4
- package/dist/capabilities/index.js +0 -808
- package/dist/capabilities/index.js.map +0 -1
- package/dist/capabilities/performance/PerformanceTracker.d.ts +0 -11
- package/dist/capabilities/tracing/CallTraceManager.d.ts +0 -12
- package/dist/capabilities/types.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routier/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -70,11 +70,6 @@
|
|
|
70
70
|
"import": "./dist/performance/index.js",
|
|
71
71
|
"require": "./dist/performance/index.cjs"
|
|
72
72
|
},
|
|
73
|
-
"./capabilities": {
|
|
74
|
-
"types": "./dist/capabilities/index.d.ts",
|
|
75
|
-
"import": "./dist/capabilities/index.js",
|
|
76
|
-
"require": "./dist/capabilities/index.cjs"
|
|
77
|
-
},
|
|
78
73
|
"./types": {
|
|
79
74
|
"types": "./dist/types/index.d.ts",
|
|
80
75
|
"import": "./dist/types/index.js",
|
|
@@ -113,9 +108,6 @@
|
|
|
113
108
|
"assertions": [
|
|
114
109
|
"./dist/assertions/index.d.ts"
|
|
115
110
|
],
|
|
116
|
-
"capabilities": [
|
|
117
|
-
"./dist/capabilities/index.d.ts"
|
|
118
|
-
],
|
|
119
111
|
"types": [
|
|
120
112
|
"./dist/types/index.d.ts"
|
|
121
113
|
]
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MethodInfo, MethodInfoMetadata } from "./types";
|
|
2
|
-
export declare abstract class Capability {
|
|
3
|
-
protected excludedNames: Set<string>;
|
|
4
|
-
protected isValidObject(obj: unknown): obj is object;
|
|
5
|
-
protected isCallableMethod(descriptor: PropertyDescriptor | undefined, key: string | symbol): boolean;
|
|
6
|
-
private canExplore;
|
|
7
|
-
private getName;
|
|
8
|
-
private getPath;
|
|
9
|
-
protected explore(instance: unknown, onDiscover: (info: MethodInfoMetadata, methodInfo: MethodInfo) => void): void;
|
|
10
|
-
abstract apply(instance: unknown): void;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Capability } from "./Capability";
|
|
2
|
-
import { MethodInfoMetadata, MethodInfo } from "./types";
|
|
3
|
-
export type PerformanceCapabilityOptions = {
|
|
4
|
-
filter: (methodName: string | symbol, methodInfo: MethodInfo, metadata: MethodInfoMetadata) => boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare class PerformanceCapability extends Capability {
|
|
7
|
-
private callTraceManager;
|
|
8
|
-
private performanceTracker;
|
|
9
|
-
private filter;
|
|
10
|
-
private childDurations;
|
|
11
|
-
constructor(options?: PerformanceCapabilityOptions);
|
|
12
|
-
apply(instance: unknown): void;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Capability } from "./Capability";
|
|
2
|
-
import { MethodInfo, MethodInfoMetadata } from "./types";
|
|
3
|
-
export type TracingCapabilityOptions = {
|
|
4
|
-
filter: (methodName: string | symbol, methodInfo: MethodInfo, metadata: MethodInfoMetadata) => boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare class TracingCapability extends Capability {
|
|
7
|
-
private callTraceManager;
|
|
8
|
-
private filter;
|
|
9
|
-
constructor(options?: TracingCapabilityOptions);
|
|
10
|
-
apply(instance: unknown): void;
|
|
11
|
-
}
|