@visulima/error 4.4.13 → 4.4.15
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 +27 -0
- package/README.md +1 -1
- package/dist/error/index.cjs +1 -1
- package/dist/error/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/{renderError-NCKbKLok.cjs → renderError-ZhN2-BE7.cjs} +7 -5
- package/dist/packem_shared/{renderError-DV9rZ4rp.mjs → renderError-ndNjm7dW.mjs} +7 -5
- package/package.json +2 -69
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## @visulima/error [4.4.15](https://github.com/visulima/visulima/compare/@visulima/error@4.4.14...@visulima/error@4.4.15) (2025-01-25)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* fixed wrong node version range in package.json ([4ae2929](https://github.com/visulima/visulima/commit/4ae292984681c71a770e4d4560432f7b7c5a141a))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* fixed typescript url ([fe65a8c](https://github.com/visulima/visulima/commit/fe65a8c0296ece7ee26474c70d065b06d4d0da89))
|
|
10
|
+
* updated all dev dependencies ([37fb298](https://github.com/visulima/visulima/commit/37fb298b2af7c63be64252024e54bb3af6ddabec))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* **@visulima/path:** upgraded to 1.3.4
|
|
16
|
+
|
|
17
|
+
## @visulima/error [4.4.14](https://github.com/visulima/visulima/compare/@visulima/error@4.4.13...@visulima/error@4.4.14) (2025-01-22)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **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))
|
|
22
|
+
|
|
23
|
+
### Miscellaneous Chores
|
|
24
|
+
|
|
25
|
+
* **error:** fixed new test value ([cacee8b](https://github.com/visulima/visulima/commit/cacee8bec5988ed62225e3831cad79650c59ce3d))
|
|
26
|
+
* updated all dev dependencies and all dependencies in the app folder ([87f4ccb](https://github.com/visulima/visulima/commit/87f4ccbf9f7900ec5b56f3c1477bc4a0ef571bcf))
|
|
27
|
+
|
|
1
28
|
## @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
29
|
|
|
3
30
|
|
package/README.md
CHANGED
|
@@ -430,7 +430,7 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
430
430
|
The visulima error is open-sourced software licensed under the [MIT][license-url]
|
|
431
431
|
|
|
432
432
|
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
433
|
-
[typescript-url]: "typescript"
|
|
433
|
+
[typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
|
|
434
434
|
[license-image]: https://img.shields.io/npm/l/@visulima/error?color=blueviolet&style=for-the-badge
|
|
435
435
|
[license-url]: LICENSE.md "license"
|
|
436
436
|
[npm-image]: https://img.shields.io/npm/v/@visulima/error/latest.svg?style=for-the-badge&logo=npm
|
package/dist/error/index.cjs
CHANGED
|
@@ -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-
|
|
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
|
|
package/dist/error/index.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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.
|
|
3
|
+
"version": "4.4.15",
|
|
4
4
|
"description": "Error with more than just a message, stacktrace parsing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -130,45 +130,8 @@
|
|
|
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
|
-
"node": ">=18
|
|
134
|
+
"node": ">=18.0.0 <=23.x"
|
|
172
135
|
},
|
|
173
136
|
"os": [
|
|
174
137
|
"darwin",
|
|
@@ -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
|
}
|