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

react-services-injector

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-services-injector - npm Package Compare versions

Comparing version 0.2.0-beta.3 to 0.2.0-beta.4

12

index.js

@@ -72,7 +72,9 @@ let Service = function() {

disconnectInstance(id) {
let components = this.components.slice(0);
this.components.length = 0;
this.components.concat(components.filter(item => item.key !== id));
disconnectInstance(key) {
this.components.some((component, index) => {
if (component.key === key) {
this.components.splice(index, 1);
return true;
}
});
}

@@ -79,0 +81,0 @@

{
"name": "react-services-injector",
"version": "0.2.0-beta.3",
"version": "0.2.0-beta.4",
"description": "A library to create and use sigleton-services in your React application.",

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

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