Socket
Socket
Sign inDemoInstall

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 1.3.0 to 1.3.2

0

dist/index.d.ts
export * from 'inversify-props';
import { useContainer } from './use-service.hook';
export { useContainer };

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

export declare function useContainer<T>(id: string | symbol): T;

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

5

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

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

],
"peerDependencies": {
"reflect-metadata": "0.1.12"
},
"dependencies": {

@@ -30,0 +27,0 @@ "inversify-props": "^1.3.0"

@@ -14,5 +14,23 @@ # Inversify Hooks

```
npm install --save inversify-hooks reflect-metadata@0.1.12
$ npm install inversify-hooks reflect-metadata --save
```
The inversify-hooks type definitions are included in the inversify-hooks npm package.
> :warning: **Important!** inversify-hooks requires TypeScript >= 2.0 and the `experimentalDecorators`, `emitDecoratorMetadata`, `types` and `lib`
compilation options in your `tsconfig.json` file.
```js
{
"compilerOptions": {
"target": "es5",
"lib": ["es6"],
"types": ["reflect-metadata"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
## Usage

@@ -19,0 +37,0 @@ ```

@@ -0,0 +0,0 @@ export * from 'inversify-props';

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

@@ -0,0 +0,0 @@ import { container } from 'inversify-props';

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