New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bigtest/effection-express

Package Overview
Dependencies
Maintainers
1
Versions
286
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigtest/effection-express - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2-a0b4a1cb

dist/index.d.ts.map

10

CHANGELOG.md
# @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 @@

13

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

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