Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

class-builder

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-builder - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

12

index.js

@@ -56,5 +56,2 @@ const BUILD = "build";

// save name before applying base class
var name = constructor.name;
// if extending a class, do so here

@@ -65,8 +62,9 @@ if (_base != undefined) {

Object.defineProperty(constructor, NAME, {
value: name
});
}
// maintain class name
Object.defineProperty(constructor, NAME, {
value: c.name
});
// add each property to class prototype

@@ -73,0 +71,0 @@ for (var each in _properties) {

{
"name": "class-builder",
"version": "1.0.1",
"version": "1.0.2",
"description": "Utility for building classes",

@@ -5,0 +5,0 @@ "main": "index.js",

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