@antfu/ni
Advanced tools
Comparing version 0.5.7 to 0.5.8
@@ -15,3 +15,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkJDBAN7ALjs = require('./chunk-JDBAN7AL.js'); | ||
var _chunkRSW6MLYIjs = require('./chunk-RSW6MLYI.js'); | ||
@@ -31,2 +31,2 @@ | ||
exports.cmdExists = _chunkJDBAN7ALjs.cmdExists; exports.detect = _chunkJDBAN7ALjs.detect; exports.exclude = _chunkJDBAN7ALjs.exclude; exports.getCommand = _chunkJDBAN7ALjs.getCommand; exports.getConfig = _chunkJDBAN7ALjs.getConfig; exports.getDefaultAgent = _chunkJDBAN7ALjs.getDefaultAgent; exports.getGlobalAgent = _chunkJDBAN7ALjs.getGlobalAgent; exports.parseNi = _chunkJDBAN7ALjs.parseNi; exports.parseNr = _chunkJDBAN7ALjs.parseNr; exports.parseNu = _chunkJDBAN7ALjs.parseNu; exports.remove = _chunkJDBAN7ALjs.remove; exports.run = _chunkJDBAN7ALjs.run; exports.runCli = _chunkJDBAN7ALjs.runCli; | ||
exports.cmdExists = _chunkRSW6MLYIjs.cmdExists; exports.detect = _chunkRSW6MLYIjs.detect; exports.exclude = _chunkRSW6MLYIjs.exclude; exports.getCommand = _chunkRSW6MLYIjs.getCommand; exports.getConfig = _chunkRSW6MLYIjs.getConfig; exports.getDefaultAgent = _chunkRSW6MLYIjs.getDefaultAgent; exports.getGlobalAgent = _chunkRSW6MLYIjs.getGlobalAgent; exports.parseNi = _chunkRSW6MLYIjs.parseNi; exports.parseNr = _chunkRSW6MLYIjs.parseNr; exports.parseNu = _chunkRSW6MLYIjs.parseNu; exports.remove = _chunkRSW6MLYIjs.remove; exports.run = _chunkRSW6MLYIjs.run; exports.runCli = _chunkRSW6MLYIjs.runCli; |
"use strict"; | ||
var _chunkJDBAN7ALjs = require('./chunk-JDBAN7AL.js'); | ||
var _chunkRSW6MLYIjs = require('./chunk-RSW6MLYI.js'); | ||
// src/nci.ts | ||
_chunkJDBAN7ALjs.runCli.call(void 0, (agent, _, hasLock) => _chunkJDBAN7ALjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock), {autoInstall: true}); | ||
_chunkRSW6MLYIjs.runCli.call(void 0, (agent, _, hasLock) => _chunkRSW6MLYIjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock), {autoInstall: true}); |
"use strict"; | ||
var _chunkJDBAN7ALjs = require('./chunk-JDBAN7AL.js'); | ||
var _chunkRSW6MLYIjs = require('./chunk-RSW6MLYI.js'); | ||
// src/ni.ts | ||
_chunkJDBAN7ALjs.runCli.call(void 0, _chunkJDBAN7ALjs.parseNi); | ||
_chunkRSW6MLYIjs.runCli.call(void 0, _chunkRSW6MLYIjs.parseNi); |
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _chunkJDBAN7ALjs = require('./chunk-JDBAN7AL.js'); | ||
var _chunkRSW6MLYIjs = require('./chunk-RSW6MLYI.js'); | ||
// src/nr.ts | ||
var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts); | ||
var import_prompts = _chunkRSW6MLYIjs.__toModule.call(void 0, _chunkRSW6MLYIjs.require_prompts.call(void 0, )); | ||
@@ -27,3 +29,3 @@ // src/fs.ts | ||
// src/nr.ts | ||
_chunkJDBAN7ALjs.runCli.call(void 0, async (agent, args) => { | ||
_chunkRSW6MLYIjs.runCli.call(void 0, async (agent, args) => { | ||
if (args.length === 0) { | ||
@@ -35,3 +37,3 @@ const scripts = getPackageJSON().scripts || {}; | ||
try { | ||
const {fn} = await _prompts2.default.call(void 0, { | ||
const {fn} = await (0, import_prompts.default)({ | ||
name: "fn", | ||
@@ -49,3 +51,3 @@ message: "script to run", | ||
} | ||
return _chunkJDBAN7ALjs.parseNr.call(void 0, agent, args); | ||
return _chunkRSW6MLYIjs.parseNr.call(void 0, agent, args); | ||
}); |
"use strict"; | ||
var _chunkJDBAN7ALjs = require('./chunk-JDBAN7AL.js'); | ||
var _chunkRSW6MLYIjs = require('./chunk-RSW6MLYI.js'); | ||
// src/nu.ts | ||
_chunkJDBAN7ALjs.runCli.call(void 0, _chunkJDBAN7ALjs.parseNu); | ||
_chunkRSW6MLYIjs.runCli.call(void 0, _chunkRSW6MLYIjs.parseNu); |
{ | ||
"name": "@antfu/ni", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Use the right package manager", | ||
@@ -42,23 +42,21 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
}, | ||
"dependencies": { | ||
"execa": "^5.0.0", | ||
"find-up": "^5.0.0", | ||
"ini": "^2.0.0", | ||
"prompts": "^2.4.1", | ||
"terminal-link": "^2.1.1" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config-ts": "^0.6.2", | ||
"@types/ini": "^1.3.30", | ||
"@types/node": "^14.14.37", | ||
"@types/node": "^14.14.41", | ||
"@types/prompts": "^2.4.0", | ||
"ava": "^3.15.0", | ||
"c8": "^7.7.0", | ||
"esbuild-register": "^2.3.0", | ||
"eslint": "^7.23.0", | ||
"c8": "^7.7.1", | ||
"esbuild-register": "^2.4.0", | ||
"eslint": "^7.24.0", | ||
"esm": "^3.2.25", | ||
"esno": "^0.5.0", | ||
"execa": "^5.0.0", | ||
"find-up": "^5.0.0", | ||
"ini": "^2.0.0", | ||
"prompts": "^2.4.1", | ||
"rimraf": "^3.0.2", | ||
"terminal-link": "^2.1.1", | ||
"tsup": "^4.8.21", | ||
"typescript": "^4.2.3" | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -65,0 +63,0 @@ "eslintConfig": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
485562
0
15436
18
50
7
- Removedexeca@^5.0.0
- Removedfind-up@^5.0.0
- Removedini@^2.0.0
- Removedprompts@^2.4.1
- Removedterminal-link@^2.1.1
- Removedansi-escapes@4.3.2(transitive)
- Removedcross-spawn@7.0.3(transitive)
- Removedexeca@5.1.1(transitive)
- Removedfind-up@5.0.0(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhuman-signals@2.1.0(transitive)
- Removedini@2.0.0(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedisexe@2.0.0(transitive)
- Removedkleur@3.0.3(transitive)
- Removedlocate-path@6.0.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removednpm-run-path@4.0.1(transitive)
- Removedonetime@5.1.2(transitive)
- Removedp-limit@3.1.0(transitive)
- Removedp-locate@5.0.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedprompts@2.4.2(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsisteransi@1.0.5(transitive)
- Removedstrip-final-newline@2.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedsupports-hyperlinks@2.3.0(transitive)
- Removedterminal-link@2.1.1(transitive)
- Removedtype-fest@0.21.3(transitive)
- Removedwhich@2.0.2(transitive)
- Removedyocto-queue@0.1.0(transitive)