This repository was archived by the owner on Jul 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @fluencelabs/fluence" ,
3- "version" : " 0.9.3 " ,
3+ "version" : " 0.9.9 " ,
44 "description" : " JS SDK for the Fluence network" ,
55 "main" : " ./dist/index.js" ,
66 "typings" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change 11import { FluenceClient } from './FluenceClient' ;
22import { SecurityTetraplet } from './internal/commonTypes' ;
3- import { genUUID , Particle } from './internal/particle' ;
3+ import { Particle } from './internal/particle' ;
44import Multiaddr from 'multiaddr' ;
55import PeerId , { isPeerId } from 'peer-id' ;
66import { generatePeerId , seedToPeerId } from './internal/peerIdUtils' ;
@@ -106,9 +106,9 @@ export const subscribeToEvent = (
106106) : Function => {
107107 const realHandler = ( args : any [ ] , tetraplets : SecurityTetraplet [ ] [ ] ) => {
108108 // dont' block
109- setImmediate ( ( ) => {
109+ setTimeout ( ( ) => {
110110 handler ( args , tetraplets ) ;
111- } ) ;
111+ } , 0 ) ;
112112
113113 return { } ;
114114 } ;
Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ export class FluenceClientImpl extends FluenceClientBase implements FluenceClien
138138 const executingParticlePromiseFns = this . fetchParticles . get ( fnName ) ;
139139 if ( executingParticlePromiseFns ) {
140140 // don't block
141- setImmediate ( ( ) => {
141+ setTimeout ( ( ) => {
142142 this . fetchParticles . delete ( fnName ) ;
143143 executingParticlePromiseFns . resolve ( args ) ;
144- } ) ;
144+ } , 0 ) ;
145145 }
146146
147147 return {
@@ -170,12 +170,12 @@ export class FluenceClientImpl extends FluenceClientBase implements FluenceClien
170170 }
171171
172172 // don't block
173- setImmediate ( ( ) => {
173+ setTimeout ( ( ) => {
174174 this . pushEvent ( serviceId , {
175175 type : fnName ,
176176 args : args ,
177177 } ) ;
178- } ) ;
178+ } , 0 ) ;
179179
180180 return {
181181 ret_code : 0 ,
You can’t perform that action at this time.
0 commit comments