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.7 to 0.2.0-beta.8

12

index.es5.js

@@ -18,3 +18,3 @@ var Service = function() {

this.updateComponents = function() {
return Promise.all(this.components.map(function(component) {
return Promise.all(self.components.map(function(component) {
return new Promise(function(resolve) {

@@ -40,3 +40,5 @@ component.instance.forceUpdate.call(component.instance, resolve);

return self.updateComponents()
.then(() => result);
.then(function () {
return result;
});
};

@@ -46,3 +48,5 @@ });

instance.$update = function () {
self.components.forEach(component => component.instance.forceUpdate.call(component.instance));
self.components.forEach(function(component) {
component.instance.forceUpdate.call(component.instance);
});
};

@@ -94,3 +98,3 @@

this.disconnectInstance = function(key) {
self.components.some((component, index) => {
self.components.some(function(component, index) {
if (component.key === key) {

@@ -97,0 +101,0 @@ self.components.splice(index, 1);

{
"name": "react-services-injector",
"version": "0.2.0-beta.7",
"version": "0.2.0-beta.8",
"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