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

constructor-utils

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constructor-utils - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

6

ConstructorUtils.js

@@ -48,6 +48,7 @@ "use strict";

}
var keys = Object.keys(object).concat(Object.getOwnPropertyNames(cls));
var _loop_1 = function(key) {
if (this_1.isSkipped(cls, key, operationType))
return "continue";
if (typeof object[key] !== "function") {
if (typeof object[key] !== "function" && object[key] !== undefined) {
if (options && options.skipStartedWith &&

@@ -116,3 +117,4 @@ key.substr(0, options.skipStartedWith.length) === options.skipStartedWith)

var this_1 = this;
for (var key in object) {
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
var key = keys_1[_i];
var state_1 = _loop_1(key);

@@ -119,0 +121,0 @@ if (state_1 === "continue") continue;

{
"name": "constructor-utils",
"version": "0.0.17",
"version": "0.0.18",
"description": "Constructor utilities to simplify work with classes and constructors. Provides plain javascript objects to classes transformation utilities.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -8,2 +8,8 @@ # constructor-utils

**0.0.17**
* fixed issue #4
* added type guessing during transformation from constructor to plain object
* added sample with generics
**0.0.16**

@@ -10,0 +16,0 @@

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