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.4.5 to 0.4.6

4

CHANGELOG.md
##CHANGE LOG
- 0.4.6
- status: Alpha
- Fixed issue with Traits/Talents throwing errors on excluded/aliased methods. See #13.
- 0.4.5

@@ -4,0 +8,0 @@ - status: Alpha

2

lib/processor/annotation/Exports.js

@@ -31,3 +31,3 @@ /*

if(value){
if(value && typeof value === 'object'){
value['exports'] = subject;

@@ -34,0 +34,0 @@ }

@@ -41,5 +41,6 @@ /*

mthdArgs = Array.prototype.slice.call(arguments, 1);
if(mthd){
return mthd.apply(this, mthdArgs);
if(!mthd){
throw new Error("There is no method named " + mthd + " in parent class.");
}
return mthd.apply(this, mthdArgs);
};

@@ -46,0 +47,0 @@ }

@@ -54,6 +54,7 @@ /*

this._raiseErrorIfItIsState(key, tp);
this._raiseErrorIfConflict(key, subject, tp);
if(excluded.indexOf(key) === -1){
alias = aliases[key] || key;
this._raiseErrorIfConflict(alias, subject, tp);

@@ -60,0 +61,0 @@ if(!subject[alias] || subject[alias] === Requires.requiredMethod){

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

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

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