@routier/core 0.0.6 → 0.1.0-rc.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/capabilities/Capability.d.ts +6 -16
- package/dist/capabilities/PerformanceCapability.d.ts +4 -6
- package/dist/capabilities/TracingCapability.d.ts +3 -6
- package/dist/capabilities/index.js +399 -343
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/types.d.ts +10 -19
- package/dist/codegen/blocks.d.ts +8 -0
- package/dist/codegen/handlers/CompareIdsHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/compare/CompareArrayHandler.d.ts +6 -0
- package/dist/codegen/handlers/compare/CompareDateHandler.d.ts +6 -0
- package/dist/codegen/handlers/compareIds/CompareIdsKeyHandler.d.ts +6 -0
- package/dist/codegen/handlers/index.d.ts +1 -0
- package/dist/codegen/handlers/serialize/SerializeDateHandler.d.ts +2 -1
- package/dist/codegen/handlers/serialize/SerializeFunctionHandler.d.ts +6 -0
- package/dist/codegen/index.js +39 -0
- package/dist/codegen/index.js.map +1 -1
- package/dist/collections/index.js +1 -1
- package/dist/collections/index.js.map +1 -1
- package/dist/expressions/index.js +203 -29
- package/dist/expressions/index.js.map +1 -1
- package/dist/index.js +1147 -507
- package/dist/index.js.map +1 -1
- package/dist/pipeline/TrampolinePipeline.d.ts +1 -0
- package/dist/pipeline/index.js +71 -47
- package/dist/pipeline/index.js.map +1 -1
- package/dist/plugins/EphemeralDataPlugin.d.ts +2 -2
- package/dist/plugins/index.js +252 -62
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/query/types.d.ts +5 -0
- package/dist/plugins/replication/OptimisticReplicationDbPlugin.d.ts +2 -1
- package/dist/plugins/replication/ReplicationDbPlugin.d.ts +2 -1
- package/dist/plugins/translators/DataTranslator.d.ts +3 -1
- package/dist/plugins/translators/JsonTranslator.d.ts +1 -0
- package/dist/plugins/translators/SqlTranslator.d.ts +1 -0
- package/dist/plugins/translators/TranslatedArrayValue.d.ts +6 -0
- package/dist/plugins/translators/TranslatedGroupValue.d.ts +6 -0
- package/dist/plugins/translators/TranslatedSingleValue.d.ts +6 -0
- package/dist/plugins/translators/index.d.ts +4 -0
- package/dist/plugins/translators/types.d.ts +10 -0
- package/dist/plugins/types.d.ts +2 -1
- package/dist/schema/PropertyInfo.d.ts +7 -2
- package/dist/schema/SchemaDefinition.d.ts +1 -1
- package/dist/schema/communication/broadcast.d.ts +3 -3
- package/dist/schema/index.js +504 -73
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/property/modifiers/SchemaTracked.d.ts +3 -1
- package/dist/schema/table/SchemaComputed.d.ts +1 -1
- package/dist/schema/testSchemas.test.d.ts +60 -36
- package/dist/schema/types.d.ts +16 -1
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/index.js +164 -2
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/strings.d.ts +34 -0
- package/dist/utilities/strings.test.d.ts +1 -0
- package/dist/utilities/unsafeCast.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MethodInfo, MethodInfoMetadata } from "./types";
|
|
2
2
|
export declare abstract class Capability {
|
|
3
|
+
protected excludedNames: Set<string>;
|
|
3
4
|
protected isValidObject(obj: unknown): obj is object;
|
|
4
|
-
protected getObjectName(obj: unknown): string;
|
|
5
|
-
protected exploreObjectMethods(obj: unknown, callback: (methodInfo: MethodInfo) => void, options?: ExplorationOptions): void;
|
|
6
|
-
protected exploreRootMethods(obj: object, callback: (methodInfo: MethodInfo) => void, filter: (methodInfo: MethodInfo) => boolean): void;
|
|
7
|
-
protected extractMethodNames(obj: unknown): (string | symbol)[];
|
|
8
5
|
protected isCallableMethod(descriptor: PropertyDescriptor | undefined, key: string | symbol): boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
protected stringifyValue(value: unknown, maxDepth?: number, currentDepth?: number): string;
|
|
14
|
-
protected getFunctionName(fn: Function): string;
|
|
15
|
-
protected stringifyObject(obj: any, maxDepth: number, currentDepth: number): string;
|
|
16
|
-
protected stringifyArray(arr: any[], maxDepth: number, currentDepth: number): string;
|
|
17
|
-
protected stringifyClassInstance(obj: any, maxDepth: number, currentDepth: number): string;
|
|
18
|
-
protected stringifyPlainObject(obj: any, maxDepth: number, currentDepth: number): string;
|
|
19
|
-
protected getObjectProperties(obj: any): Record<string, any>;
|
|
6
|
+
private canExplore;
|
|
7
|
+
private getName;
|
|
8
|
+
private getPath;
|
|
9
|
+
protected explore(instance: unknown, onDiscover: (info: MethodInfoMetadata, methodInfo: MethodInfo) => void): void;
|
|
20
10
|
abstract apply(instance: unknown): void;
|
|
21
11
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Capability } from "./Capability";
|
|
2
|
-
import {
|
|
2
|
+
import { MethodInfoMetadata, MethodInfo } from "./types";
|
|
3
3
|
export type PerformanceCapabilityOptions = {
|
|
4
|
-
|
|
5
|
-
shouldLog: (methodName: string | symbol, metadata: MethodMetadata) => boolean;
|
|
4
|
+
filter: (methodName: string | symbol, methodInfo: MethodInfo, metadata: MethodInfoMetadata) => boolean;
|
|
6
5
|
};
|
|
7
6
|
export declare class PerformanceCapability extends Capability {
|
|
8
7
|
private callTraceManager;
|
|
9
8
|
private performanceTracker;
|
|
10
|
-
private
|
|
11
|
-
private
|
|
9
|
+
private filter;
|
|
10
|
+
private childDurations;
|
|
12
11
|
constructor(options?: PerformanceCapabilityOptions);
|
|
13
|
-
private createPerformanceInterceptor;
|
|
14
12
|
apply(instance: unknown): void;
|
|
15
13
|
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Capability } from "./Capability";
|
|
2
|
-
import {
|
|
2
|
+
import { MethodInfo, MethodInfoMetadata } from "./types";
|
|
3
3
|
export type TracingCapabilityOptions = {
|
|
4
|
-
|
|
5
|
-
shouldLog: (methodName: string | symbol, metadata: MethodMetadata) => boolean;
|
|
4
|
+
filter: (methodName: string | symbol, methodInfo: MethodInfo, metadata: MethodInfoMetadata) => boolean;
|
|
6
5
|
};
|
|
7
6
|
export declare class TracingCapability extends Capability {
|
|
8
7
|
private callTraceManager;
|
|
9
|
-
private
|
|
10
|
-
private shouldLogMethod?;
|
|
8
|
+
private filter;
|
|
11
9
|
constructor(options?: TracingCapabilityOptions);
|
|
12
|
-
private createTracingInterceptor;
|
|
13
10
|
apply(instance: unknown): void;
|
|
14
11
|
}
|