@bigtest/effection
Advanced tools
Comparing version 0.1.1-150b83e to 0.1.1-1a915aa
@@ -12,2 +12,3 @@ import { Operation } from 'effection'; | ||
static subscribe(source: EventSource, events: string | string[]): Operation<Mailbox<SubscriptionMessage>>; | ||
setMaxListeners(value: number): void; | ||
send(message: T): void; | ||
@@ -14,0 +15,0 @@ receive(pattern?: unknown): Operation<T>; |
@@ -20,2 +20,5 @@ "use strict"; | ||
} | ||
setMaxListeners(value) { | ||
this.subscriptions.setMaxListeners(value); | ||
} | ||
send(message) { | ||
@@ -22,0 +25,0 @@ this.messages.add(message); |
@@ -9,6 +9,6 @@ "use strict"; | ||
else if (Array.isArray(pattern)) { | ||
return pattern.every((value, index) => compile(value)(target[index])); | ||
return Array.isArray(target) && pattern.every((value, index) => compile(value)(target[index])); | ||
} | ||
else if (typeof (pattern) === "object") { | ||
return Object.entries(pattern).every(([key, value]) => compile(value)(target[key])); | ||
return typeof (target) === 'object' && Object.entries(pattern).every(([key, value]) => compile(value)(target[key])); | ||
} | ||
@@ -15,0 +15,0 @@ else if (typeof (pattern) === "function") { |
{ | ||
"name": "@bigtest/effection", | ||
"version": "0.1.1-150b83e", | ||
"version": "0.1.1-1a915aa", | ||
"description": "Collection of handly utilities for working with effection. May find a different home later", | ||
@@ -23,2 +23,3 @@ "main": "dist/index.js", | ||
"@types/node": "^12.7.11", | ||
"effection": "^0.6.0", | ||
"expect": "^24.9.0", | ||
@@ -28,4 +29,3 @@ "mocha": "^6.2.2", | ||
}, | ||
"dependencies": { | ||
"@types/node": "^12.7.11", | ||
"peerDependencies": { | ||
"effection": "^0.6.0" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16035
1
234
6
- Removed@types/node@^12.7.11
- Removedeffection@^0.6.0
- Removed@types/node@12.20.55(transitive)