Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.7.0 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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc