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.2 to 1.0.0

7

dist/bottle.js
;(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

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