Skip to content

Commit

Permalink
Bump commander from 6.2.0 to 11.1.0 (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Oct 25, 2023
1 parent 53c2313 commit 87b6140
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"axios": "^0.21.1",
"brotli": "^1.3.3",
"chalk": "^4.1.0",
"commander": "^6.2.0",
"commander": "^10.0.1",
"deep-diff": "^1.0.2",
"fs-extra": "^11.1.1",
"js-yaml": "^4.1.0",
Expand Down
27 changes: 14 additions & 13 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import chalk from "chalk";
import program from "commander";
import { program } from "commander";
import fs from "fs-extra";
import { RewriteRule, RewriteRules } from "./rewrite";
import { RecordReplayServer } from "./server";
Expand Down Expand Up @@ -90,20 +90,21 @@ async function main(argv: string[]) {
)
.parse(argv);

const initialMode: string = (program.mode || "").toLowerCase();
const tapeDir: string = program.tapesDir;
const defaultTapeName: string = program.defaultTape;
const host: string = program.host;
const port = parseInt(program.port, 10);
const redactHeaders: string[] = program.redactHeaders;
const options = program.opts();
const initialMode: string = (options.mode || "").toLowerCase();
const tapeDir: string = options.tapesDir;
const defaultTapeName: string = options.defaultTape;
const host: string = options.host;
const port = parseInt(options.port, 10);
const redactHeaders: string[] = options.redactHeaders;
const preventConditionalRequests: boolean =
!!program.dropConditionalRequestHeaders;
const httpsCA: string = program.httpsCa || "";
const httpsKey: string = program.httpsKey;
const httpsCert: string = program.httpsCert;
!!options.dropConditionalRequestHeaders;
const httpsCA: string = options.httpsCa || "";
const httpsKey: string = options.httpsKey;
const httpsCert: string = options.httpsCert;
const unframeGrpcWebJsonRequestsHostnames: string[] =
program.unframeGrpcWebJsonRequestsHostname;
const rewriteBeforeDiffRules: RewriteRules = program.rewriteBeforeDiff;
options.unframeGrpcWebJsonRequestsHostname;
const rewriteBeforeDiffRules: RewriteRules = options.rewriteBeforeDiff;

switch (initialMode) {
case "record":
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1236,16 +1236,16 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==

commander@^10.0.1:
version "10.0.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06"
integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==

commander@^2.12.1:
version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==

commander@^6.2.0:
version "6.2.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c"
integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==

concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
Expand Down

0 comments on commit 87b6140

Please sign in to comment.