New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

package-manager-detector

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-manager-detector - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

2

dist/commands.d.ts

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

import { c as AgentCommands, A as Agent, C as Command, R as ResolvedCommand, b as AgentCommandValue } from './shared/package-manager-detector.ncFwAKgD.js';
import { c as AgentCommands, b as AgentCommandValue, R as ResolvedCommand, A as Agent, C as Command } from './shared/package-manager-detector.ncFwAKgD.js';

@@ -3,0 +3,0 @@ declare const COMMANDS: {

@@ -1,22 +0,18 @@

import { D as DetectOptions, d as DetectResult, a as AgentName } from './shared/package-manager-detector.ncFwAKgD.js';
import * as quansync_index from 'quansync/index';
import { d as DetectResult, D as DetectOptions, a as AgentName } from './shared/package-manager-detector.ncFwAKgD.js';
/**
* Detects the package manager used in the project.
* @param options {DetectOptions} The options to use when detecting the package manager.
* @returns {Promise<DetectResult | null>} The detected package manager or `null` if not found.
* Detects the package manager used in the running process.
*
* This method will check for `process.env.npm_config_user_agent`.
*/
declare function detect(options?: DetectOptions): Promise<DetectResult | null>;
declare function getUserAgent(): AgentName | null;
/**
* Detects the package manager used in the project.
* @param options {DetectOptions} The options to use when detecting the package manager.
* @returns {DetectResult | null>} The detected package manager or `null` if not found.
* @returns {Promise<DetectResult | null>} The detected package manager or `null` if not found.
*/
declare function detectSync(options?: DetectOptions): DetectResult | null;
/**
* Detects the package manager used in the running process.
*
* This method will check for `process.env.npm_config_user_agent`.
*/
declare function getUserAgent(): AgentName | null;
declare const detect: quansync_index.QuansyncFn<DetectResult | null, [options?: DetectOptions | undefined]>;
declare const detectSync: (options?: DetectOptions | undefined) => DetectResult | null;
export { detect, detectSync, getUserAgent };

@@ -5,1 +5,2 @@ export { COMMANDS, constructCommand, resolveCommand } from './commands.js';

export { A as Agent, b as AgentCommandValue, c as AgentCommands, a as AgentName, C as Command, D as DetectOptions, d as DetectResult, R as ResolvedCommand } from './shared/package-manager-detector.ncFwAKgD.js';
import 'quansync/index';
{
"name": "package-manager-detector",
"type": "module",
"version": "0.2.9",
"version": "0.2.10",
"description": "Package manager detector",

@@ -54,12 +54,16 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

],
"dependencies": {
"quansync": "^0.2.2"
},
"devDependencies": {
"@antfu/eslint-config": "^4.1.0",
"@antfu/eslint-config": "^4.3.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.12.0",
"bumpp": "^10.0.1",
"eslint": "^9.19.0",
"@types/node": "^22.13.5",
"bumpp": "^10.0.3",
"eslint": "^9.21.0",
"fs-extra": "^11.3.0",
"typescript": "^5.7.3",
"unbuild": "^3.3.1",
"vitest": "^3.0.4"
"unbuild": "^3.5.0",
"unplugin-quansync": "^0.3.2",
"vitest": "^3.0.7"
},

@@ -66,0 +70,0 @@ "scripts": {

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

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

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