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

@cloudflare/cli-helpers

Package Overview
Dependencies
Maintainers
36
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/cli-helpers - npm Package Compare versions

Comparing version 2.1.15 to 2.1.16

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.1.16](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/cli-helpers@2.1.15...@cloudflare/cli-helpers@2.1.16) (2023-08-17)
**Note:** Version bump only for package @cloudflare/cli-helpers
## [2.1.15](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/cli-helpers@2.1.12...@cloudflare/cli-helpers@2.1.15) (2021-10-28)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@cloudflare/cli-helpers",
"description": "Helpers for cli's written in node",
"version": "2.1.15",
"version": "2.1.16",
"main": "src/index.js",

@@ -23,3 +23,3 @@ "author": "James Culveyhouse <jculveyhouse@cloudflare.com>",

},
"gitHead": "a1a7ca299c6676e5222e50aee57bc5beedb44882"
"gitHead": "b4920fe24d7d502d6bfb6f1c43de759f34b03d8b"
}

@@ -9,16 +9,13 @@ const chalk = require('chalk');

// Use to create a custom logger
const createLogger = ({
actionName,
labelColorer = identity,
msgColorer = identity,
action
}) => (msg, { cliName } = {}) => {
let logMessage = msg;
if (typeof msg === 'object') {
logMessage = msg.message || JSON.stringify(msg, null, 2);
}
const label = buildLabel(actionName, cliName);
console.log(`${labelColorer(label)} ${msgColorer(logMessage)}`);
action && action();
};
const createLogger =
({ actionName, labelColorer = identity, msgColorer = identity, action }) =>
(msg, { cliName } = {}) => {
let logMessage = msg;
if (typeof msg === 'object') {
logMessage = msg.message || JSON.stringify(msg, null, 2);
}
const label = buildLabel(actionName, cliName);
console.log(`${labelColorer(label)} ${msgColorer(logMessage)}`);
action && action();
};

@@ -25,0 +22,0 @@ // Use to display successful scenarios

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