Socket
Socket
Sign inDemoInstall

extend-me

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extend-me - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

11

index.js
'use strict';
/** @namespace extend **/
/** @namespace extend-me **/

@@ -31,3 +31,3 @@ /** @summary Extends an existing constructor into a new constructor.

*
* @memberOf extend
* @memberOf extend-me
*/

@@ -50,2 +50,3 @@ function extend(prototypeAdditions) {

for (var key in prototypeAdditions) {
var value = prototypeAdditions[key];
switch (key) {

@@ -59,8 +60,7 @@ case 'initializeOwn':

case 'aliases':
for (var alias in prototypeAdditions.aliases) {
makeAlias(prototypeAdditions.aliases[alias]);
for (var alias in value) {
makeAlias(value[alias], alias);
}
break;
default:
var value = prototypeAdditions[key];
if (typeof value === 'string' && value[0] === '#') {

@@ -101,2 +101,3 @@ makeAlias(value, key.substr(1));

* @private
* @memberOf extend-me
*/

@@ -103,0 +104,0 @@ function initializePrototypeChain() {

{
"name": "extend-me",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",

@@ -5,0 +5,0 @@ "description": "Yet another Backbone-like class extender",

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