You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

inversify-hooks

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inversify-hooks - npm Package Compare versions

Comparing version

to
1.5.3

4

dist/index.d.ts

@@ -1,3 +0,3 @@

import { cid, container, Container, Inject, inject, injectable } from 'inversify-props';
import { cid, container, Container, Inject, inject, injectable, mockInject, mockRequest, mockSingleton, mockTransient } from 'inversify-props';
declare function useInject<T>(id: string | symbol): [T];
export { useInject, container, Inject, inject, injectable, Container, cid };
export { useInject, container, Inject, inject, injectable, Container, cid, mockInject, mockRequest, mockSingleton, mockTransient };

@@ -10,2 +10,6 @@ "use strict";

exports.injectable = inversify_props_1.injectable;
exports.mockInject = inversify_props_1.mockInject;
exports.mockRequest = inversify_props_1.mockRequest;
exports.mockSingleton = inversify_props_1.mockSingleton;
exports.mockTransient = inversify_props_1.mockTransient;
function useInject(id) {

@@ -12,0 +16,0 @@ return [inversify_props_1.container.get(id)];

@@ -0,0 +0,0 @@ "use strict";

{
"name": "inversify-hooks",
"version": "1.5.2",
"version": "1.5.3",
"description": "Wrapper of inversify-props to inject your dependencies in the components, made with TypeScript using hooks.",

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

"@types/react": "^16.8.7",
"inversify-props": "^1.4.5",
"inversify-props": "^1.4.7",
"react": "^16.8.4"
}
}

@@ -0,0 +0,0 @@ # Inversify Hooks

@@ -1,2 +0,2 @@

import { cid, container, Container, Inject, inject, injectable } from 'inversify-props';
import { cid, container, Container, Inject, inject, injectable, mockInject, mockRequest, mockSingleton, mockTransient } from 'inversify-props';

@@ -7,3 +7,3 @@ function useInject<T>(id: string | symbol): [T] {

export { useInject, container, Inject, inject, injectable, Container, cid };
export { useInject, container, Inject, inject, injectable, Container, cid, mockInject, mockRequest, mockSingleton, mockTransient };

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet