New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

inherits-ex

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inherits-ex - npm Package Compare versions

Comparing version 1.1.8 to 1.2.0

test.coffee

2

lib/inheritsDirectly.js
var newPrototype = require('./newPrototype');
var setPrototypeOf = require('./setPrototypeOf');
var defineProperty = require('./defineProperty');

@@ -9,2 +10,3 @@

ctor.prototype = newPrototype(superCtor, ctor);
setPrototypeOf(ctor, superCtor);//additional static inheritance
};

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/snowyu/inherits-ex.js",
"version": "1.1.8",
"version": "1.2.0",
"author": {

@@ -8,0 +8,0 @@ "name": "Riceball LEE",

@@ -22,2 +22,3 @@ ### Inherits-Ex [![npm](https://img.shields.io/npm/v/inherits-ex.svg)](https://npmjs.org/package/inherits-ex)

+ coffee-script supports
+ static inheritance
+ multi-inheritances(inheritance chain) supports

@@ -94,2 +95,3 @@ + inherits at anytime.

class Root
@static: 1
m: -> log('root')

@@ -115,3 +117,3 @@

assert.ok isInheritedFrom(MyClass, B)
assert.equal MyClass.static, 1
```

@@ -118,0 +120,0 @@

var newPrototype = require('./newPrototype');
var setPrototypeOf = require('./setPrototypeOf');
var defineProperty = require('./defineProperty');

@@ -9,2 +10,3 @@

ctor.prototype = newPrototype(superCtor, ctor);
setPrototypeOf(ctor, superCtor);//additional static inheritance
};

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