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

reactive-di

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-di - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

2

dist/core/Updater.js

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

function cloneInstance(target, props) {
return new target.constructor(_extends({}, target, props));
return props instanceof target.constructor ? props : new target.constructor(_extends({}, target, props));
}

@@ -29,0 +29,0 @@

{
"name": "reactive-di",
"version": "2.4.1",
"version": "2.4.2",
"description": "Reactive dependency injection",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -20,3 +20,5 @@ // @flow

function cloneInstance<Instance: Object>(target: Instance, props: $Shape<Instance>): Instance {
return new target.constructor({...target, ...props})
return props instanceof target.constructor
? props
: new target.constructor({...target, ...props})
}

@@ -23,0 +25,0 @@

Sorry, the diff of this file is not supported yet

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