Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
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 9 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.