🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

container-ioc

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

container-ioc - npm Package Compare versions

Comparing version

to
1.1.0

@@ -6,4 +6,4 @@ const gulp = require('gulp');

let tsProjectDevelopment = ts.createProject('tsconfig.json');
let tsProjectDist = ts.createProject('tsconfig.json', { noImplicitAny: true });
const tsProjectDevelopment = ts.createProject('tsconfig.json');
const tsProjectDist = ts.createProject('tsconfig.json', { noImplicitAny: true });

@@ -23,3 +23,3 @@ gulp.task('compile', function() {

gulp.task('dist', function() {
gulp.task('compile-dist', function() {
return gulp.src(['src/**/*.ts', '!src/**/*.d.ts'])

@@ -30,3 +30,3 @@ .pipe(tsProjectDevelopment())

gulp.task('test-dist', ['dist'], function () {
gulp.task('test-dist', ['compile-dist'], function () {
return gulp.src('dist/tests/**/*.spec.js', {read: false})

@@ -38,4 +38,4 @@ .pipe(mocha({

gulp.task("tslint", () =>
gulp.src("src/**/*.ts")
gulp.task("tslint", () => {
return gulp.src("src/**/*.ts")
.pipe(tslint({

@@ -45,3 +45,4 @@ configuration: "./tslint.json"

}))
.pipe(tslint.report())
.pipe(tslint.report());
}
);
{
"name": "container-ioc",
"version": "1.0.9",
"description": "IoC container for browser and nodejs environments",
"scripts": {
"build": "tsc -w",
"test": "mocha --reporter dot -w 'dist/**/*.spec.js'"
},
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"version": "1.1.0",
"description": "IoC container",
"author": "Alexander Kozlov",
"repository": {

@@ -15,5 +10,19 @@ "type": "git",

},
"keywords": [],
"author": "Alexander Kozlov",
"keywords": [
"ioc",
"container",
"dependency",
"di",
"inject",
"injection",
"inverstion of control",
"injector"
],
"license": "ISC",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"scripts": {
"build": "tsc -w",
"test": "mocha --reporter dot -w 'dist/**/*.spec.js'"
},
"bugs": {

@@ -20,0 +29,0 @@ "url": "https://github.com/thohoh/container-ioc/issues"

## IoC Container written in Typescript
<p> Annotation based Inversion of Controll container implementation.
#### Installation:
```
npm install --save container-ioc
```
### API usage:
> Container's API and behaviour is very similar to the one used in **Angular4**.

@@ -110,2 +116,13 @@ ##### in a Typescript project:

```
```
### Future:
It's just a very basic version. I'm going to add more functionality to meet common use cases, such as ability
to mark injections in constructor with types only (typescript projects) and more handy API.
### Contribution:
If you want to help feel free to submit an bug or a feature request.
Also leave a comment under the issue you'd like to work on.
see [CONTRIBUTION.md](CONTRIBUTION.md)

Sorry, the diff of this file is not supported yet