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

@siteone/builder-logger

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@siteone/builder-logger - npm Package Compare versions

Comparing version 0.1.1 to 0.1.4

14

index.js

@@ -6,15 +6,17 @@ const chalk = require('chalk')

const RGX = /(@bldr\/(.*))($|\s)/g // ~> @siteone/builder-foo-bar
const IN_QUOTES = /\"([^"]+)\"/g
function print(color, msg) {
console.log(
chalk[color](BLDR),
msg.includes('\n') ? msg.replace(/(\r?\n)/g, `$1${SPACER}`) : msg
)
let formatted = msg.includes('\n')
? msg.replace(/(\r?\n)/g, `$1${SPACER}`)
: msg
formatted = formatted.replace(IN_QUOTES, chalk.whiteBright.bold('$1'))
console.log(chalk[color](BLDR), formatted)
}
module.exports = msg => {
module.exports = (msg) => {
module.exports.info(
msg.includes('@bldr')
? msg.replace(RGX, chalk.magenta.underline('$1'))
: msg
: msg,
)

@@ -21,0 +23,0 @@ }

{
"name": "@siteone/builder-logger",
"description": "Logging utility package",
"version": "0.1.1",
"version": "0.1.4",
"author": "Viktor Bezdek <viktor.bezdek@siteone.cz>",
"dependencies": {
"chalk": "^2.4.1"
"chalk": "^2.4.2"
},
"gitHead": "c03fc77077a14b6c56a541535460971d077b762f",
"gitHead": "917b8a9de3ab315f655711eb64e6ee688528b890",
"license": "MIT",

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

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