Socket
Socket
Sign inDemoInstall

@effection/subscription

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/subscription - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

6

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

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

2

dist-cjs/queue.d.ts
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

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