Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@equinor/echo-base
Advanced tools
![logo](https://raw.githubusercontent.com/equinor/EchoCore/main/doc/ee.png)
Everything a Echo web need for enabling micro frontend development.
v0.6.0:
baseError
, it now properly supports nested innerErrors. Exception/inner Error used to overwrite each others property if they had the same name.BaseError
now has errorTraceId, either from backEnd, or a unique frontEnd idBaseError
helper methods added for getting properties or propertyByNameIt's recommended to create your own error types, extending BaseError, and decorate it with your own fields:
export class PdfError extends BaseError {
docNo: string;
constructor(args: { message: string; docNo: string; innerError?: Error }) {
super({ name: 'PdfError', message: args.message, innerError: args.innerError });
this.docNo = args.docNo;
}
}
v0.6.0:
initializeError
to initializeNetworkError
and simplified it. It now only takes NetworkErrorArgs
as argument.BaseError
now properly support nested (and nested-nested) errors with argument innerError
.exception
argument renamed to innerError
, of type Record<string, unknown> | Error
BaseError
doesn't add properties directly onto itself anymore, but uses nested errors with argument innerError
.BaseError.allProperties()["someCustomProperty"]
use BaseError.findPropertyByName("someCustomProperty")
. Since we now use innerError
of type Error
or Record<string, unknown>, the property has been moved from baseError[property] to baseError.innerError[property].EchoEvents
enum to EchoCore
.EventHub
event keys in all functions from string | EchoEvents
to string
only.v0.5.0:
Example implementation:
export class CustomError extends BaseError {
constructor(args: ErrorArgs) {
super({ ...args, name: 'CustomError' });
}
}
FAQs
![logo](https://raw.githubusercontent.com/equinor/EchoCore/main/doc/ee.png)
The npm package @equinor/echo-base receives a total of 169 weekly downloads. As such, @equinor/echo-base popularity was classified as not popular.
We found that @equinor/echo-base demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.