Comparing version 0.0.18 to 0.0.26
@@ -12,7 +12,7 @@ | ||
commitFiles: ['-a'], | ||
createTag: true, | ||
createTag: false, | ||
tagName: 'v%VERSION%', | ||
tagMessage: 'Version %VERSION%', | ||
push: true, | ||
pushTo: 'upstream', | ||
pushTo: 'origin', | ||
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d', | ||
@@ -26,2 +26,4 @@ globalReplace: false, | ||
grunt.loadNpmTasks('grunt-bump'); | ||
}; |
{ | ||
"name": "di-ts", | ||
"version": "0.0.18", | ||
"version": "0.0.26", | ||
"description": "Lightweight wrap and extension of angular/di.js for TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -30,8 +30,12 @@ | ||
```typescript | ||
import {Provide} from 'di-ts' | ||
export class Engine { | ||
} | ||
``` | ||
### mockEngine.ts | ||
```typescript | ||
import {Provide} from 'di-ts' | ||
import {Engine} from './engine' | ||
@Provide(Engine) | ||
@@ -49,5 +53,4 @@ export class MockEngine { | ||
import {Car} from './car' | ||
import {Engine, MockEngine} from './engine' | ||
import {Engine} from './engine' | ||
var injector = new Injector(); | ||
@@ -57,2 +60,3 @@ var car: Car = injector.get(Car); //instantiate car, car.engine is magically instance of Engine! :) | ||
import {MockEngine} from './mockEngine' | ||
var injector2 = new Injector([MockEngine]); | ||
@@ -59,0 +63,0 @@ var car2: Car = injector2.get(Car); //instantiate car, car.engine is instance of MockEngine! :) |
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
6529
129
65