@bigtest/effection
Advanced tools
Comparing version 0.6.0 to 0.6.1-a0b4a1cb
# Changelog | ||
## 0.6.1 | ||
### Patch Changes | ||
- 4d7c43f9: enable eslint rules from the latest @typescript-eslint/recommended | ||
- d85e5e95: upgrade eslint, typescript and @frontside packages | ||
## 0.6.0 | ||
@@ -4,0 +11,0 @@ |
@@ -7,1 +7,2 @@ export declare function Deferred<T>(): Deferred<T>; | ||
} | ||
//# sourceMappingURL=deferred.d.ts.map |
@@ -10,1 +10,2 @@ import { ChainableSubscribable } from '@effection/subscription'; | ||
}): DuplexPair<Tx, Rx>; | ||
//# sourceMappingURL=duplex-channel.d.ts.map |
import { Operation } from 'effection'; | ||
export declare function ensure(fn: () => void): Operation; | ||
//# sourceMappingURL=ensure.d.ts.map |
@@ -7,1 +7,2 @@ export { Deferred } from './deferred'; | ||
export { createDuplexChannel, DuplexChannel, DuplexPair } from './duplex-channel'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createDuplexChannel = exports.readyResource = exports.ensure = exports.any = exports.subscribe = exports.Mailbox = exports.Deferred = void 0; | ||
var deferred_1 = require("./deferred"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "Deferred", { enumerable: true, get: function () { return deferred_1.Deferred; } }); |
/// <reference types="node" /> | ||
import { Operation } from 'effection'; | ||
import { Operation, Context } from 'effection'; | ||
import { EventEmitter } from 'events'; | ||
@@ -18,5 +18,6 @@ export { any } from './pattern'; | ||
receive(pattern?: unknown): Operation<T>; | ||
pipe(other: Mailbox<T>): Generator<Operation<unknown>, any, unknown>; | ||
pipe(other: Mailbox<T>): Operation<Context<void>>; | ||
map<R>(fn: (from: T) => R): Operation<Mailbox<R>>; | ||
} | ||
export declare function subscribe(mailbox: Mailbox<SubscriptionMessage>, source: EventEmitter | EventTarget, events: string | string[]): Operation; | ||
//# sourceMappingURL=mailbox.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.subscribe = exports.Mailbox = void 0; | ||
exports.subscribe = exports.Mailbox = exports.any = void 0; | ||
const effection_1 = require("effection"); | ||
@@ -5,0 +5,0 @@ const events_1 = require("events"); |
export declare function compile(pattern: unknown): (target: unknown) => boolean; | ||
export declare function any(type: unknown): ((value: unknown) => boolean) | (() => boolean); | ||
export declare function any(type: unknown): (value: unknown) => boolean; | ||
//# sourceMappingURL=pattern.d.ts.map |
import { Operation } from 'effection'; | ||
export declare function readyResource<T>(object: T, operation: (ready: () => void) => Operation<void>): Operation<T>; | ||
//# sourceMappingURL=ready-resource.d.ts.map |
{ | ||
"name": "@bigtest/effection", | ||
"version": "0.6.0", | ||
"version": "0.6.1-a0b4a1cb", | ||
"description": "Collection of handly utilities for working with effection. May find a different home later", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/thefrontside/bigtest.git", | ||
@@ -15,10 +15,12 @@ "author": "Frontside Engineering <engineering@frontside.com>", | ||
"scripts": { | ||
"clean": "rm -rf dist *.tsbuildinfo", | ||
"lint": "eslint \"{src,test}/**/*.ts\"", | ||
"test": "mocha -r ts-node/register test/**/*.test.ts", | ||
"mocha": "mocha -r ts-node/register", | ||
"prepack": "tsc --outdir dist --declaration --sourcemap" | ||
"prepack": "tsc --build" | ||
}, | ||
"devDependencies": { | ||
"@frontside/eslint-config": "^1.1.2", | ||
"@frontside/typescript": "^1.1.0", | ||
"@frontside/eslint-config": "^2.0.0", | ||
"@frontside/tsconfig": "^1.2.0", | ||
"@frontside/typescript": "^1.1.1", | ||
"@types/mocha": "^7.0.1", | ||
@@ -28,4 +30,3 @@ "@types/node": "^13.13.4", | ||
"mocha": "^6.2.2", | ||
"ts-node": "*", | ||
"typescript": "3.9.7" | ||
"ts-node": "^9.1.1" | ||
}, | ||
@@ -32,0 +33,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23111
31
254