You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@antfu/ni

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.0 to 0.13.0

dist/chunk-3DVGNU5H.js

18

dist/index.d.ts

@@ -26,2 +26,14 @@ declare const AGENTS: {

};
'yarn@berry': {
run: string;
install: string;
frozen: string;
global: string;
add: string;
upgrade: string;
'upgrade-interactive': string;
execute: string;
uninstall: string;
global_uninstall: string;
};
pnpm: {

@@ -47,3 +59,3 @@ run: (args: string[]) => string;

}
declare function detect({ autoInstall, cwd }: DetectOptions): Promise<"npm" | "pnpm" | "yarn" | null>;
declare function detect({ autoInstall, cwd }: DetectOptions): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | null>;

@@ -70,4 +82,4 @@ interface RunnerContext {

declare function getConfig(): Promise<Config>;
declare function getDefaultAgent(): Promise<"npm" | "pnpm" | "yarn" | "prompt">;
declare function getGlobalAgent(): Promise<"npm" | "pnpm" | "yarn">;
declare function getDefaultAgent(): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | "prompt">;
declare function getGlobalAgent(): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry">;

@@ -74,0 +86,0 @@ declare function remove<T>(arr: T[], v: T): T[];

4

dist/index.js

@@ -18,3 +18,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkGM2VR4AOjs = require('./chunk-GM2VR4AO.js');
var _chunk3DVGNU5Hjs = require('./chunk-3DVGNU5H.js');

@@ -37,2 +37,2 @@

exports.cmdExists = _chunkGM2VR4AOjs.cmdExists; exports.detect = _chunkGM2VR4AOjs.detect; exports.exclude = _chunkGM2VR4AOjs.exclude; exports.getCommand = _chunkGM2VR4AOjs.getCommand; exports.getConfig = _chunkGM2VR4AOjs.getConfig; exports.getDefaultAgent = _chunkGM2VR4AOjs.getDefaultAgent; exports.getGlobalAgent = _chunkGM2VR4AOjs.getGlobalAgent; exports.getVoltaPrefix = _chunkGM2VR4AOjs.getVoltaPrefix; exports.parseNi = _chunkGM2VR4AOjs.parseNi; exports.parseNr = _chunkGM2VR4AOjs.parseNr; exports.parseNrm = _chunkGM2VR4AOjs.parseNrm; exports.parseNu = _chunkGM2VR4AOjs.parseNu; exports.parseNx = _chunkGM2VR4AOjs.parseNx; exports.remove = _chunkGM2VR4AOjs.remove; exports.run = _chunkGM2VR4AOjs.run; exports.runCli = _chunkGM2VR4AOjs.runCli;
exports.cmdExists = _chunk3DVGNU5Hjs.cmdExists; exports.detect = _chunk3DVGNU5Hjs.detect; exports.exclude = _chunk3DVGNU5Hjs.exclude; exports.getCommand = _chunk3DVGNU5Hjs.getCommand; exports.getConfig = _chunk3DVGNU5Hjs.getConfig; exports.getDefaultAgent = _chunk3DVGNU5Hjs.getDefaultAgent; exports.getGlobalAgent = _chunk3DVGNU5Hjs.getGlobalAgent; exports.getVoltaPrefix = _chunk3DVGNU5Hjs.getVoltaPrefix; exports.parseNi = _chunk3DVGNU5Hjs.parseNi; exports.parseNr = _chunk3DVGNU5Hjs.parseNr; exports.parseNrm = _chunk3DVGNU5Hjs.parseNrm; exports.parseNu = _chunk3DVGNU5Hjs.parseNu; exports.parseNx = _chunk3DVGNU5Hjs.parseNx; exports.remove = _chunk3DVGNU5Hjs.remove; exports.run = _chunk3DVGNU5Hjs.run; exports.runCli = _chunk3DVGNU5Hjs.runCli;
"use strict";
var _chunkGM2VR4AOjs = require('./chunk-GM2VR4AO.js');
var _chunk3DVGNU5Hjs = require('./chunk-3DVGNU5H.js');
// src/nci.ts
_chunkGM2VR4AOjs.runCli.call(void 0, (agent, _, hasLock) => _chunkGM2VR4AOjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock), { autoInstall: true });
_chunk3DVGNU5Hjs.runCli.call(void 0, (agent, _, hasLock) => _chunk3DVGNU5Hjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock), { autoInstall: true });
"use strict";
var _chunkGM2VR4AOjs = require('./chunk-GM2VR4AO.js');
var _chunk3DVGNU5Hjs = require('./chunk-3DVGNU5H.js');
// src/ni.ts
_chunkGM2VR4AOjs.runCli.call(void 0, _chunkGM2VR4AOjs.parseNi);
_chunk3DVGNU5Hjs.runCli.call(void 0, _chunk3DVGNU5Hjs.parseNi);

