+23
-13
@@ -26,2 +26,14 @@ /** | ||
| /** | ||
| * Get or create a channel by name. | ||
| * Matches Node.js channel() API. | ||
| */ | ||
| declare function channel<M>(name: string): Channel<M, string>; | ||
| declare function channel<M>(name: symbol): Channel<M, symbol>; | ||
| /** | ||
| * Check if a channel has subscribers. | ||
| * Matches Node.js hasSubscribers() API. | ||
| */ | ||
| declare function hasSubscribers(name: string | symbol): boolean; | ||
| /** | ||
| * Browser-compatible implementation of Node.js TracingChannel. | ||
@@ -68,14 +80,2 @@ * | ||
| /** | ||
| * Get or create a channel by name. | ||
| * Matches Node.js channel() API. | ||
| */ | ||
| declare function channel<M>(name: string): Channel<M, string>; | ||
| declare function channel<M>(name: symbol): Channel<M, symbol>; | ||
| /** | ||
| * Check if a channel has subscribers. | ||
| * Matches Node.js hasSubscribers() API. | ||
| */ | ||
| declare function hasSubscribers(name: string | symbol): boolean; | ||
| /** | ||
| * dc-browser | ||
@@ -105,2 +105,12 @@ * | ||
| export { Channel, type ChannelHandlers, type MessageFunction, TracingChannel, type TransformFunction, channel, hasSubscribers, subscribe, tracingChannel, unsubscribe }; | ||
| declare const _default: { | ||
| channel: typeof channel; | ||
| hasSubscribers: typeof hasSubscribers; | ||
| subscribe: typeof subscribe; | ||
| unsubscribe: typeof unsubscribe; | ||
| tracingChannel: typeof tracingChannel; | ||
| Channel: typeof Channel; | ||
| TracingChannel: typeof TracingChannel; | ||
| }; | ||
| export { Channel, type ChannelHandlers, type MessageFunction, TracingChannel, type TransformFunction, channel, _default as default, hasSubscribers, subscribe, tracingChannel, unsubscribe }; |
+23
-13
@@ -26,2 +26,14 @@ /** | ||
| /** | ||
| * Get or create a channel by name. | ||
| * Matches Node.js channel() API. | ||
| */ | ||
| declare function channel<M>(name: string): Channel<M, string>; | ||
| declare function channel<M>(name: symbol): Channel<M, symbol>; | ||
| /** | ||
| * Check if a channel has subscribers. | ||
| * Matches Node.js hasSubscribers() API. | ||
| */ | ||
| declare function hasSubscribers(name: string | symbol): boolean; | ||
| /** | ||
| * Browser-compatible implementation of Node.js TracingChannel. | ||
@@ -68,14 +80,2 @@ * | ||
| /** | ||
| * Get or create a channel by name. | ||
| * Matches Node.js channel() API. | ||
| */ | ||
| declare function channel<M>(name: string): Channel<M, string>; | ||
| declare function channel<M>(name: symbol): Channel<M, symbol>; | ||
| /** | ||
| * Check if a channel has subscribers. | ||
| * Matches Node.js hasSubscribers() API. | ||
| */ | ||
| declare function hasSubscribers(name: string | symbol): boolean; | ||
| /** | ||
| * dc-browser | ||
@@ -105,2 +105,12 @@ * | ||
| export { Channel, type ChannelHandlers, type MessageFunction, TracingChannel, type TransformFunction, channel, hasSubscribers, subscribe, tracingChannel, unsubscribe }; | ||
| declare const _default: { | ||
| channel: typeof channel; | ||
| hasSubscribers: typeof hasSubscribers; | ||
| subscribe: typeof subscribe; | ||
| unsubscribe: typeof unsubscribe; | ||
| tracingChannel: typeof tracingChannel; | ||
| Channel: typeof Channel; | ||
| TracingChannel: typeof TracingChannel; | ||
| }; | ||
| export { Channel, type ChannelHandlers, type MessageFunction, TracingChannel, type TransformFunction, channel, _default as default, hasSubscribers, subscribe, tracingChannel, unsubscribe }; |
+10
-0
@@ -26,2 +26,3 @@ "use strict"; | ||
| channel: () => channel, | ||
| default: () => index_default, | ||
| hasSubscribers: () => hasSubscribers, | ||
@@ -344,1 +345,10 @@ subscribe: () => subscribe, | ||
| } | ||
| var index_default = { | ||
| channel, | ||
| hasSubscribers, | ||
| subscribe, | ||
| unsubscribe, | ||
| tracingChannel, | ||
| Channel, | ||
| TracingChannel | ||
| }; |
+10
-0
@@ -311,2 +311,11 @@ // src/channel.ts | ||
| } | ||
| var index_default = { | ||
| channel, | ||
| hasSubscribers, | ||
| subscribe, | ||
| unsubscribe, | ||
| tracingChannel, | ||
| Channel, | ||
| TracingChannel | ||
| }; | ||
| export { | ||
@@ -316,2 +325,3 @@ Channel, | ||
| channel, | ||
| index_default as default, | ||
| hasSubscribers, | ||
@@ -318,0 +328,0 @@ subscribe, |
+1
-1
| { | ||
| "name": "dc-browser", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Browser polyfill for Node.js diagnostics_channel", | ||
@@ -5,0 +5,0 @@ "author": "Stephen Belanger <admin@stephenbelanger.com>", |
37510
2.55%777
3.88%