Socket
Socket
Sign inDemoInstall

static-extend

Package Overview
Dependencies
10
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

7

index.js

@@ -10,2 +10,3 @@ /*!

var copy = require('object-copy');
var define = require('define-property');

@@ -29,3 +30,2 @@ var util = require('util');

* });
* ```
*

@@ -60,7 +60,4 @@ * // extend "child" constructors

util.inherits(Ctor, Parent);
copy(Ctor, Parent);
for (var key in Parent) {
Ctor[key] = Parent[key];
}
// proto can be null or a plain object

@@ -67,0 +64,0 @@ if (typeof proto === 'object') {

{
"name": "static-extend",
"description": "Adds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/jonschlinkert/static-extend",

@@ -23,7 +23,8 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"dependencies": {
"define-property": "^0.2.5"
"define-property": "^0.2.5",
"object-copy": "^0.1.0"
},
"devDependencies": {
"gulp-format-md": "^0.1.7",
"mocha": "^2.4.5"
"gulp-format-md": "^0.1.9",
"mocha": "^2.5.3"
},

@@ -56,3 +57,4 @@ "keywords": [

"reflinks": [
"verb"
"verb",
"verb-readme-generator"
],

@@ -59,0 +61,0 @@ "lint": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc