🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

x-easy

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-easy - npm Package Compare versions

Comparing version

to
2.1.8

8

index.js

@@ -49,4 +49,12 @@ const cluster = require('cluster')

let json = path.join(pathData, moduleName + '.json')
let pathJs = path.join(pathData, moduleName, 'index.js')
let pathJson = path.join(pathData, moduleName, 'index.json')
let stats = null
switch (true) {
case fs.existsSync(pathJs):
stats = fs.lstatSync(js)
break
case fs.existsSync(pathJson):
stats = fs.lstatSync(json)
break
case fs.existsSync(pure):

@@ -53,0 +61,0 @@ stats = fs.lstatSync(pure)

2

package.json
{
"name": "x-easy",
"version": "2.1.7",
"version": "2.1.8",
"description": "Make simple and modular, building a web application with express.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -27,2 +27,3 @@ # X-Easy

// optional, require (secure: true) to work
disableSession: false // default
keys: {

@@ -34,10 +35,12 @@ key: './keyFile.key', // or './keyFile.pem'

})
// loadModule can load <folder>/index.js, <folder>/index.json,
// <file>.js and <file>.json
// file to load data
.loadModule('./data') // json file
.loadModule('data') // json file
// file to default settings
.loadModule('./config') // js file
.loadModule('config') // js file
// file for route settings
.loadModule('./routes') // js file
.loadModule('routes') // js file
// file for websocket settings
.loadModule('./websocket') // js file
.loadModule('websocket') // js file
// method for creating channel between processes

@@ -44,0 +47,0 @@ .joinProcessListener('chat')

Sorry, the diff of this file is not supported yet