Socket
Socket
Sign inDemoInstall

class-utils

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-utils - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

10

index.js

@@ -264,3 +264,4 @@ 'use strict';

var keys = Object.keys(provider);
var len = props.length, key;
var len = props.length,
key;
omit = cu.arrayify(omit);

@@ -338,3 +339,3 @@

return function (Ctor, proto) {
return function(Ctor, proto) {
if (typeof Ctor !== 'function') {

@@ -357,4 +358,9 @@ throw new TypeError('expected Ctor to be a function.');

}
Ctor.prototype.mixin = function(key, value) {
Ctor.prototype[key] = value;
};
Ctor.extend = cu.extend(Ctor);
};
};

2

package.json
{
"name": "class-utils",
"description": "Utils for working with JavaScript classes and prototype methods.",
"version": "0.1.2",
"version": "0.2.0",
"homepage": "https://github.com/jonschlinkert/class-utils",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -204,3 +204,3 @@ # class-utils [![NPM version](https://badge.fury.io/js/class-utils.svg)](http://badge.fury.io/js/class-utils)

### [.inherit](index.js#L289)
### [.inherit](index.js#L290)

@@ -217,3 +217,3 @@ Inherit the static properties, prototype properties, and descriptors

### [.extend](index.js#L332)
### [.extend](index.js#L333)

@@ -274,2 +274,2 @@ Returns a function for extending the static properties, prototype properties, and descriptors from the `Parent` constructor onto `Child` constructors.

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 19, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 01, 2015._
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