@oclif/test 4.0.4 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -4
  2. package/package.json +9 -9
package/lib/index.js CHANGED
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.runHook = exports.runCommand = exports.captureOutput = void 0;
6
+ exports.captureOutput = captureOutput;
7
+ exports.runCommand = runCommand;
8
+ exports.runHook = runHook;
7
9
  const core_1 = require("@oclif/core");
8
10
  const ansis_1 = __importDefault(require("ansis"));
9
11
  const debug_1 = __importDefault(require("debug"));
@@ -107,7 +109,6 @@ async function captureOutput(fn, opts) {
107
109
  process.env.NODE_ENV = originals.NODE_ENV;
108
110
  }
109
111
  }
110
- exports.captureOutput = captureOutput;
111
112
  /**
112
113
  * Capture the stderr and stdout output of a command in your CLI
113
114
  * @param args Command arguments, e.g. `['my:command', '--flag']` or `'my:command --flag'`
@@ -130,7 +131,6 @@ async function runCommand(args, loadOpts, captureOpts) {
130
131
  debug('args: %O', finalArgs);
131
132
  return captureOutput(async () => (0, core_1.run)(finalArgs, loadOptions), captureOpts);
132
133
  }
133
- exports.runCommand = runCommand;
134
134
  /**
135
135
  * Capture the stderr and stdout output of a hook in your CLI
136
136
  * @param hook Hook name
@@ -153,4 +153,3 @@ async function runHook(hook, options, loadOpts, captureOpts) {
153
153
  return config.runHook(hook, options);
154
154
  }, captureOpts);
155
155
  }
156
- exports.runHook = runHook;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@oclif/test",
3
3
  "description": "test helpers for oclif components",
4
- "version": "4.0.4",
4
+ "version": "4.0.6",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/test/issues",
7
7
  "dependencies": {
8
- "ansis": "^3.2.0",
8
+ "ansis": "^3.3.1",
9
9
  "debug": "^4.3.5"
10
10
  },
11
11
  "peerDependencies": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@commitlint/config-conventional": "^18.6.3",
16
- "@oclif/core": "^4.0.3",
16
+ "@oclif/core": "^4.0.12",
17
17
  "@oclif/prettier-config": "^0.2.1",
18
18
  "@types/chai": "^4.3.16",
19
19
  "@types/debug": "^4.1.12",
@@ -23,15 +23,15 @@
23
23
  "commitlint": "^18.6.1",
24
24
  "eslint": "^8.57.0",
25
25
  "eslint-config-oclif": "^5.2.0",
26
- "eslint-config-oclif-typescript": "^3.1.7",
26
+ "eslint-config-oclif-typescript": "^3.1.8",
27
27
  "eslint-config-prettier": "^9.1.0",
28
- "husky": "^9.0.3",
29
- "lint-staged": "^15.2.5",
28
+ "husky": "^9.1.1",
29
+ "lint-staged": "^15.2.7",
30
30
  "mocha": "^10",
31
- "prettier": "^3.3.1",
31
+ "prettier": "^3.3.3",
32
32
  "shx": "^0.3.3",
33
- "tsx": "^4.14.1",
34
- "typescript": "^5.4.5"
33
+ "tsx": "^4.16.2",
34
+ "typescript": "^5.5.3"
35
35
  },
36
36
  "engines": {
37
37
  "node": ">=18.0.0"