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

extendable-immutable

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extendable-immutable - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

es/util/createExtendable.js

@@ -45,3 +45,3 @@ import _Object$create from 'babel-runtime/core-js/object/create';

var res = _originalMethod.apply(this, args);
if (res instanceof base && !(res instanceof proto.constructor)) {
if (res.constructor === base.prototype.constructor) {
return this.__wrapImmutable(res);

@@ -48,0 +48,0 @@ }

@@ -63,3 +63,3 @@ 'use strict';

var res = _originalMethod.apply(this, args);
if (res instanceof base && !(res instanceof proto.constructor)) {
if (res.constructor === base.prototype.constructor) {
return this.__wrapImmutable(res);

@@ -66,0 +66,0 @@ }

{
"name": "extendable-immutable",
"version": "1.0.3",
"version": "1.0.4",
"main": "lib/index.js",

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

@@ -42,3 +42,3 @@ import invariant from 'invariant'

const res = _originalMethod.apply(this, args)
if (res instanceof base && !(res instanceof proto.constructor)) {
if (res.constructor === base.prototype.constructor) {
return this.__wrapImmutable(res)

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