Socket
Socket
Sign inDemoInstall

@effection/stream

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/stream - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

6

CHANGELOG.md
# Changelog
## \[2.0.5]
### Dependencies
- Updated to latest `@effection/core`
## \[2.0.4]

@@ -4,0 +10,0 @@

2

dist-cjs/match.d.ts

@@ -1,2 +0,2 @@

export declare type DeepPartial<T> = {
export type DeepPartial<T> = {
[P in keyof T]?: DeepPartial<T[P]>;

@@ -3,0 +3,0 @@ };

@@ -12,3 +12,3 @@ import { Subscription } from '@effection/subscription';

*/
export declare type StreamCallback<T, TReturn> = (publish: (value: T) => void) => Operation<TReturn>;
export type StreamCallback<T, TReturn> = (publish: (value: T) => void) => Operation<TReturn>;
/**

@@ -15,0 +15,0 @@ * A `Stream` of values. A `Stream` can be subscribed to, which creates an

@@ -43,3 +43,3 @@ "use strict";

let subscribe = (task) => {
let queue = subscription_1.createQueue(name);
let queue = (0, subscription_1.createQueue)(name);
task.run(function* () {

@@ -67,3 +67,3 @@ let result = yield callback(queue.send);

match(reference) {
return stream.filter(match_1.matcher(reference));
return stream.filter((0, match_1.matcher)(reference));
},

@@ -107,4 +107,4 @@ grep(search) {

*init() {
let buffer = buffer_1.createBuffer(limit);
yield core_1.spawn(stream.forEach((value) => { buffer.push(value); }));
let buffer = (0, buffer_1.createBuffer)(limit);
yield (0, core_1.spawn)(stream.forEach((value) => { buffer.push(value); }));
return buffer;

@@ -111,0 +111,0 @@ }

@@ -11,3 +11,3 @@ import { Stream } from './stream';

*/
export declare type WritableStream<TReceive, TSend, TReturn = undefined> = Stream<TReceive, TReturn> & Writable<TSend>;
export type WritableStream<TReceive, TSend, TReturn = undefined> = Stream<TReceive, TReturn> & Writable<TSend>;
//# sourceMappingURL=writable-stream.d.ts.map

@@ -1,2 +0,2 @@

export declare type DeepPartial<T> = {
export type DeepPartial<T> = {
[P in keyof T]?: DeepPartial<T[P]>;

@@ -3,0 +3,0 @@ };

@@ -12,3 +12,3 @@ import { Subscription } from '@effection/subscription';

*/
export declare type StreamCallback<T, TReturn> = (publish: (value: T) => void) => Operation<TReturn>;
export type StreamCallback<T, TReturn> = (publish: (value: T) => void) => Operation<TReturn>;
/**

@@ -15,0 +15,0 @@ * A `Stream` of values. A `Stream` can be subscribed to, which creates an

@@ -11,3 +11,3 @@ import { Stream } from './stream';

*/
export declare type WritableStream<TReceive, TSend, TReturn = undefined> = Stream<TReceive, TReturn> & Writable<TSend>;
export type WritableStream<TReceive, TSend, TReturn = undefined> = Stream<TReceive, TReturn> & Writable<TSend>;
//# sourceMappingURL=writable-stream.d.ts.map
{
"name": "@effection/stream",
"version": "2.0.4",
"version": "2.0.5",
"description": "Effection Stream",

@@ -31,13 +31,5 @@ "main": "dist-cjs/index.js",

"dependencies": {
"@effection/core": "2.2.1",
"@effection/subscription": "2.0.4"
"@effection/core": "2.2.2",
"@effection/subscription": "2.0.5"
},
"devDependencies": {
"@frontside/tsconfig": "^1.2.0",
"@types/mocha": "^8.0.3",
"expect": "^25.4.0",
"mocha": "^8.3.1",
"ts-node": "^10.4.0",
"typescript": "^4.3.5"
},
"volta": {

@@ -44,0 +36,0 @@ "extends": "../../package.json"

@@ -338,3 +338,3 @@ import { createQueue, Subscription } from '@effection/subscription';

task.run(function*() {
let result = yield callback(queue.send);
let result: TReturn = yield callback(queue.send);
queue.closeWith(result);

@@ -341,0 +341,0 @@ }, { labels: { name: 'publisher', expand: false } });

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

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

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