Huge News!Announcing our $40M Series B led by Abstract Ventures.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.7.2 to 0.7.3

7

CHANGELOG.md
## CHANGE LOG
- 0.7.3
- Fixed issue #27: `cocktail.use` issues with named funciton class constructors.
- Added test to cover #27.
- Copyright notice updated.
- Updated dev dependencies.
- Fixed linting issues.
- 0.7.2

@@ -4,0 +11,0 @@ - Fixed issue #26: Recursive loop when nesting `callSuper`.

6

lib/cocktail.js
/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -87,6 +87,6 @@ */

use: function (annotation) {
var name = annotation.name || (annotation.prototype && annotation.prototype.name),
var name = (annotation.prototype && annotation.prototype.name),
processor = {};
if (name && annotation.prototype) {
if (ANNOTATION_REG_EXP.test(name) && annotation.prototype) {
processor[name] = annotation;

@@ -93,0 +93,0 @@ this.registerProcessors(processor);

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -124,3 +124,3 @@ */

}
}else if (mine[key] === undefined ) {
} else if (mine[key] === undefined ) {
mine[key] = their[key];

@@ -127,0 +127,0 @@ }

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -54,3 +54,4 @@ */

o[type] = options;
return me._applyTo(subject, o);
me._applyTo(subject, o);
return;
}

@@ -57,0 +58,0 @@

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

/*
*
* Copyright (c) 2013 - 2015 Maximiliano Fierro
* Copyright (c) 2013 - 2016 Maximiliano Fierro
* Licensed under the MIT license.

@@ -5,0 +5,0 @@ */

{
"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.7.2",
"version": "0.7.3",
"homepage": "http://cocktailjs.github.io",

@@ -35,7 +35,7 @@ "author": {

"devDependencies": {
"chai": "~3.2",
"eslint": "^1.2.1",
"istanbul": "^0.3.18",
"mocha": "~2.2.5",
"sinon": "~1.16.1",
"chai": "~3.5.0",
"eslint": "^2.11.1",
"istanbul": "^0.4.3",
"mocha": "~2.5.3",
"sinon": "~1.17.4",
"sinon-chai": "~2.8"

@@ -42,0 +42,0 @@ },

@@ -275,3 +275,3 @@ # Cocktail JS

## License
Copyright (c) 2013 - 2015 Maximiliano Fierro
Copyright (c) 2013 - 2016 Maximiliano Fierro
Licensed under the MIT license.

Sorry, the diff of this file is not supported yet

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