New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@midgar/midgar

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@midgar/midgar - npm Package Compare versions

Comparing version 1.0.0-aplha.3.10 to 1.0.0-aplha.3.11

16

package.json
{
"name": "@midgar/midgar",
"version": "1.0.0-aplha.3.10",
"version": "1.0.0-aplha.3.11",
"description": "node js framework",

@@ -29,14 +29,14 @@ "main": "./src/index.js",

"dependencies": {
"dotenv": "^8.2.0",
"emittery": "^0.8.1",
"glob": "^7.1.6",
"dotenv": "^10.0.0",
"emittery": "^0.9.2",
"glob": "^7.1.7",
"lodash.merge": "^4.6.2",
"winston": "^3.3.3",
"winston-daily-rotate-file": "^4.5.0"
"winston-daily-rotate-file": "^4.5.5"
},
"devDependencies": {
"ink-docstrap": "^1.3.2",
"jest": "^26.6.3",
"jest-junit": "^12.0.0",
"jsdoc": "3.6.6",
"jest": "^27.0.4",
"jest-junit": "^12.1.0",
"jsdoc": "3.6.7",
"rimraf": "^3.0.2",

@@ -43,0 +43,0 @@ "uid-safe": "^2.1.5"

@@ -13,5 +13,5 @@ const Emittery = require('emittery')

*/
class App extends Emittery {
class App {
constructor() {
super()
this.emittery = new Emittery

@@ -30,4 +30,12 @@ /**

/**
* Exit flag
* @type {boolean}
*/
this._exit = false
/**
* Exit logger flag
* @type {boolean}
*/
this._hasExitLogger = false

@@ -52,2 +60,18 @@

/**
* Listen an event
* @param {...any} args
*/
on(...args) {
this.emittery.on(...args)
}
/**
* Emit an event
* @param {...any} args
*/
emit(...args) {
this.emittery.emit(...args)
}
/**
* init App

@@ -209,3 +233,3 @@ *

await this.stop()
} catch (e){
} catch (e) {
this.error(e)

@@ -276,2 +300,20 @@ }

/**
* Log a message
*
* @param {string} level Log level
* @param {...any} args Things to log
*/
log(level, ...args) {
if (this.logger) {
try {
return this.logger[level](...args).catch((e) => console.log(e))
} catch (error) {
console.error(error)
}
} else {
console.log(...args)
}
}
/**
* Log an error message

@@ -281,3 +323,3 @@ * @param {...any} args

error(...args) {
return this.logger.error(...args)
return this.log('error', ...args)
}

@@ -290,3 +332,3 @@

warn(...args) {
return this.logger.warn(...args)
return this.log('warn', ...args)
}

@@ -299,3 +341,3 @@

info(...args) {
return this.logger.info(...args)
return this.log('info', ...args)
}

@@ -308,3 +350,3 @@

verbose(...args) {
return this.logger.verbose(...args)
return this.log('verbose', ...args)
}

@@ -317,3 +359,3 @@

debug(...args) {
return this.logger.debug(...args)
return this.log('debug', ...args)
}

@@ -326,3 +368,3 @@

silly(...args) {
return this.logger.silly(...args)
return this.log('silly', ...args)
}

@@ -329,0 +371,0 @@ }

Sorry, the diff of this file is not supported yet

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