@effection/subscription
Advanced tools
Comparing version 2.0.4 to 2.0.5
# @effection/subscription | ||
## \[2.0.5] | ||
### Dependencies | ||
- Updated to latest `@effection/core` | ||
## \[2.0.4] | ||
@@ -4,0 +10,0 @@ |
import { Subscription } from './index'; | ||
declare type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
/** | ||
@@ -4,0 +4,0 @@ * A queue which can act as a subscription. It can be sent messages to and |
@@ -57,4 +57,4 @@ "use strict"; | ||
let next = () => { | ||
return core_1.withLabels((task) => { | ||
let { future, resolve } = core_1.createFuture(); | ||
return (0, core_1.withLabels)((task) => { | ||
let { future, resolve } = (0, core_1.createFuture)(); | ||
if (values.length) { | ||
@@ -76,3 +76,3 @@ resolve(values.shift()); | ||
function withName(operationName, operation) { | ||
return core_1.withLabels(operation, { name: `${name}.${operationName}()`, expand: false }); | ||
return (0, core_1.withLabels)(operation, { name: `${name}.${operationName}()`, expand: false }); | ||
} | ||
@@ -79,0 +79,0 @@ let subscription = { |
import { Subscription } from './index'; | ||
declare type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
type Close<T> = (...args: T extends undefined ? [] : [T]) => void; | ||
/** | ||
@@ -4,0 +4,0 @@ * A queue which can act as a subscription. It can be sent messages to and |
{ | ||
"name": "@effection/subscription", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Effection Subscriptions", | ||
@@ -31,12 +31,4 @@ "main": "dist-cjs/index.js", | ||
"dependencies": { | ||
"@effection/core": "2.2.1" | ||
"@effection/core": "2.2.2" | ||
}, | ||
"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": { | ||
@@ -43,0 +35,0 @@ "extends": "../../package.json" |
@@ -206,3 +206,3 @@ import { Operation, withLabels, createFuture } from '@effection/core'; | ||
let items: T[] = []; | ||
let result = yield subscription.forEach((item) => function*() { items.push(item) }); | ||
let result: TClose = yield subscription.forEach((item) => function*() { items.push(item) }); | ||
return (function*() { | ||
@@ -209,0 +209,0 @@ yield *items; |
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
0
61673
+ Added@chainsafe/abort-controller@3.0.1(transitive)
+ Added@effection/core@2.2.2(transitive)
- Removed@effection/core@2.2.1(transitive)
- Removedabort-controller@3.0.0(transitive)
Updated@effection/core@2.2.2