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

caravaggio

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caravaggio - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

bin/caravaggio

5

CHANGELOG.md
# Changelog
## 1.3.1
- Cli global program
- Documentation on master
## 1.3.0

@@ -4,0 +9,0 @@

4

config/default.js

@@ -78,3 +78,3 @@ /**

* Logger definition. Define how the application should log event
* level: The log level. One among: fatal, error, warn, info, debug
* level: The log level. One among: fatal, error, warn, info, debug, trace, silent
* The log will appear from your choosen level and upon, i.e.

@@ -84,2 +84,3 @@ * (error -> error, fatal)

* stream: Where to stream the log. Can be `stdout`, `stderr` or a file path
* pretty: Print a pretty out instead of the json one
*/

@@ -89,2 +90,3 @@ logger: {

stream: 'stdout',
pretty: false,
},

@@ -91,0 +93,0 @@

{
"name": "caravaggio",
"version": "1.3.0",
"version": "1.3.1",
"description": "A blazing fast image processor service",
"main": "index.js",
"bin": "bin/caravaggio",
"scripts": {
"start": "NODE_ENV=production node .",
"dev": "NODE_ENV=development micro-dev src/ -s | bunyan",
"dev": "NODE_ENV=development micro-dev src/ -s | pino",
"test": "npm run lint && npm run test-only -- --coverage --colors=false",

@@ -28,5 +29,4 @@ "test-only": "NODE_ENV=test ALLOW_CONFIG_MUTATIONS=true jest",

},
"homepage": "https://gitlab.com/ramiel/caravaggio#README",
"homepage": "https://gitlab.com/ramiel/caravaggio",
"dependencies": {
"bunyan": "^1.8.12",
"config": "^1.29.2",

@@ -39,3 +39,5 @@ "configuration": "^0.1.1",

"node-fetch": "^2.0.0-alpha.9",
"sharp": "^0.19.0"
"pino": "^4.10.4",
"sharp": "^0.19.0",
"yargs": "^11.0.0"
},

@@ -42,0 +44,0 @@ "devDependencies": {

const config = require('config');
const bunyan = require('bunyan');
const pino = require('pino');
const { level, stream } = config.get('logger');
const streams = ['stderr', 'stdout'].indexOf(stream.toLowerCase())
? [{
level,
stream: process[stream.toLowerCase()],
}]
: [{
level,
path: stream,
}];
const { level, stream, pretty } = config.get('logger');
const outStream = ['stderr', 'stdout'].indexOf(stream.toLowerCase())
? process[stream.toLowerCase()]
: process.stdout;
module.exports = bunyan.createLogger({
module.exports = pino({
name: 'caravaggio',
streams,
});
level,
prettyPrint: pretty,
}, outStream);

Sorry, the diff of this file is not supported yet

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