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-2b458f42 to 0.9.1-2cf03b92

6

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';

@@ -7,0 +7,0 @@ import { Subscribable, SymbolSubscribable, Subscription } from '@effection/subscription';

"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));
}

@@ -45,2 +48,3 @@ }

}
// eslint-disable-next-line @typescript-eslint/ban-types
*use(handler) {

@@ -55,2 +59,3 @@ return yield effection_1.resource({}, (controls) => {

}
// eslint-disable-next-line @typescript-eslint/ban-types
*get(path, handler) {

@@ -65,2 +70,3 @@ return yield effection_1.resource({}, (controls) => {

}
// eslint-disable-next-line @typescript-eslint/ban-types
*ws(path, handler) {

@@ -99,5 +105,5 @@ return yield effection_1.resource({}, (controls) => {

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-2b458f42",
"version": "0.9.1-2cf03b92",
"description": "Makes it easy to use Express from Effection",

@@ -22,4 +22,5 @@ "main": "dist/index.js",

"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",

@@ -29,3 +30,3 @@ "@types/node": "^13.13.4",

"mocha": "^6.2.2",
"ts-node": "*"
"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

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