New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cocktail

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cocktail - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

26

lib/Cocktail.js

@@ -16,2 +16,7 @@ /*

* @private
* Stack of _queues
*/
_qStack: [],
/**
* @private
* The queue of processors instances for the given mix

@@ -113,2 +118,20 @@ */

* @private
* stacks current queue
*/
_pushQueue: function() {
this._qStack.push(this._queue);
this._queue = [];
},
/**
* @private
* restore current queue
*/
_popQueue: function() {
this._queue = this._qStack.pop();
},
/**
* @private
* Cleans the processor queue

@@ -238,3 +261,2 @@ */

mix: function(subject, options){
if(!options && this._isClassDefition(subject)) {

@@ -245,5 +267,7 @@ return this._processClassDefition(subject);

if(subject){
this._pushQueue();
this._applyDefaultsOptions(options);
this._configureProcessorsWith(options);
this._executeProcessorsOn(subject, options);
this._popQueue();
}

@@ -250,0 +274,0 @@

2

package.json
{
"name": "cocktail",
"description": "CocktailJS is a small library to explore traits, talents, inheritance and annotations concepts in nodejs - Shake your objects and classes with Cocktail!",
"version": "0.4.2",
"version": "0.4.3",
"homepage": "http://cocktailjs.github.io",

@@ -6,0 +6,0 @@ "author": {

@@ -111,8 +111,13 @@ # Cocktail JS

- 0.4.2 (current master)
- 0.4.3 (current master)
- status: Alpha
- Fixed issue with mix being called from an annotation process.
- Test added.
- 0.4.2
- status: Alpha
- Fixed issue with constructor chain parameters.
- Test added for constructor chain parameters.
- 0.4.1 (current master)
- 0.4.1
- status: Alpha

@@ -119,0 +124,0 @@ - Fixed issue with constructor chain.

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