Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ee-class

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-class - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

.jshintrc

40

lib/class.js

@@ -5,4 +5,3 @@ !function(){

var util = require('util')
, setSuper
var setSuper
, setSuperPrototype

@@ -16,3 +15,3 @@ , Class;

if (base.___super) return base.___super.apply(this, Array.prototype.slice.call(arguments));
else throw new Error('The method «'+name+'» has no super «'+name+'» method on any protoype!')
else throw new Error('The method «'+name+'» has no super «'+name+'» method on any protoype!');
};

@@ -24,3 +23,3 @@

if (proto && proto.prototype) setSuperPrototype(name, base, proto.prototype, parent);
}
};

@@ -47,3 +46,3 @@

}
}
};

@@ -68,3 +67,3 @@

var property = classDefinition[key];
// inherits from another class / prototype

@@ -83,6 +82,6 @@ if (key === 'inherits') return;

}
// more analytics required
else if (typeof property === 'object' && Object.prototype.toString.call(property) === '[object Object]') {
// property descriptor

@@ -92,3 +91,3 @@ if (Object.hasOwnProperty.call(property, 'get') || Object.hasOwnProperty.call(property, 'value') || Object.hasOwnProperty.call(property, 'set')) {

// there ar eno other keys on the obejct, we should expect a definition herre
properties[key] = property;

@@ -117,3 +116,6 @@

// check for es6 features
if (Symbol && Symbol.iterator in classDefinition) properties[Symbol.iterator] = {value: classDefinition[Symbol.iterator], writable: true};
// constructor function

@@ -129,3 +131,3 @@ classConstructor = function(){

if (typeof result !== 'undefined') return result;
};
};

@@ -143,2 +145,4 @@

// set enumerable property

@@ -148,3 +152,3 @@ Class.Enumerable = function() {

return this;
}
};

@@ -155,3 +159,3 @@ // set configurable property

return this;
}
};

@@ -162,3 +166,3 @@ // set writable property

return this;
}
};

@@ -168,3 +172,3 @@ // return the class prototype

return typeof instance === 'object' ? Object.getPrototypeOf(instance) : undefined;
}
};

@@ -176,3 +180,3 @@ // return all enumerable key of the class an its prototypes

return keys;
}
};

@@ -182,3 +186,3 @@ // define a proeprty on an objetc

Object.defineProperty(instance, property, descriptor);
}
};

@@ -192,3 +196,3 @@ // implement a class on an object

return target;
}
};

@@ -214,3 +218,3 @@ // list all methods of a class

return description;
}
};
}();
{
"name" : "ee-class"
, "description" : "Fast prototype based javascript classes"
, "version" : "1.1.3"
, "version" : "1.1.4"
, "homepage" : "https://github.com/eventEmitter/ee-class"

@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)"

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