@bigtest/effection-express
Advanced tools
Comparing version 0.9.1 to 0.9.2-a0b4a1cb
# @bigtest/effection-express | ||
## 0.9.2 | ||
### Patch Changes | ||
- 4d7c43f9: enable eslint rules from the latest @typescript-eslint/recommended | ||
- d85e5e95: upgrade eslint, typescript and @frontside packages | ||
- Updated dependencies [4d7c43f9] | ||
- Updated dependencies [d85e5e95] | ||
- @bigtest/effection@0.6.1 | ||
## 0.9.1 | ||
@@ -4,0 +14,0 @@ |
/// <reference types="node" /> | ||
import { Operation } from 'effection'; | ||
import * as actualExpress from 'express'; | ||
import * as WebSocket from 'ws'; | ||
import * as ews from 'express-ws'; | ||
import actualExpress from 'express'; | ||
import WebSocket from 'ws'; | ||
import ews from 'express-ws'; | ||
import { Server } from 'http'; | ||
@@ -26,5 +26,5 @@ import { Subscribable, SymbolSubscribable, Subscription } from '@effection/subscription'; | ||
constructor(raw: ews.Application); | ||
use(handler: OperationRequestHandler): Operation<{}>; | ||
get(path: string, handler: OperationRequestHandler): Operation<{}>; | ||
ws(path: string, handler: WsOperationRequestHandler): Operation<{}>; | ||
use(handler: OperationRequestHandler): Operation<Record<string, never>>; | ||
get(path: string, handler: OperationRequestHandler): Operation<Record<string, never>>; | ||
ws(path: string, handler: WsOperationRequestHandler): Operation<Record<string, never>>; | ||
listen(port: number): Operation<Server>; | ||
@@ -35,1 +35,2 @@ join(): Operation<void>; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.express = exports.Express = exports.Socket = void 0; | ||
const effection_1 = require("effection"); | ||
const actualExpress = require("express"); | ||
const ews = require("express-ws"); | ||
const util = require("util"); | ||
const express_1 = __importDefault(require("express")); | ||
const express_ws_1 = __importDefault(require("express-ws")); | ||
const util_1 = require("util"); | ||
const events_1 = require("@effection/events"); | ||
@@ -20,3 +23,3 @@ const subscription_1 = require("@effection/subscription"); | ||
if (this.raw.readyState === 1) { | ||
yield util.promisify(this.raw.send.bind(this.raw))(JSON.stringify(data)); | ||
yield util_1.promisify(this.raw.send.bind(this.raw))(JSON.stringify(data)); | ||
} | ||
@@ -96,5 +99,5 @@ } | ||
function express() { | ||
return new Express(ews(actualExpress()).app); | ||
return new Express(express_ws_1.default(express_1.default()).app); | ||
} | ||
exports.express = express; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@bigtest/effection-express", | ||
"version": "0.9.1", | ||
"version": "0.9.2-a0b4a1cb", | ||
"description": "Makes it easy to use Express from Effection", | ||
"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 --module commonjs" | ||
"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,5 +30,6 @@ "@types/node": "^13.13.4", | ||
"mocha": "^6.2.2", | ||
"ts-node": "*" | ||
"ts-node": "^9.1.1" | ||
}, | ||
"dependencies": { | ||
"@bigtest/effection": "^0.6.1", | ||
"@effection/events": "^0.7.8", | ||
@@ -33,0 +36,0 @@ "@effection/subscription": "^0.11.0", |
Sorry, the diff of this file is not supported yet
12253
7
133
8
8
+ Added@bigtest/effection@^0.6.1
+ Added@bigtest/effection@0.6.3(transitive)
+ Added@effection/events@1.0.0(transitive)
+ Added@effection/subscription@1.0.0(transitive)
+ Addedeffection@1.0.0(transitive)