@@ -6,6 +6,6 @@ "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _chunkGM2VR4AOjs = require('./chunk-GM2VR4AO.js');
var _chunk3DVGNU5Hjs = require('./chunk-3DVGNU5H.js');
// src/nr.ts
var import_prompts = _chunkGM2VR4AOjs.__toModule.call(void 0, _chunkGM2VR4AOjs.require_prompts.call(void 0, ));
var import_prompts = _chunk3DVGNU5Hjs.__toModule.call(void 0, _chunk3DVGNU5Hjs.require_prompts.call(void 0, ));

@@ -50,3 +50,3 @@ // src/storage.ts

// src/nr.ts
_chunkGM2VR4AOjs.runCli.call(void 0, async (agent, args, ctx) => {
_chunk3DVGNU5Hjs.runCli.call(void 0, async (agent, args, ctx) => {
const storage2 = await load();

@@ -95,3 +95,3 @@ if (args[0] === "-") {

}
return _chunkGM2VR4AOjs.parseNr.call(void 0, agent, args);
return _chunk3DVGNU5Hjs.parseNr.call(void 0, agent, args);
});
"use strict";
var _chunkGM2VR4AOjs = require('./chunk-GM2VR4AO.js');
var _chunk3DVGNU5Hjs = require('./chunk-3DVGNU5H.js');
// src/nu.ts
_chunkGM2VR4AOjs.runCli.call(void 0, _chunkGM2VR4AOjs.parseNu);
_chunk3DVGNU5Hjs.runCli.call(void 0, _chunk3DVGNU5Hjs.parseNu);
"use strict";
var _chunkGM2VR4AOjs = require('./chunk-GM2VR4AO.js');
var _chunk3DVGNU5Hjs = require('./chunk-3DVGNU5H.js');
// src/nx.ts
_chunkGM2VR4AOjs.runCli.call(void 0, _chunkGM2VR4AOjs.parseNx);
_chunk3DVGNU5Hjs.runCli.call(void 0, _chunk3DVGNU5Hjs.parseNx);
{
"name": "@antfu/ni",
"version": "0.12.0",
"version": "0.13.0",
"description": "Use the right package manager",

@@ -43,3 +43,3 @@ "license": "MIT",

"lint:fix": "npm run lint -- --fix",
"test": "c8 ava"
"test": "vitest"
},

@@ -52,7 +52,3 @@ "devDependencies": {

"@types/which": "^2.0.1",
"ava": "^3.15.0",
"c8": "^7.8.0",
"esbuild-register": "^3.0.0",
"eslint": "^7.32.0",
"esm": "^3.2.25",
"esno": "^0.9.1",

@@ -67,2 +63,3 @@ "execa": "^5.1.1",

"typescript": "^4.4.2",
"vitest": "^0.3.5",
"which": "^2.0.2"

@@ -72,12 +69,3 @@ },

"extends": "@antfu/eslint-config-ts"
},
"ava": {
"extensions": [
"ts"
],
"require": [
"esm",
"esbuild-register"
]
}
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc