@visulima/error 4.4.13 → 4.4.14

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## @visulima/error [4.4.14](https://github.com/visulima/visulima/compare/@visulima/error@4.4.13...@visulima/error@4.4.14) (2025-01-22)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **error:** dont display a main frame if the error has a broken state data, updated dev deps ([c0b8f15](https://github.com/visulima/visulima/commit/c0b8f157f98ce4b03a66ecc2b36aa148b3be5d73))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * **error:** fixed new test value ([cacee8b](https://github.com/visulima/visulima/commit/cacee8bec5988ed62225e3831cad79650c59ce3d))
10
+ * updated all dev dependencies and all dependencies in the app folder ([87f4ccb](https://github.com/visulima/visulima/commit/87f4ccbf9f7900ec5b56f3c1477bc4a0ef571bcf))
11
+
1
12
  ## @visulima/error [4.4.13](https://github.com/visulima/visulima/compare/@visulima/error@4.4.12...@visulima/error@4.4.13) (2025-01-13)
2
13
 
3
14
 
@@ -4,7 +4,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
4
4
 
5
5
  const captureRawStackTrace = require('../packem_shared/captureRawStackTrace-DjD7FUtZ.cjs');
6
6
  const getErrorCauses = require('../packem_shared/getErrorCauses-miTeYJEG.cjs');
7
- const renderError = require('../packem_shared/renderError-NCKbKLok.cjs');
7
+ const renderError = require('../packem_shared/renderError-ZhN2-BE7.cjs');
8
8
  const serializeError = require('../packem_shared/serializeError-C3BTAUm5.cjs');
9
9
  const isVisulimaError = require('../packem_shared/isVisulimaError-BVLWvREw.cjs');
10
10
 
@@ -1,5 +1,5 @@
1
1
  export { default as captureRawStackTrace } from '../packem_shared/captureRawStackTrace-CAQrHENg.mjs';
2
2
  export { default as getErrorCauses } from '../packem_shared/getErrorCauses-CG_JRE6j.mjs';
3
- export { renderError } from '../packem_shared/renderError-DV9rZ4rp.mjs';
3
+ export { renderError } from '../packem_shared/renderError-ndNjm7dW.mjs';
4
4
  export { serialize as serializeError } from '../packem_shared/serializeError-BNAsxuJ_.mjs';
5
5
  export { VisulimaError, isVisulimaError } from '../packem_shared/isVisulimaError-H6TqEA42.mjs';
package/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@ const captureRawStackTrace = require('./packem_shared/captureRawStackTrace-DjD7F
8
8
  const getErrorCauses = require('./packem_shared/getErrorCauses-miTeYJEG.cjs');
9
9
  const parseStacktrace = require('./packem_shared/parseStacktrace-CPbfvO-n.cjs');
10
10
  const isVisulimaError = require('./packem_shared/isVisulimaError-BVLWvREw.cjs');
11
- const renderError = require('./packem_shared/renderError-NCKbKLok.cjs');
11
+ const renderError = require('./packem_shared/renderError-ZhN2-BE7.cjs');
12
12
  const serializeError = require('./packem_shared/serializeError-C3BTAUm5.cjs');
13
13
 
14
14
 
package/dist/index.mjs CHANGED
@@ -4,5 +4,5 @@ export { default as captureRawStackTrace } from './packem_shared/captureRawStack
4
4
  export { default as getErrorCauses } from './packem_shared/getErrorCauses-CG_JRE6j.mjs';
5
5
  export { default as parseStacktrace } from './packem_shared/parseStacktrace-B-BUrkkI.mjs';
6
6
  export { VisulimaError, isVisulimaError } from './packem_shared/isVisulimaError-H6TqEA42.mjs';
7
- export { renderError } from './packem_shared/renderError-DV9rZ4rp.mjs';
7
+ export { renderError } from './packem_shared/renderError-ndNjm7dW.mjs';
8
8
  export { serialize as serializeError } from './packem_shared/serializeError-BNAsxuJ_.mjs';
@@ -94,11 +94,13 @@ const getCause = /* @__PURE__ */ __name((error, options, deep) => {
94
94
  if (hint) {
95
95
  message += hint + "\n";
96
96
  }
97
- message += getMainFrame(mainFrame, options, deep);
98
- if (!options.hideErrorCauseCodeView) {
99
- const code = getCode(mainFrame, options, deep);
100
- if (code !== undefined) {
101
- message += "\n" + code;
97
+ if (mainFrame) {
98
+ message += getMainFrame(mainFrame, options, deep);
99
+ if (!options.hideErrorCauseCodeView) {
100
+ const code = getCode(mainFrame, options, deep);
101
+ if (code !== undefined) {
102
+ message += "\n" + code;
103
+ }
102
104
  }
103
105
  }
104
106
  if (cause.cause) {
@@ -90,11 +90,13 @@ const getCause = /* @__PURE__ */ __name((error, options, deep) => {
90
90
  if (hint) {
91
91
  message += hint + "\n";
92
92
  }
93
- message += getMainFrame(mainFrame, options, deep);
94
- if (!options.hideErrorCauseCodeView) {
95
- const code = getCode(mainFrame, options, deep);
96
- if (code !== undefined) {
97
- message += "\n" + code;
93
+ if (mainFrame) {
94
+ message += getMainFrame(mainFrame, options, deep);
95
+ if (!options.hideErrorCauseCodeView) {
96
+ const code = getCode(mainFrame, options, deep);
97
+ if (code !== undefined) {
98
+ message += "\n" + code;
99
+ }
98
100
  }
99
101
  }
100
102
  if (cause.cause) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/error",
3
- "version": "4.4.13",
3
+ "version": "4.4.14",
4
4
  "description": "Error with more than just a message, stacktrace parsing.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -130,43 +130,6 @@
130
130
  "CHANGELOG.md",
131
131
  "LICENSE.md"
132
132
  ],
133
- "devDependencies": {
134
- "@anolilab/eslint-config": "^15.0.3",
135
- "@anolilab/prettier-config": "^5.0.14",
136
- "@anolilab/semantic-release-pnpm": "^1.1.6",
137
- "@anolilab/semantic-release-preset": "^9.0.3",
138
- "@arethetypeswrong/cli": "^0.17.2",
139
- "@babel/core": "^7.26.0",
140
- "@eslint-types/deprecation": "^2.0.0",
141
- "@eslint-types/import": "^2.29.1",
142
- "@eslint-types/jsdoc": "^48.2.2",
143
- "@eslint-types/typescript-eslint": "^7.5.0",
144
- "@eslint-types/unicorn": "^52.0.0",
145
- "@rushstack/eslint-plugin-security": "^0.8.3",
146
- "@total-typescript/ts-reset": "^0.6.1",
147
- "@types/command-line-args": "^5.2.3",
148
- "@types/node": "18.19.15",
149
- "@visulima/nextra-theme-docs": "4.0.26",
150
- "@visulima/packem": "1.10.7",
151
- "@visulima/path": "1.3.3",
152
- "@vitest/coverage-v8": "^2.1.8",
153
- "@vitest/ui": "^2.1.8",
154
- "conventional-changelog-conventionalcommits": "8.0.0",
155
- "cross-env": "^7.0.3",
156
- "esbuild": "0.24.2",
157
- "eslint": "8.57.0",
158
- "eslint-plugin-deprecation": "^3.0.0",
159
- "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
160
- "eslint-plugin-mdx": "^3.1.5",
161
- "eslint-plugin-vitest": "^0.4.1",
162
- "eslint-plugin-vitest-globals": "^1.5.0",
163
- "is-plain-obj": "^4.1.0",
164
- "prettier": "^3.4.2",
165
- "rimraf": "6.0.1",
166
- "semantic-release": "24.2.1",
167
- "typescript": "5.7.3",
168
- "vitest": "^2.1.8"
169
- },
170
133
  "engines": {
171
134
  "node": ">=18.* <=23.*"
172
135
  },
@@ -178,35 +141,5 @@
178
141
  "publishConfig": {
179
142
  "access": "public",
180
143
  "provenance": true
181
- },
182
- "anolilab": {
183
- "eslint-config": {
184
- "plugin": {
185
- "tsdoc": false,
186
- "etc": false
187
- },
188
- "warn_on_unsupported_typescript_version": false,
189
- "info_on_disabling_jsx_react_rule": false,
190
- "info_on_disabling_prettier_conflict_rule": false,
191
- "info_on_disabling_jsonc_sort_keys_rule": false,
192
- "info_on_disabling_etc_no_deprecated": false
193
- }
194
- },
195
- "scripts": {
196
- "build": "cross-env NODE_ENV=development packem build",
197
- "build:prod": "cross-env NODE_ENV=production packem build",
198
- "clean": "rimraf node_modules dist .eslintcache",
199
- "dev": "pnpm run build --watch",
200
- "lint:attw": "attw --pack",
201
- "lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
202
- "lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
203
- "lint:package-json": "publint --strict",
204
- "lint:prettier": "prettier --config=.prettierrc.cjs --check .",
205
- "lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
206
- "lint:types": "tsc --noEmit --project tsconfig.json",
207
- "test": "vitest run",
208
- "test:coverage": "vitest run --coverage",
209
- "test:ui": "vitest --ui --coverage.enabled=true",
210
- "test:watch": "vitest"
211
144
  }
212
145
  }