inversify-inject-decorators
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18779
11
166
16
272