You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bottlejs

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bottlejs - npm Package Compare versions

Comparing version

to
0.7.1

2

dist/bottle.js
;(function(undefined) {
'use strict';
/**
* BottleJS v0.7.0 - 2014-12-06
* BottleJS v0.7.1 - 2014-12-06
* A powerful, extensible dependency injection micro container

@@ -6,0 +6,0 @@ *

{
"name": "bottlejs",
"version": "0.7.0",
"version": "0.7.1",
"description": "A powerful, extensible dependency injection micro container",

@@ -5,0 +5,0 @@ "main": "dist/bottle.js",

@@ -175,2 +175,13 @@

## Nested Bottles
Bottle will generate nested containers if dot notation is used in the service name. A sub container will be created for you based on the name given:
```js
var bottle = new Bottle();
var IPA = function() {};
bottle.service('Beer.IPA', IPA);
bottle.container.Beer; // this is a new Bottle.container object
bottle.container.Beer.IPA; // the service
```
## API

@@ -177,0 +188,0 @@