File tree 3 files changed +8
-8
lines changed 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @fluencelabs/fluence" ,
3
- "version" : " 0.9.3 " ,
3
+ "version" : " 0.9.9 " ,
4
4
"description" : " JS SDK for the Fluence network" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"typings" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import { FluenceClient } from './FluenceClient' ;
2
2
import { SecurityTetraplet } from './internal/commonTypes' ;
3
- import { genUUID , Particle } from './internal/particle' ;
3
+ import { Particle } from './internal/particle' ;
4
4
import Multiaddr from 'multiaddr' ;
5
5
import PeerId , { isPeerId } from 'peer-id' ;
6
6
import { generatePeerId , seedToPeerId } from './internal/peerIdUtils' ;
@@ -106,9 +106,9 @@ export const subscribeToEvent = (
106
106
) : Function => {
107
107
const realHandler = ( args : any [ ] , tetraplets : SecurityTetraplet [ ] [ ] ) => {
108
108
// dont' block
109
- setImmediate ( ( ) => {
109
+ setTimeout ( ( ) => {
110
110
handler ( args , tetraplets ) ;
111
- } ) ;
111
+ } , 0 ) ;
112
112
113
113
return { } ;
114
114
} ;
Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ export class FluenceClientImpl extends FluenceClientBase implements FluenceClien
138
138
const executingParticlePromiseFns = this . fetchParticles . get ( fnName ) ;
139
139
if ( executingParticlePromiseFns ) {
140
140
// don't block
141
- setImmediate ( ( ) => {
141
+ setTimeout ( ( ) => {
142
142
this . fetchParticles . delete ( fnName ) ;
143
143
executingParticlePromiseFns . resolve ( args ) ;
144
- } ) ;
144
+ } , 0 ) ;
145
145
}
146
146
147
147
return {
@@ -170,12 +170,12 @@ export class FluenceClientImpl extends FluenceClientBase implements FluenceClien
170
170
}
171
171
172
172
// don't block
173
- setImmediate ( ( ) => {
173
+ setTimeout ( ( ) => {
174
174
this . pushEvent ( serviceId , {
175
175
type : fnName ,
176
176
args : args ,
177
177
} ) ;
178
- } ) ;
178
+ } , 0 ) ;
179
179
180
180
return {
181
181
ret_code : 0 ,
You can’t perform that action at this time.
0 commit comments