🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

yargs

Package Overview
Dependencies
Maintainers
3
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yargs - npm Package Compare versions

Comparing version
16.2.0
to
16.2.2-candidate.0
+15
yargs.cjs
// TODO: consolidate on using a helpers file at some point in the future, which
// is the approach currently used to export Parser and applyExtends for ESM:
const {
applyExtends,
cjsPlatformShim,
Parser,
Yargs,
processArgv,
} = require('./build/index.cjs');
Yargs.applyExtends = (config, cwd, mergeExtends) => {
return applyExtends(config, cwd, mergeExtends, cjsPlatformShim);
};
Yargs.hideBin = processArgv.hideBin;
Yargs.Parser = Parser;
module.exports = Yargs;
+27
-26
{
"name": "yargs",
"version": "16.2.0",
"version": "16.2.2-candidate.0",
"description": "yargs the modern, pirate-themed, successor to optimist.",

@@ -21,5 +21,5 @@ "main": "./index.cjs",

{
"require": "./yargs"
"require": "./yargs.cjs"
},
"./yargs"
"./yargs.cjs"
]

@@ -42,2 +42,3 @@ },

"yargs",
"yargs.cjs",
"build",

@@ -59,23 +60,24 @@ "locales",

"devDependencies": {
"@types/chai": "^4.2.11",
"@types/mocha": "^8.0.0",
"@types/node": "^14.11.2",
"@wessberg/rollup-plugin-ts": "^1.3.2",
"c8": "^7.0.0",
"chai": "^4.2.0",
"chalk": "^4.0.0",
"coveralls": "^3.0.9",
"cpr": "^3.0.1",
"cross-env": "^7.0.2",
"cross-spawn": "^7.0.0",
"gts": "^3.0.0",
"@types/babel__traverse": "7.0.16",
"@types/chai": "4.2.14",
"@types/mocha": "8.0.4",
"@types/node": "14.14.0",
"@wessberg/rollup-plugin-ts": "1.3.8",
"chai": "4.2.0",
"chalk": "4.1.0",
"coveralls": "3.1.0",
"cpr": "3.0.1",
"cross-env": "7.0.2",
"cross-spawn": "7.0.3",
"gts": "3.0.3",
"hashish": "0.0.4",
"mocha": "^8.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.23.0",
"rollup-plugin-cleanup": "^3.1.1",
"mocha": "8.2.1",
"rimraf": "3.0.2",
"prettier": "2.2.1",
"rollup": "2.34.1",
"rollup-plugin-cleanup": "3.2.1",
"standardx": "^5.0.0",
"typescript": "^4.0.2",
"which": "^2.0.0",
"yargs-test-extends": "^1.0.1"
"typescript": "4.1.2",
"which": "2.0.2",
"yargs-test-extends": "1.0.1"
},

@@ -86,4 +88,4 @@ "scripts": {

"posttest": "npm run check",
"test": "c8 mocha ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
"test:esm": "c8 mocha ./test/esm/*.mjs --check-leaks",
"test": "mocha ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
"test:esm": "mocha ./test/esm/*.mjs --check-leaks",
"coverage": "c8 report --check-coverage",

@@ -96,4 +98,3 @@ "prepare": "npm run compile",

"postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
"check": "gts lint && npm run check:js",
"check:js": "standardx '**/*.mjs' && standardx '**/*.cjs' && standardx './*.mjs' && standardx './*.cjs'",
"check": "gts lint",
"clean": "gts clean"

@@ -100,0 +101,0 @@ },

Sorry, the diff of this file is not supported yet