Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

darcon

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

darcon - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

7

package.json
{
"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 = []

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