@pioneer-platform/pioneer-events
Advanced tools
Comparing version 7.0.5 to 7.0.6
@@ -106,3 +106,3 @@ "use strict"; | ||
SOCKET.on('connect', function () { | ||
log.info(tag, 'Connected!'); | ||
log.debug(tag, 'Connected!'); | ||
SOCKET.emit('join', { username: config.username, queryKey: config.queryKey }); | ||
@@ -124,2 +124,5 @@ }); | ||
} | ||
else { | ||
//emit everything | ||
} | ||
//TODO blocks | ||
@@ -129,2 +132,6 @@ //TODO payments | ||
}); | ||
SOCKET.on('invocation', function (message) { | ||
log.info('invocation: ', message); | ||
emitter.emit('message', message); | ||
}); | ||
return [2 /*return*/, emitter]; | ||
@@ -131,0 +138,0 @@ } |
{ | ||
"name": "@pioneer-platform/pioneer-events", | ||
"version": "7.0.5", | ||
"version": "7.0.6", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/main.d.ts", |
@@ -57,5 +57,6 @@ /* | ||
SOCKET = io.connect(URL_PIONEER_WS, {reconnect: true, rejectUnauthorized: false}); | ||
//connect | ||
SOCKET.on('connect', function () { | ||
log.info(tag,'Connected!'); | ||
log.debug(tag,'Connected!'); | ||
SOCKET.emit('join',{username:config.username,queryKey:config.queryKey}) | ||
@@ -80,2 +81,4 @@ }); | ||
//else add to approve queue | ||
} else { | ||
//emit everything | ||
} | ||
@@ -93,2 +96,8 @@ | ||
SOCKET.on('invocation', function (message:any) { | ||
log.info('invocation: ',message); | ||
emitter.emit('message',message) | ||
}); | ||
return emitter | ||
@@ -95,0 +104,0 @@ } catch (e) { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
11601
6
290
10