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

package-manager-manager

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-manager-manager - npm Package Compare versions

Comparing version 0.1.0-97c9c9f to 0.1.0-a59865b

2

package.json
{
"name": "package-manager-manager",
"version": "0.1.0-97c9c9f",
"version": "0.1.0-a59865b",
"description": "Utilities for managing package managers.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,9 +0,10 @@

import e from "shellac";
function s(o) {
import s from "shellac";
function u(e) {
return async (...[n]) => {
var t, o;
try {
const t = JSON.parse(
(await e`$ ${o} list --depth=0 --json`).stdout
), r = (o === "npm" ? t : t[0]).dependencies[n];
return r ? { name: n, version: r.version } : null;
const r = JSON.parse(
(await s`$ ${e} list --depth=0 --json`).stdout
), c = e === "npm" ? r : r[0], i = ((t = c.dependencies) == null ? void 0 : t[n]) ?? ((o = c.devDependencies) == null ? void 0 : o[n]);
return i ? { name: n, version: i.version } : null;
} catch {

@@ -15,4 +16,4 @@ throw new Error(`An error occurred while gathering the package info of "${n}"`);

export {
s as getNpmOrPnpmGetPackageInfoFunction
u as getNpmOrPnpmGetPackageInfoFunction
};
//# sourceMappingURL=shared.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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