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.3.2 to 0.3.3

4

dist/index.d.ts

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

import * as execa from 'execa';
import * as _jsdevtools_ez_spawn from '@jsdevtools/ez-spawn';

@@ -17,4 +17,4 @@ type PackageManager = 'pnpm' | 'yarn' | 'npm' | 'bun';

}
declare function installPackage(names: string | string[], options?: InstallPackageOptions): Promise<execa.ExecaReturnValue<string>>;
declare function installPackage(names: string | string[], options?: InstallPackageOptions): Promise<_jsdevtools_ez_spawn.Process<string>>;
export { type Agent, type InstallPackageOptions, type PackageManager, detectPackageManager, installPackage };

@@ -308,3 +308,3 @@ var __defProp = Object.defineProperty;

import { resolve } from "path";
import { execa } from "execa";
import { async as ezspawn } from "@jsdevtools/ez-spawn";
async function installPackage(names, options = {}) {

@@ -324,3 +324,3 @@ const detectedAgent = options.packageManager || await detectPackageManager(options.cwd) || "npm";

args.unshift("-w");
return execa(
return ezspawn(
agent,

@@ -327,0 +327,0 @@ [

{
"name": "@antfu/install-pkg",
"type": "module",
"version": "0.3.2",
"packageManager": "pnpm@8.15.5",
"version": "0.3.3",
"description": "Install package programmatically.",

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

"dependencies": {
"execa": "^8.0.1"
"@jsdevtools/ez-spawn": "^3.0.4"
},
"devDependencies": {
"@antfu/eslint-config": "^2.11.4",
"@antfu/eslint-config": "^2.16.0",
"@antfu/ni": "^0.21.12",
"@types/node": "^20.11.30",
"@types/node": "^20.12.7",
"bumpp": "^9.4.0",
"eslint": "^8.57.0",
"eslint": "^9.1.1",
"esno": "^4.7.0",

@@ -52,3 +51,3 @@ "find-up": "^7.0.0",

"tsup": "^8.0.2",
"typescript": "^5.4.3"
"typescript": "^5.4.5"
},

@@ -55,0 +54,0 @@ "scripts": {

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