@effection/channel
Advanced tools
Comparing version 2.0.4 to 2.0.5
# Changelog | ||
## \[2.0.5] | ||
### Dependencies | ||
- Updated to latest `@effection/core` | ||
## \[2.0.4] | ||
@@ -4,0 +10,0 @@ |
@@ -5,11 +5,11 @@ import { WritableStream, Writable, Stream } from '@effection/stream'; | ||
*/ | ||
export declare type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
export type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
/** | ||
* @hidden | ||
*/ | ||
export declare type Send<T> = Writable<T>['send']; | ||
export type Send<T> = Writable<T>['send']; | ||
/** | ||
* Options which can be provided when creating a {@link Channel} via {@link createChannel}. | ||
*/ | ||
export declare type ChannelOptions = { | ||
export type ChannelOptions = { | ||
/** | ||
@@ -16,0 +16,0 @@ * The maximum number of subscribers that the channel should have. When this limit is exceeded |
@@ -43,4 +43,4 @@ "use strict"; | ||
} | ||
let stream = stream_1.createStream((publish) => function* (task) { | ||
let subscription = events_1.on(bus, 'event').subscribe(task); | ||
let stream = (0, stream_1.createStream)((publish) => function* (task) { | ||
let subscription = (0, events_1.on)(bus, 'event').subscribe(task); | ||
while (true) { | ||
@@ -47,0 +47,0 @@ let { value: next } = yield subscription.next(); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -5,11 +5,11 @@ import { WritableStream, Writable, Stream } from '@effection/stream'; | ||
*/ | ||
export declare type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
export type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
/** | ||
* @hidden | ||
*/ | ||
export declare type Send<T> = Writable<T>['send']; | ||
export type Send<T> = Writable<T>['send']; | ||
/** | ||
* Options which can be provided when creating a {@link Channel} via {@link createChannel}. | ||
*/ | ||
export declare type ChannelOptions = { | ||
export type ChannelOptions = { | ||
/** | ||
@@ -16,0 +16,0 @@ * The maximum number of subscribers that the channel should have. When this limit is exceeded |
{ | ||
"name": "@effection/channel", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "MPMC Channel implementation for effection", | ||
@@ -30,10 +30,2 @@ "main": "dist-cjs/index.js", | ||
}, | ||
"devDependencies": { | ||
"@frontside/tsconfig": "^1.2.0", | ||
"@types/node": "^16.3.2", | ||
"expect": "^25.4.0", | ||
"mocha": "^8.3.1", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.3.5" | ||
}, | ||
"volta": { | ||
@@ -43,6 +35,6 @@ "extends": "../../package.json" | ||
"dependencies": { | ||
"@effection/core": "2.2.1", | ||
"@effection/events": "2.0.4", | ||
"@effection/stream": "2.0.4" | ||
"@effection/core": "2.2.2", | ||
"@effection/events": "2.0.5", | ||
"@effection/stream": "2.0.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34156
0
353
+ Added@chainsafe/abort-controller@3.0.1(transitive)
+ Added@effection/core@2.2.2(transitive)
+ Added@effection/events@2.0.5(transitive)
+ Added@effection/stream@2.0.5(transitive)
+ Added@effection/subscription@2.0.5(transitive)
- Removed@effection/core@2.2.1(transitive)
- Removed@effection/events@2.0.4(transitive)
- Removed@effection/stream@2.0.4(transitive)
- Removed@effection/subscription@2.0.4(transitive)
- Removedabort-controller@3.0.0(transitive)
Updated@effection/core@2.2.2
Updated@effection/events@2.0.5
Updated@effection/stream@2.0.5