![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Extends the native error object with a setName & setDescription method
npm install ee-error
// load the module in the root of your project
require( "ee-error" );
try{
throw new Error( "not good! you created a try catch block without any useful functionality!" ).setName( "NotGoodException" );
}
catch ( err ) {
if ( err.name === "NotGoodException" ){
console.log( err ); // { [NotGoodException: not good! you created a try catch block without any useful functionality!] name: 'NotGoodException' }
}
}
if you're using the ee-log class the output of log.trace( err ) would look like this:
23 11:11:32.159 > /test.js 12:6, Object.<anonymous> >>> [Trace]
--------------------------------------------------------------------------------
NotGoodException: not good! you created a try catch block without any useful functionality!
--------------------------------------------------------------------------------
/test.js 12:13 Object.<anonymous>
module.js 456:26 Module._compile
module.js 474:10 Object.Module._extensions..js
module.js 356:32 Module.load
module.js 312:12 Function.Module._load
module.js 497:10 Function.Module.runMain
node.js 119:16 startup
node.js 901:3
--------------------------------------------------------------------------------
FAQs
Extends the native error object with a setName & setDescription method
The npm package ee-error receives a total of 10 weekly downloads. As such, ee-error popularity was classified as not popular.
We found that ee-error demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.