Socket
Socket
Sign inDemoInstall

@oclif/plugin-plugins

Package Overview
Dependencies
Maintainers
3
Versions
275
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/plugin-plugins - npm Package Compare versions

Comparing version 5.3.9 to 5.4.0

6

lib/commands/plugins/install.js
/* eslint-disable no-await-in-loop */
import { Args, Command, Errors, Flags, ux } from '@oclif/core';
import { Args, Command, Errors, Flags, Plugin, ux } from '@oclif/core';
import { bold, cyan } from 'ansis';

@@ -168,2 +168,6 @@ import validate from 'validate-npm-package-name';

}
const pluginInstance = new Plugin(plugin);
await pluginInstance.load();
this.config.plugins.set(pluginInstance.name, pluginInstance);
await this.config.runHook('plugins:postinstall', {});
ux.action.stop(`installed v${plugin.version}`);

@@ -170,0 +174,0 @@ }

@@ -37,2 +37,3 @@ /* eslint-disable no-await-in-loop */

});
const pluginNameToDelete = [];
if (argv.length === 0)

@@ -51,5 +52,6 @@ argv.push('.');

const { name } = unfriendly;
const displayName = friendly === '.' ? name : friendly ?? name;
const displayName = friendly === '.' ? name : (friendly ?? name);
ux.action.start(`${this.config.name}: Uninstalling ${displayName}`);
await plugins.uninstall(name);
pluginNameToDelete.push(name);
}

@@ -62,3 +64,7 @@ catch (error) {

}
for (const p of pluginNameToDelete) {
this.config.plugins.delete(p);
}
await this.config.runHook('plugins:postuninstall', {});
}
}

2

oclif.manifest.json

@@ -395,3 +395,3 @@ {

},
"version": "5.3.9"
"version": "5.4.0"
}
{
"name": "@oclif/plugin-plugins",
"description": "plugins plugin for oclif",
"version": "5.3.9",
"version": "5.4.0",
"author": "Salesforce",

@@ -25,3 +25,3 @@ "bugs": "https://github.com/oclif/plugin-plugins/issues",

"@oclif/test": "^4.0.4",
"@types/chai": "^4.3.11",
"@types/chai": "^4.3.16",
"@types/debug": "^4.1.12",

@@ -35,3 +35,3 @@ "@types/mocha": "^10.0.7",

"@types/which": "^3.0.4",
"chai": "^4.4.1",
"chai": "^4.5.0",
"commitlint": "^19",

@@ -42,6 +42,6 @@ "eslint": "^8.56.0",

"eslint-config-prettier": "^9.1.0",
"husky": "^9.1.1",
"husky": "^9.1.3",
"lint-staged": "^15.2.7",
"mocha": "^10.6.0",
"oclif": "^4.14.6",
"oclif": "^4.14.9",
"prettier": "^3.3.3",

@@ -48,0 +48,0 @@ "shx": "^0.3.4",

@@ -121,3 +121,3 @@ # @oclif/plugin-plugins

_See code: [src/commands/plugins/index.ts](https://github.com/oclif/plugin-plugins/blob/v5.3.9/src/commands/plugins/index.ts)_
_See code: [src/commands/plugins/index.ts](https://github.com/oclif/plugin-plugins/blob/v5.4.0/src/commands/plugins/index.ts)_

@@ -196,3 +196,3 @@ ## `mycli plugins add PLUGIN`

_See code: [src/commands/plugins/inspect.ts](https://github.com/oclif/plugin-plugins/blob/v5.3.9/src/commands/plugins/inspect.ts)_
_See code: [src/commands/plugins/inspect.ts](https://github.com/oclif/plugin-plugins/blob/v5.4.0/src/commands/plugins/inspect.ts)_

@@ -246,3 +246,3 @@ ## `mycli plugins install PLUGIN`

_See code: [src/commands/plugins/install.ts](https://github.com/oclif/plugin-plugins/blob/v5.3.9/src/commands/plugins/install.ts)_
_See code: [src/commands/plugins/install.ts](https://github.com/oclif/plugin-plugins/blob/v5.4.0/src/commands/plugins/install.ts)_

@@ -277,3 +277,3 @@ ## `mycli plugins link PATH`

_See code: [src/commands/plugins/link.ts](https://github.com/oclif/plugin-plugins/blob/v5.3.9/src/commands/plugins/link.ts)_
_See code: [src/commands/plugins/link.ts](https://github.com/oclif/plugin-plugins/blob/v5.4.0/src/commands/plugins/link.ts)_

@@ -319,3 +319,3 @@ ## `mycli plugins remove [PLUGIN]`

_See code: [src/commands/plugins/reset.ts](https://github.com/oclif/plugin-plugins/blob/v5.3.9/src/commands/plugins/reset.ts)_
_See code: [src/commands/plugins/reset.ts](https://github.com/oclif/plugin-plugins/blob/v5.4.0/src/commands/plugins/reset.ts)_

@@ -348,3 +348,3 @@ ## `mycli plugins uninstall [PLUGIN]`

_See code: [src/commands/plugins/uninstall.ts](https://github.com/oclif/plugin-plugins/blob/v5.3.9/src/commands/plugins/uninstall.ts)_
_See code: [src/commands/plugins/uninstall.ts](https://github.com/oclif/plugin-plugins/blob/v5.4.0/src/commands/plugins/uninstall.ts)_

@@ -393,3 +393,3 @@ ## `mycli plugins unlink [PLUGIN]`

_See code: [src/commands/plugins/update.ts](https://github.com/oclif/plugin-plugins/blob/v5.3.9/src/commands/plugins/update.ts)_
_See code: [src/commands/plugins/update.ts](https://github.com/oclif/plugin-plugins/blob/v5.4.0/src/commands/plugins/update.ts)_
<!-- commandsstop -->

@@ -396,0 +396,0 @@

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