@vkontakte/videoplayer-shared 1.0.59-dev.01d2a3f6.0 → 1.0.59-dev.19fcc425.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/es2015.cjs.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/es2024.cjs.js +3 -3
- package/es2024.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +1 -3
- package/types/Tracer/Tracer.d.ts +12 -6
- package/types/Tracer/types.d.ts +21 -3
- package/types/reactive/Subscription.d.ts +1 -1
- package/types/reactive/SubscriptionRemovable.d.ts +5 -0
- package/types/reactive/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-shared",
|
|
3
|
-
"version": "1.0.59-dev.
|
|
3
|
+
"version": "1.0.59-dev.19fcc425.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Shared code for vk.com videoplayer",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -55,8 +55,6 @@
|
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@opentelemetry/api": "^1.8.0",
|
|
58
|
-
"@opentelemetry/core": "^1.25.0",
|
|
59
|
-
"@opentelemetry/instrumentation": "^0.52.0",
|
|
60
58
|
"@opentelemetry/sdk-trace-web": "^1.24.1",
|
|
61
59
|
"@tracer/opentelemetry": "https://artifactory-external.vkpartner.ru/artifactory/api/npm/npm-odkl-nexus/@tracer/opentelemetry/-/opentelemetry-1.1.7.tgz"
|
|
62
60
|
}
|
package/types/Tracer/Tracer.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { Attributes } from '@opentelemetry/api';
|
|
1
|
+
import type { Attributes } from '@opentelemetry/api';
|
|
2
2
|
import { ITracer } from './types';
|
|
3
3
|
export declare class Tracer implements ITracer {
|
|
4
|
-
private readonly
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
private
|
|
4
|
+
private readonly dynamicImportTimeout;
|
|
5
|
+
private span;
|
|
6
|
+
private context;
|
|
7
|
+
private childTracers;
|
|
8
|
+
private tracer;
|
|
9
|
+
private spanExporter;
|
|
10
|
+
private static dynamicImportStatus;
|
|
11
|
+
private static dynamicImports;
|
|
12
|
+
private static dynamicImportPromise;
|
|
9
13
|
private constructor();
|
|
14
|
+
private init;
|
|
15
|
+
private loadOpentelemetry;
|
|
10
16
|
log(name: string, attributes?: Attributes): void;
|
|
11
17
|
error(name: string, attributes?: Attributes): void;
|
|
12
18
|
critical(name: string, attributes?: Attributes): void;
|
package/types/Tracer/types.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Attributes, Context } from '@opentelemetry/api';
|
|
2
|
-
import { ReadableSpan } from '@opentelemetry/sdk-trace-web';
|
|
3
|
-
import { Tracer as OtlpTracer } from '@opentelemetry/sdk-trace-
|
|
1
|
+
import type { Attributes, Context } from '@opentelemetry/api';
|
|
2
|
+
import type { ReadableSpan } from '@opentelemetry/sdk-trace-web';
|
|
3
|
+
import type { Tracer as OtlpTracer } from '@opentelemetry/sdk-trace-web';
|
|
4
|
+
import type * as TracerOpentelemetry from '@tracer/opentelemetry';
|
|
5
|
+
import type * as OpentelemetryApi from '@opentelemetry/api';
|
|
6
|
+
import type * as OpentelemetrySdk from '@opentelemetry/sdk-trace-web';
|
|
7
|
+
export type { TracerOpentelemetry };
|
|
8
|
+
export type { OpentelemetryApi };
|
|
9
|
+
export type { OpentelemetrySdk };
|
|
10
|
+
export declare enum TracerDynamicImportStatus {
|
|
11
|
+
NotStarted = "not_started",
|
|
12
|
+
InProgress = "in_progress",
|
|
13
|
+
Failed = "failed",
|
|
14
|
+
Completed = "completed",
|
|
15
|
+
Initialized = "initialized"
|
|
16
|
+
}
|
|
4
17
|
export declare enum TraceEventType {
|
|
5
18
|
Log = "log",
|
|
6
19
|
Error = "error",
|
|
@@ -11,6 +24,11 @@ export interface ITracerParams {
|
|
|
11
24
|
parentContext?: Context;
|
|
12
25
|
tracer?: OtlpTracer;
|
|
13
26
|
}
|
|
27
|
+
export interface ITracerDynamicImports {
|
|
28
|
+
opentelemetryApi: typeof OpentelemetryApi;
|
|
29
|
+
opentelemetrySdk: typeof OpentelemetrySdk;
|
|
30
|
+
tracer: typeof TracerOpentelemetry;
|
|
31
|
+
}
|
|
14
32
|
export interface ITracer {
|
|
15
33
|
log: (name: string, attributes?: Attributes) => void;
|
|
16
34
|
error: (name: string, attributes?: Attributes) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ISubscription, IUnsubscriber } from './types';
|
|
2
2
|
export default class Subscription implements ISubscription {
|
|
3
|
-
|
|
3
|
+
protected subscriptions: Array<(() => void) | ISubscription>;
|
|
4
4
|
unsubscribe(): void;
|
|
5
5
|
add(item: ISubscription | IUnsubscriber): ISubscription;
|
|
6
6
|
}
|
|
@@ -8,6 +8,7 @@ export { default as timeout } from './timeout';
|
|
|
8
8
|
export { default as interval } from './interval';
|
|
9
9
|
export { default as observableFrom } from './observableFrom';
|
|
10
10
|
export { default as fromEvent } from './fromEvent';
|
|
11
|
+
export { default as SubscriptionRemovable } from './SubscriptionRemovable';
|
|
11
12
|
export { default as buffer } from './operators/buffer';
|
|
12
13
|
export { default as debounce } from './operators/debounce';
|
|
13
14
|
export { default as throttle } from './operators/throttle';
|