Socket
Socket
Sign inDemoInstall

mixto

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixto - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

12

lib/mixin.js

@@ -5,4 +5,2 @@ (function() {

module.exports = Mixin = (function() {
function Mixin() {}
Mixin.includeInto = function(constructor) {

@@ -14,3 +12,3 @@ var name, value, _ref;

if (ExcludedClassProperties.indexOf(name) === -1) {
if (constructor[name] == null) {
if (!constructor.hasOwnProperty(name)) {
constructor[name] = value;

@@ -29,3 +27,3 @@ }

if (ExcludedPrototypeProperties.indexOf(name) === -1) {
if (object[name] == null) {
if (!object.hasOwnProperty(name)) {
object[name] = this.prototype[name];

@@ -38,2 +36,8 @@ }

function Mixin() {
if (typeof this.extended === "function") {
this.extended();
}
}
return Mixin;

@@ -40,0 +44,0 @@

{
"name": "mixto",
"version": "0.3.0",
"version": "0.4.0",
"description": "A mixin superclass. Its subclasses have `.extend` and `.includeInto` methods to mix behavior into other objects and classes.",

@@ -5,0 +5,0 @@ "main": "lib/mixin",

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