Socket
Socket
Sign inDemoInstall

@antfu/install-pkg

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antfu/install-pkg - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

6

dist/index.js
// src/detect.ts
import process from "process";
import { detect } from "package-manager-detector";
import { detect } from "package-manager-detector/detect";
async function detectPackageManager(cwd = process.cwd()) {

@@ -9,2 +9,3 @@ const result = await detect({

console.warn("[@antfu/install-pkg] Unknown packageManager:", packageManager);
return void 0;
}

@@ -46,3 +47,4 @@ });

cwd: options.cwd
}
},
throwOnError: true
}

@@ -49,0 +51,0 @@ );

{
"name": "@antfu/install-pkg",
"type": "module",
"version": "0.4.0",
"version": "0.4.1",
"description": "Install package programmatically.",

@@ -38,11 +38,11 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"dependencies": {
"package-manager-detector": "^0.1.1",
"tinyexec": "^0.2.0"
"package-manager-detector": "^0.2.0",
"tinyexec": "^0.3.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.26.0",
"@antfu/eslint-config": "^2.27.2",
"@antfu/ni": "^0.22.4",
"@types/node": "^22.4.1",
"bumpp": "^9.5.1",
"eslint": "^9.9.0",
"@types/node": "^22.5.0",
"bumpp": "^9.5.2",
"eslint": "^9.9.1",
"esno": "^4.7.0",

@@ -49,0 +49,0 @@ "publint": "^0.2.10",

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