Comparing version 0.7.2 to 1.0.0
;(function(undefined) { | ||
'use strict'; | ||
/** | ||
* BottleJS v0.7.2 - 2014-12-26 | ||
* A powerful, extensible dependency injection micro container | ||
* BottleJS v1.0.0 - 2015-05-25 | ||
* A powerful dependency injection micro container | ||
* | ||
* Copyright (c) 2014 Stephen Young | ||
* Copyright (c) 2015 Stephen Young | ||
* Licensed MIT | ||
@@ -285,2 +285,3 @@ */ | ||
bottles[name] = instance = new Bottle(); | ||
instance.constant('BOTTLE_NAME', name); | ||
} | ||
@@ -287,0 +288,0 @@ return instance; |
{ | ||
"name": "bottlejs", | ||
"version": "0.7.2", | ||
"description": "A powerful, extensible dependency injection micro container", | ||
"version": "1.0.0", | ||
"description": "A powerful dependency injection micro container", | ||
"main": "dist/bottle.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -5,7 +5,7 @@ | ||
> A powerful, extensible dependency injection micro container | ||
> A powerful dependency injection micro container | ||
## Introduction | ||
BottleJS is a tiny yet powerful dependency injection container. It features lazy loading, middleware hooks, decorators and a clean api inspired by the [AngularJS Module API](https://docs.angularjs.org/api/ng/type/angular.Module) and the simple PHP library [Pimple](http://pimple.sensiolabs.org/). You'll like BottleJS if you enjoy: | ||
BottleJS is a tiny, powerful dependency injection container. It features lazy loading, middleware hooks, decorators and a clean api inspired by the [AngularJS Module API](https://docs.angularjs.org/api/ng/type/angular.Module) and the simple PHP library [Pimple](http://pimple.sensiolabs.org/). You'll like BottleJS if you enjoy: | ||
@@ -193,7 +193,7 @@ * building a stack from components rather than a kitchen-sink framework. | ||
Used to get an instance of bottle. If a name is passed, bottle will return the same instance. Calling the Bottle constructor as a function will call and return return `Bottle.pop`, so `Bottle.pop('Soda') === Bottle('pop')` | ||
Used to get an instance of bottle. If a name is passed, bottle will return the same instance. Calling the Bottle constructor as a function will call and return return `Bottle.pop`, so `Bottle.pop('Soda') === Bottle('Soda')` | ||
Param | Type | Details | ||
:--------------------------|:-----------|:-------- | ||
**name**<br />*(optional)* | The name of the bottle. If passed, bottle will store the instance internally and return the same instance if `Bottle.pop` is subsequently called with the same name. | ||
**name**<br />*(optional)* | *String* | The name of the bottle. If passed, bottle will store the instance internally and return the same instance if `Bottle.pop` is subsequently called with the same name. | ||
@@ -222,3 +222,3 @@ ### Bottle.prototype | ||
Register a function to be executed only when `Bottle#resolve` is called. | ||
Register a function to be executed when `Bottle#resolve` is called. | ||
@@ -225,0 +225,0 @@ Param | Type | Details |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
31232
548
0