Socket
Socket
Sign inDemoInstall

@effection/channel

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/channel - npm Package Compare versions

Comparing version 0.6.1-b1952e1 to 0.6.1

dist/channel.cjs.development.js

8

dist/channel.d.ts
import { Operation } from 'effection';
import { Subscribable, Subscription, SymbolSubscribable } from '@effection/subscription';
export declare class Channel<T> implements Subscribable<T, void> {
export declare class Channel<T, TClose = undefined> implements Subscribable<T, TClose> {
private bus;
[SymbolSubscribable](): Operation<Subscription<T, void>>;
[SymbolSubscribable](): Operation<Subscription<T, TClose>>;
setMaxListeners(value: number): void;
send(message: T): void;
subscribe(): Operation<Subscription<T, void>>;
close(): void;
subscribe(): Operation<Subscription<T, TClose>>;
close(...args: TClose extends undefined ? [] : [TClose]): void;
}
export { Channel } from './channel';

@@ -1,5 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var channel_1 = require("./channel");
Object.defineProperty(exports, "Channel", { enumerable: true, get: function () { return channel_1.Channel; } });
//# sourceMappingURL=index.js.map
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./channel.cjs.production.min.js')
} else {
module.exports = require('./channel.cjs.development.js')
}
{
"name": "@effection/channel",
"version": "0.6.1-b1952e1",
"version": "0.6.1",
"description": "MPMC Channel implementation for effection",

@@ -15,8 +15,9 @@ "main": "dist/index.js",

"scripts": {
"lint": "echo [skip @effection/channel]",
"lint": "eslint '{src,tests}/**/*.ts'",
"test": "mocha -r ts-node/register test/**/*.test.ts",
"prepack": "tsc --outdir dist --project tsconfig.dist.json --declaration --sourcemap --module commonjs",
"prepack": "tsdx build --tsconfig tsconfig.dist.json",
"mocha": "mocha -r ts-node/register"
},
"devDependencies": {
"@frontside/tsconfig": "^0.0.1",
"@types/node": "^12.7.11",

@@ -26,2 +27,3 @@ "expect": "^25.4.0",

"ts-node": "^8.9.0",
"tsdx": "^0.13.2",
"typescript": "^3.7.0"

@@ -28,0 +30,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc