Socket
Socket
Sign inDemoInstall

@antfu/ni

Package Overview
Dependencies
0
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.9 to 0.6.0

bin/nx.js

8

dist/index.d.ts

@@ -10,2 +10,3 @@ declare const AGENTS: {

'upgrade-interactive': null;
execute: string;
};

@@ -20,2 +21,3 @@ yarn: {

'upgrade-interactive': string;
execute: string;
};

@@ -30,2 +32,3 @@ pnpm: {

'upgrade-interactive': string;
execute: string;
};

@@ -36,6 +39,7 @@ };

declare function getCommand(agent: Agent, commnad: Command, args?: string[]): string;
declare function getCommand(agent: Agent, command: Command, args?: string[]): string;
declare function parseNi(agent: Agent, args: string[], hasLock?: boolean): string;
declare function parseNr(agent: Agent, args: string[]): string;
declare function parseNu(agent: Agent, args: string[]): string;
declare function parseNx(agent: Agent, args: string[]): string;

@@ -63,2 +67,2 @@ interface Config {

export { DetectOptions, Runner, cmdExists, detect, exclude, getCommand, getConfig, getDefaultAgent, getGlobalAgent, parseNi, parseNr, parseNu, remove, run, runCli };
export { DetectOptions, Runner, cmdExists, detect, exclude, getCommand, getConfig, getDefaultAgent, getGlobalAgent, parseNi, parseNr, parseNu, parseNx, remove, run, runCli };

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

var _chunkRYIYZYFVjs = require('./chunk-RYIYZYFV.js');
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js');

@@ -31,2 +31,4 @@

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

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

var _chunkRYIYZYFVjs = require('./chunk-RYIYZYFV.js');
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js');
// src/nr.ts
var import_prompts = _chunkRYIYZYFVjs.__toModule.call(void 0, _chunkRYIYZYFVjs.require_prompts.call(void 0, ));
var import_prompts = _chunkNGSISS2Ajs.__toModule.call(void 0, _chunkNGSISS2Ajs.require_prompts.call(void 0, ));

@@ -30,3 +30,3 @@ // src/fs.ts

// src/nr.ts
_chunkRYIYZYFVjs.runCli.call(void 0, async (agent, args) => {
_chunkNGSISS2Ajs.runCli.call(void 0, async (agent, args) => {
if (args.length === 0) {

@@ -51,3 +51,3 @@ const scripts = getPackageJSON().scripts || {};

}
return _chunkRYIYZYFVjs.parseNr.call(void 0, agent, args);
return _chunkNGSISS2Ajs.parseNr.call(void 0, agent, args);
});
"use strict";
var _chunkRYIYZYFVjs = require('./chunk-RYIYZYFV.js');
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js');
// src/nu.ts
_chunkRYIYZYFVjs.runCli.call(void 0, _chunkRYIYZYFVjs.parseNu);
_chunkNGSISS2Ajs.runCli.call(void 0, _chunkNGSISS2Ajs.parseNu);
{
"name": "@antfu/ni",
"version": "0.5.9",
"version": "0.6.0",
"description": "Use the right package manager",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/antfu/ni.git"
},
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"files": [
"dist",
"bin"
],
"main": "dist/index.js",

@@ -14,3 +22,4 @@ "module": "dist/index.mjs",

"nr": "bin/nr.js",
"nu": "bin/nu.js"
"nu": "bin/nu.js",
"nx": "bin/nx.js"
},

@@ -21,10 +30,2 @@ "bugs": {

"homepage": "https://github.com/antfu/ni#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/antfu/ni.git"
},
"files": [
"dist",
"bin"
],
"scripts": {

@@ -37,2 +38,3 @@ "prepublishOnly": "rimraf dist && npm run build",

"nu": "esno src/nu.ts",
"nx": "esno src/nx.ts",
"dev": "esno src/ni.ts",

@@ -39,0 +41,0 @@ "build": "rimraf dist && tsup src/ni.ts src/nci.ts src/nr.ts src/nu.ts src/index.ts --format cjs,esm --dts",

@@ -85,2 +85,14 @@ # ni

## `nx` - execute
```bash
nu jest
# npx jest
# yarn dls jest
# pnpx jest
```
<br>
### `nu` - upgrade

@@ -87,0 +99,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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc