@appolo/inject
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -33,2 +33,5 @@ "use strict"; | ||
} | ||
id() { | ||
return this._definition && this._definition.id; | ||
} | ||
type(type) { | ||
@@ -35,0 +38,0 @@ this._definition.type = type; |
@@ -49,2 +49,6 @@ "use strict"; | ||
public id(): string { | ||
return this._definition && this._definition.id; | ||
} | ||
public type(type: Function): this { | ||
@@ -51,0 +55,0 @@ this._definition.type = type; |
@@ -51,4 +51,4 @@ "use strict"; | ||
this.initDefinitions(); | ||
await this.initFactories(); | ||
this.initInstances(); | ||
await this.initFactories(); | ||
this.initProperties(); | ||
@@ -55,0 +55,0 @@ this.initAlias(); |
@@ -85,8 +85,8 @@ "use strict"; | ||
this.initDefinitions(); | ||
await this.initFactories(); | ||
this.initInstances(); | ||
await this.initFactories(); | ||
this.initProperties(); | ||
@@ -93,0 +93,0 @@ |
@@ -34,3 +34,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"license": "MIT", | ||
@@ -37,0 +37,0 @@ "repository": { |
Appolo Inject | ||
======= | ||
[![Build Status](https://travis-ci.org/shmoop207/appolo-inject.svg?branch=master)](https://travis-ci.org/shmoop207/appolo-inject) [![Dependencies status](https://david-dm.org/shmoop207/appolo-inject.svg)](https://david-dm.org/shmoop207/appolo-inject) [![NPM version](https://badge.fury.io/js/appolo-inject.svg)](https://badge.fury.io/js/appolo-inject) [![npm Downloads](https://img.shields.io/npm/dm/appolo-inject.svg?style=flat)](https://www.npmjs.com/package/appolo-inject) | ||
[![Build Status](https://travis-ci.com/shmoop207/appolo-inject.svg?branch=master)](https://travis-ci.org/shmoop207/appolo-inject) [![Dependencies status](https://david-dm.org/shmoop207/appolo-inject.svg)](https://david-dm.org/shmoop207/appolo-inject) [![NPM version](https://badge.fury.io/js/appolo-inject.svg)](https://badge.fury.io/js/appolo-inject) [![npm Downloads](https://img.shields.io/npm/dm/appolo-inject.svg?style=flat)](https://www.npmjs.com/package/appolo-inject) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/shmoop207/appolo-inject/badge.svg)](https://snyk.io/test/github/shmoop207/appolo-inject) | ||
@@ -25,3 +25,3 @@ | ||
```javascript | ||
var inject = require('appolo-inject'); | ||
var inject = require('@appolo/inject'); | ||
var injector = inject.createContainer(); | ||
@@ -36,3 +36,3 @@ | ||
```javascript | ||
var inject = require('appolo-inject'); | ||
var inject = require('@appolo/inject'); | ||
class FooController{ } | ||
@@ -39,0 +39,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
171311
2700