Socket
Socket
Sign inDemoInstall

@antfu/ni

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antfu/ni - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

dist/chunk.2L5QMXIQ.js

10

dist/nci.js
"use strict";
var _chunkOL65XJENjs = require('./chunk.OL65XJEN.js');
require('./chunk.GEBZB6LS.js');
var _chunk2L5QMXIQjs = require('./chunk.2L5QMXIQ.js');
require('./chunk.M3AUZMHG.js');
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js');
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js');
// src/nci.ts
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, _, hasLock) => {
return _chunkOL65XJENjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock);
_chunkGVX3S7QZjs.run.call(void 0, async (agent, _, hasLock) => {
return _chunk2L5QMXIQjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock);
}, {autoInstall: true});
"use strict";
var _chunkOL65XJENjs = require('./chunk.OL65XJEN.js');
require('./chunk.GEBZB6LS.js');
var _chunk2L5QMXIQjs = require('./chunk.2L5QMXIQ.js');
require('./chunk.M3AUZMHG.js');
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js');
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js');
// src/ni.ts
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, args, hasLock) => {
return _chunkOL65XJENjs.parseNi.call(void 0, agent, args, hasLock);
_chunkGVX3S7QZjs.run.call(void 0, async (agent, args, hasLock) => {
return _chunk2L5QMXIQjs.parseNi.call(void 0, agent, args, hasLock);
});
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js');
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js');
// src/nr.ts
var _inquirer = require('inquirer'); var _inquirer2 = _interopRequireDefault(_inquirer);
var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);

@@ -13,3 +13,3 @@ // src/commands.ts

args.push("start");
return _chunk6QJ5NK4Cjs.getCommand.call(void 0, agent, "run", args);
return _chunkGVX3S7QZjs.getCommand.call(void 0, agent, "run", args);
}

@@ -35,15 +35,14 @@

// src/nr.ts
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, args) => {
_chunkGVX3S7QZjs.run.call(void 0, async (agent, args) => {
if (args.length === 0) {
const scripts = getPackageJSON().scripts || {};
const names = Object.keys(scripts);
const names = Object.entries(scripts);
if (!names.length)
return;
try {
const {fn} = await _inquirer2.default.prompt({
const {fn} = await _prompts2.default.call(void 0, {
name: "fn",
message: "script to run",
pageSize: 20,
type: "list",
choices: names
type: "select",
choices: names.map(([value, description]) => ({title: value, value, description}))
});

@@ -54,4 +53,3 @@ if (!fn)

} catch (e) {
console.error(e);
process.exit(1);
process.exit(0);
}

@@ -58,0 +56,0 @@ }

"use strict";
var _chunkGEBZB6LSjs = require('./chunk.GEBZB6LS.js');
var _chunkM3AUZMHGjs = require('./chunk.M3AUZMHG.js');
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js');
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js');

@@ -12,9 +12,9 @@ // src/commands.ts

if (args.includes("-i"))
return _chunk6QJ5NK4Cjs.getCommand.call(void 0, agent, "upgrade-interactive", _chunkGEBZB6LSjs.exclude.call(void 0, args, "-i"));
return _chunk6QJ5NK4Cjs.getCommand.call(void 0, agent, "upgrade", args);
return _chunkGVX3S7QZjs.getCommand.call(void 0, agent, "upgrade-interactive", _chunkM3AUZMHGjs.exclude.call(void 0, args, "-i"));
return _chunkGVX3S7QZjs.getCommand.call(void 0, agent, "upgrade", args);
}
// src/nu.ts
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, args) => {
_chunkGVX3S7QZjs.run.call(void 0, async (agent, args) => {
return parseNu(agent, args);
});
{
"name": "@antfu/ni",
"version": "0.4.1",
"version": "0.5.0",
"description": "Use the right package manager",

@@ -42,9 +42,9 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"ini": "^1.3.8",
"inquirer": "^7.3.3",
"prompts": "^2.4.0",
"terminal-link": "^2.1.1"
},
"devDependencies": {
"@types/prompts": "^2.0.9",
"@antfu/eslint-config-ts": "^0.4.3",
"@types/ini": "^1.3.30",
"@types/inquirer": "^7.3.1",
"@types/node": "^14.14.20",

@@ -51,0 +51,0 @@ "ava": "^3.15.0",

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