Comparing version 2.0.7 to 2.0.8
{ | ||
"name": "darcon", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Simple Messaging/Service Bus for node entities over NatsIO", | ||
@@ -25,2 +25,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@fastify/websocket": "^5.0.0", | ||
"assign.js": "^2.8.14", | ||
@@ -30,5 +31,3 @@ "clerobee": "^1.0.5", | ||
"fastify": "~3", | ||
"fastify-websocket": "~4", | ||
"isa.js": "^2.2.17", | ||
"mkdirp": "^1.0.4", | ||
"nats": "^2.6.1", | ||
@@ -40,4 +39,2 @@ "proback.js": "^2.1.16" | ||
"chai": "^4.3.6", | ||
"cote": "^1.0.3", | ||
"moleculer": "^0.14.21", | ||
"pino": "~7", | ||
@@ -44,0 +41,0 @@ "pino-pretty": "~7", |
@@ -100,4 +100,5 @@ const _ = require( 'isa.js' ) | ||
fastify.register(require('fastify-websocket'), { | ||
options: { path, maxPayload: options.maxPayload || 1048576 } | ||
console.log('????????????????', path) | ||
fastify.register(require('@fastify/websocket'), { | ||
options: { maxPayload: options.maxPayload || 1048576 } | ||
}) | ||
@@ -104,0 +105,0 @@ |
@@ -42,3 +42,2 @@ const _ = require('isa.js') | ||
if (fastifyConfig.routes) | ||
@@ -45,0 +44,0 @@ await fastifyConfig.routes( this.fastify ) |
@@ -75,4 +75,3 @@ let config = require('../config') | ||
socketClient = new WebSocket('ws://localhost:8080/DarconWS') | ||
socketClient = new WebSocket('ws://127.0.0.1:8080/DarconWS') | ||
socketClient.on('open', function open () { | ||
@@ -89,7 +88,7 @@ console.log('Connected to /DarconWS Socket') | ||
async function comm () { | ||
post( 'http://localhost:8080/DarconRPC', { division: DIVISION, entity: 'Marie', message: 'echo', params: [ 'Hello' ] } ).then( (res) => { | ||
post( 'http://127.0.0.1:8080/DarconRPC', { division: DIVISION, entity: 'Marie', message: 'echo', params: [ 'Hello' ] } ).then( (res) => { | ||
console.log( '********', res.response.statusCode, res.response.statusMessage, res.body ) | ||
} ) .catch( console.error ) | ||
post( 'http://localhost:8080/' + DIVISION + '/Marie/echo', { params: [ 'Hello' ] } ).then( (res) => { | ||
post( 'http://127.0.0.1:8080/' + DIVISION + '/Marie/echo', { params: [ 'Hello' ] } ).then( (res) => { | ||
console.log( '********', res.response.statusCode, res.response.statusMessage, res.body ) | ||
@@ -96,0 +95,0 @@ } ) .catch( console.error ) |
let fs = require('fs') | ||
let mkdirp = require('mkdirp') | ||
@@ -45,3 +44,3 @@ let path = require('path') | ||
if ( !fs.existsSync( self.options.folder ) ) | ||
mkdirp.sync( self.options.folder ) | ||
fs.mkdir( self.options.folder, { recursive: true } ) | ||
@@ -48,0 +47,0 @@ self.files = [] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
5
77521
29
1910
+ Added@fastify/websocket@^5.0.0
+ Added@fastify/websocket@5.0.1(transitive)
- Removedfastify-websocket@~4
- Removedmkdirp@^1.0.4
- Removedfastify-websocket@4.2.24.3.0(transitive)
- Removedmkdirp@1.0.4(transitive)