🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

dc-browser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dc-browser - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+23
-13
dist/index.d.mts

@@ -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 };

@@ -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 };

@@ -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
};

@@ -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,

{
"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>",