@oclif/test 4.1.0 → 4.1.2

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 +2 -2
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -98,8 +98,8 @@ async function captureOutput(fn, opts) {
98
98
  }
99
99
  catch (error) {
100
100
  return {
101
- ...(error instanceof core_1.Errors.CLIError && { error: { ...error, message: toString(error.message) } }),
102
- ...(error instanceof Error && { error: { ...error, message: toString(error.message) } }),
101
+ ...(error instanceof core_1.Errors.CLIError && { error: Object.assign(error, { message: toString(error.message) }) }),
102
+ ...(error instanceof Error && { error: Object.assign(error, { message: toString(error.message) }) }),
103
103
  stderr: getStderr(),
104
104
  stdout: getStdout(),
105
105
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/test",
3
3
  "description": "test helpers for oclif components",
4
- "version": "4.1.0",
4
+ "version": "4.1.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/test/issues",
7
7
  "dependencies": {
@@ -13,13 +13,13 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@commitlint/config-conventional": "^18.6.3",
16
- "@oclif/core": "^4.0.28",
16
+ "@oclif/core": "^4.0.32",
17
17
  "@oclif/prettier-config": "^0.2.1",
18
- "@types/chai": "^4.3.20",
18
+ "@types/chai": "^5.0.1",
19
19
  "@types/debug": "^4.1.12",
20
20
  "@types/mocha": "^10",
21
21
  "@types/node": "^18",
22
- "chai": "^5.1.1",
22
+ "chai": "^5.1.2",
23
23
  "commitlint": "^18.6.1",
24
24
  "eslint": "^8.57.1",
25
25
  "eslint-config-oclif": "^5.2.1",
@@ -30,7 +30,7 @@
30
30
  "mocha": "^10",
31
31
  "prettier": "^3.3.3",
32
32
  "shx": "^0.3.3",
33
- "tsx": "^4.19.1",
33
+ "tsx": "^4.19.2",
34
34
  "typescript": "^5.6.3"
35
35
  },
36
36
  "engines": {