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

inversify-inject-decorators

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inversify-inject-decorators - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

dts/decorators.d.ts

8

es/index.js

@@ -8,8 +8,8 @@ import { makePropertyInjectDecorator, makePropertyMultiInjectDecorator, makePropertyInjectTaggedDecorator, makePropertyInjectNamedDecorator } from "./decorators";

return {
lazyInject,
lazyInjectNamed,
lazyInjectTagged,
lazyMultiInject
lazyInject: lazyInject,
lazyInjectNamed: lazyInjectNamed,
lazyInjectTagged: lazyInjectTagged,
lazyMultiInject: lazyMultiInject
};
}
export default getDecorators;
{
"name": "inversify-inject-decorators",
"version": "1.0.0",
"version": "2.0.0",
"description": "Lazy evaluated property injection decorators for InversifyJS",
"main": "lib/index.js",
"jsnext:main": "es/index.js",
"typings": "./dts/index.d.ts",
"directories": {

@@ -34,2 +36,5 @@ "test": "test"

"devDependencies": {
"@types/chai": "^3.4.32",
"@types/mocha": "^2.2.31",
"@types/sinon": "^1.16.29",
"chai": "^3.5.0",

@@ -41,4 +46,3 @@ "gulp": "^3.9.1",

"gulp-typescript": "^2.13.6",
"inversify": "^2.0.0-rc.5",
"inversify-dts": "^2.0.0",
"inversify": "^2.0.0",
"mocha": "^3.0.2",

@@ -49,4 +53,4 @@ "publish-please": "^2.2.0",

"tslint": "^3.14.0",
"typescript": "^1.8.10"
"typescript": "^2.0.2"
}
}

@@ -35,16 +35,11 @@ # inversify-inject-decorators

## Installation
You can install inversify-inject-decorators using npm:
You can install `inversify-inject-decorators` using npm:
```
$ npm install --save inversify inversify-inject-decorators reflect-metadata
$ npm install --save-dev inversify-dts
$ npm install inversify inversify-inject-decorators reflect-metadata --save
```
If you are working with TypeScript you will need the following .d.ts files:
The `inversify-inject-decorators` type definitions are included in the npm module and require TypeScript 2.0.
Please refer to the [InversifyJS documentation](https://github.com/inversify/InversifyJS#installation) to learn more about the installation process.
```ts
/// <reference path="node_modules/reflect-metadata/reflect-metadata.d.ts" />
/// <reference path="node_modules/inversify-dts/inversify-inject-decorators/inversify-inject-decorators.d.ts" />
```
## Basic property lazy-injection with `@lazyInject`

@@ -51,0 +46,0 @@ The following example showcases how to inject into a property

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