@lbu/stdlib
Advanced tools
Comparing version 0.0.93 to 0.0.94
{ | ||
"name": "@lbu/stdlib", | ||
"version": "0.0.93", | ||
"version": "0.0.94", | ||
"description": "All kinds of utility functions", | ||
@@ -17,3 +17,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@lbu/insight": "0.0.93", | ||
"@lbu/insight": "0.0.94", | ||
"@types/node": "14.14.6", | ||
@@ -44,3 +44,3 @@ "dotenv": "8.2.0", | ||
}, | ||
"gitHead": "9b8657e966d916d33ccc25eda1a4d408281e178a" | ||
"gitHead": "9565469537abd285d74c8c3d6b0836bd17effabb" | ||
} |
@@ -0,1 +1,2 @@ | ||
import { inspect } from "util"; | ||
import { isNil } from "./lodash.js"; | ||
@@ -123,2 +124,11 @@ | ||
} | ||
/** | ||
* Use AppError#format when AppError is passed to console.log / console.error. | ||
* This works because it uses `util.inspect` under the hood. | ||
* Util#inspect checks if the Symbol `util.inspect.custom` is available. | ||
*/ | ||
[inspect.custom]() { | ||
return AppError.format(this); | ||
} | ||
} |
30577
931
+ Added@lbu/insight@0.0.94(transitive)
- Removed@lbu/insight@0.0.93(transitive)
Updated@lbu/insight@0.0.94