@arms/rum-core 0.0.25-beta.14 → 0.0.25-beta.16

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,17 +0,0 @@
1
- export declare const ONE_SECOND = 1000;
2
- export declare const ONE_MINUTE: number;
3
- export declare const ONE_HOUR: number;
4
- export declare const ONE_DAY: number;
5
- /**
6
- * Return true if the draw is successful
7
- * @param threshold between 0 and 100
8
- */
9
- export declare function performDraw(threshold: number): boolean;
10
- /**
11
- * 保留指定位数的小数
12
- * @param num 原数据
13
- * @param decimal 小数位数
14
- * @param min 限制最小值,否则返回undefined
15
- * @returns
16
- */
17
- export declare function formatNumber(num: number, decimal?: number, min?: number): number;
@@ -1,7 +0,0 @@
1
- export declare function find<T, S extends T>(array: ArrayLike<T>, predicate: (item: T, index: number) => item is S): S | undefined;
2
- export declare function find<T>(array: ArrayLike<T>, predicate: (item: T, index: number) => boolean): T | undefined;
3
- export declare function startsWith(candidate: string, search: string): boolean;
4
- export declare function endsWith(candidate: string, search: string): boolean;
5
- export declare function assign<T, U>(target: T, source: U): T & U;
6
- export declare function assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
7
- export declare function assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
@@ -1,28 +0,0 @@
1
- import { MatchOption } from "./match";
2
- export type PropagatorType = 'tracecontext' | 'b3' | 'b3multi' | 'jaeger' | 'sw8';
3
- export type TraceOption = {
4
- match: MatchOption;
5
- propagatorTypes: PropagatorType[];
6
- };
7
- export declare function isTraceOption(option: any): option is TraceOption;
8
- export interface ITracingOption {
9
- enable?: boolean;
10
- sample?: number | undefined;
11
- propagatorTypes?: PropagatorType[];
12
- allowedUrls?: Array<MatchOption | TraceOption> | undefined;
13
- tracestate?: boolean;
14
- baggage?: boolean;
15
- }
16
- export interface ITracingHeaders {
17
- [key: string]: string;
18
- }
19
- export interface TraceSubOption {
20
- tracestate?: string;
21
- baggage?: string;
22
- appId?: string;
23
- appVersion?: string;
24
- viewName?: string;
25
- host?: string;
26
- }
27
- export declare function makeTracingHeaders(traceId: string, spanId: string, sampled: boolean, propagatorTypes: PropagatorType[], subOption?: TraceSubOption): ITracingHeaders;
28
- export declare function parseTracingOptions(tracingOption: boolean | ITracingOption): ITracingOption;