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

@oclif/plugin-warn-if-update-available

Package Overview
Dependencies
Maintainers
2
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/plugin-warn-if-update-available - npm Package Compare versions

Comparing version 3.0.19 to 3.1.0

7

lib/hooks/init/check-update.js

@@ -1,2 +0,2 @@

import chalk from 'chalk';
import { Ansis } from 'ansis';
import makeDebug from 'debug';

@@ -7,2 +7,3 @@ import { spawn } from 'node:child_process';

import { fileURLToPath } from 'node:url';
const ansis = new Ansis();
async function readJSON(file) {

@@ -134,3 +135,5 @@ return JSON.parse(await readFile(file, 'utf8'));

this.warn(lodash.template(message)({
chalk,
ansis,
// chalk and ansis have the same api. Keeping chalk for backwards compatibility.
chalk: ansis,
config,

@@ -137,0 +140,0 @@ latest: newerVersion,

{
"commands": {},
"version": "3.0.19"
"version": "3.1.0"
}
{
"name": "@oclif/plugin-warn-if-update-available",
"description": "warns if there is a newer version of CLI released",
"version": "3.0.19",
"version": "3.1.0",
"author": "Salesforce",
"bugs": "https://github.com/oclif/plugin-warn-if-update-available/issues",
"dependencies": {
"@oclif/core": "^3.26.6",
"chalk": "^5.3.0",
"@oclif/core": "^4.0.0-beat.13",
"ansis": "^3.2.0",
"debug": "^4.1.0",

@@ -15,11 +15,12 @@ "http-call": "^5.2.2",

"devDependencies": {
"@commitlint/config-conventional": "^18",
"@commitlint/config-conventional": "^19",
"@oclif/prettier-config": "^0.2.1",
"@oclif/test": "^3.2.13",
"@types/chai": "^4.3.11",
"@types/debug": "^4.1.12",
"@types/lodash": "^4.17.4",
"@types/mocha": "^10.0.6",
"@types/node": "^18",
"@types/sinon": "^17.0.3",
"chai": "^4.4.0",
"commitlint": "^18",
"commitlint": "^19",
"eslint": "^8.57.0",

@@ -32,6 +33,6 @@ "eslint-config-oclif": "^5.2.0",

"mocha": "^10.4.0",
"oclif": "^4.10.6",
"oclif": "^4.11.1",
"prettier": "^3.2.5",
"shx": "^0.3.3",
"sinon": "^16.1.3",
"sinon": "^18.0.0",
"ts-node": "^10.9.2",

@@ -38,0 +39,0 @@ "typescript": "^5.4.5"

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