@nomalism-com/api
Advanced tools
@@ -24,4 +24,4 @@ /** | ||
| * `JSON.stringify(err)` and `err.stack` stay short. The original axios error is | ||
| * preserved on a NON-enumerable `cause` property — available for deep debugging, | ||
| * but never dumped when the error is logged. | ||
| * preserved on a non-enumerable Symbol slot, reachable via `err.raw` for deep | ||
| * debugging, but never dumped when the error is logged. | ||
| */ | ||
@@ -41,2 +41,7 @@ export declare class ApiError extends Error { | ||
| constructor(fields: IApiErrorFields, cause?: unknown); | ||
| /** | ||
| * The original underlying error (e.g. the raw AxiosError) for deep debugging. | ||
| * Lives on a non-enumerable Symbol slot, so it is never printed by loggers. | ||
| */ | ||
| get raw(): unknown; | ||
| /** Controls what `JSON.stringify(err)` and most loggers emit — kept compact. */ | ||
@@ -43,0 +48,0 @@ toJSON(): IApiErrorFields; |
+4
-4
| { | ||
| "name": "@nomalism-com/api", | ||
| "description": "A nomalism API package for performing HTTP requests on API endpoints", | ||
| "version": "0.45.64", | ||
| "version": "0.45.65", | ||
| "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)", | ||
@@ -30,4 +30,4 @@ "license": "UNLICENSED", | ||
| "devDependencies": { | ||
| "@swc/core": "^1.15.40", | ||
| "@types/node": "^24.13.1", | ||
| "@swc/core": "^1.15.41", | ||
| "@types/node": "^24.13.2", | ||
| "@typescript-eslint/eslint-plugin": "^8.61.0", | ||
@@ -39,3 +39,3 @@ "@typescript-eslint/parser": "^8.61.0", | ||
| "eslint-plugin-prettier": "^5.5.6", | ||
| "prettier": "^3.8.3", | ||
| "prettier": "^3.8.4", | ||
| "tsup": "^8.5.1" | ||
@@ -42,0 +42,0 @@ }, |
Sorry, the diff of this file is too big to display
265870
0.18%6693
0.19%