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.0.1 to 0.0.2

7

lib/processor/annotation/Traits.js

@@ -39,3 +39,3 @@ /*

_applyTraitTo: function(subject, options){
var key, tp, excluded, aliases, alias;
var key, tp, excluded, aliases, alias,t;

@@ -46,7 +46,6 @@ if(typeof options === 'function'){

//TODO: validate trait (a trait should have only methods)
excluded = [].concat(options.excludes);
aliases = options.alias || {};
tp = options.trait.prototype;
t = options.trait || options.talent;
tp = t.prototype;

@@ -53,0 +52,0 @@ for(key in tp){

{
"name": "cocktail",
"description": "Shake your Objects and Classes with Cocktail!",
"version": "0.0.1",
"homepage": "",
"description": "Annotations, Traits and Talents - Shake your objects and classes with Cocktail!",
"version": "0.0.2",
"homepage": "http://cocktailjs.github.com",
"author": {

@@ -28,3 +28,3 @@ "name": "Maximiliano Fierro",

"devDependencies": {
"grunt-simple-mocha": "0.3.2",
"grunt-simple-mocha": "https://github.com/yaymukund/grunt-simple-mocha/tarball/7d1cb9bfd8580fc5369bd82e288f683bb7ca0d46",
"chai": "1.4.2",

@@ -39,3 +39,3 @@ "mocha": "1.8.1",

},
"keywords": []
"keywords": ["oop", "extends", "annotations", "traits", "talents", "properties", "mix", "class"]
}

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