Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inversify-dts

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inversify-dts - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

inversify-devtools/inversify-devtools-test.ts

8

inversify-express-utils/inversify-express-utils-tests.ts
/// <reference path="./inversify-express-utils.d.ts" />
import { InversifyExpressServer, Controller, Get, All, Delete, Head, Put, Patch, Post, Method } from "inversify-express-utils";
import { InversifyExpressServer, Controller, Get, All, Delete, Head, Put, Patch, Post, Method, TYPE } from "inversify-express-utils";
import * as express from "express";
import { Kernel } from "inversify";
let kernel = new Kernel();
module server {
let kernel = new Kernel();
let server = new InversifyExpressServer(kernel);

@@ -58,2 +60,4 @@

kernel.bind<Controller>(TYPE.Controller).to(TestController);
function m1(req: express.Request, res: express.Response, next: express.NextFunction) { next(); }

@@ -60,0 +64,0 @@ function m2(req: express.Request, res: express.Response, next: express.NextFunction) { next(); }

@@ -40,2 +40,6 @@ // Type definitions for inversify 1.0.0-alpha.4

interface ServiceIdentifiers {
Controller: Symbol;
}
export var InversifyExpressServer: interfaces.InversifyExpressServerConstructor;

@@ -53,3 +57,4 @@

export var Method: (method: string, path: string, ...middleware: express.RequestHandler[]) => interfaces.HandlerDecorator;
export var TYPE: ServiceIdentifiers;
}
{
"name": "inversify-dts",
"version": "1.2.0",
"version": "1.3.0",
"description": "The InversifyJS TypeScript type definitions",

@@ -5,0 +5,0 @@ "main": "index.js",

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