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.21 to 0.0.22

9

ConstructorUtils.js

@@ -12,3 +12,10 @@ "use strict";

if (object instanceof Array) {
return object.map(function (item) { return _this.convert(item.constructor, item, "constructorToPlain"); });
return object.map(function (item) {
if (item instanceof Object) {
return _this.convert(item.constructor, item, "constructorToPlain");
}
else {
return item;
}
});
}

@@ -15,0 +22,0 @@ else {

2

package.json
{
"name": "constructor-utils",
"version": "0.0.21",
"version": "0.0.22",
"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,6 +8,10 @@ # constructor-utils

**0.0.18 >> 0.0.20**
**0.0.22**
* fixed bug when getters are not converted with es6 target
* bugfix when array with primitive types is being converted
**0.0.18 >> 0.0.21**
* fixed bugs when getters are not converted with es6 target
**0.0.17**

@@ -14,0 +18,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