
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
flew-handler
Advanced tools
This library is to manage the flow control of errors/exceptions in an Angular2+ application, especially for async/await functions, reducing the extense boilerplate of try/catch that this kind of functions may need; BTW, also help you with normal functions exception handling. FLEW Handler provide you the next capabilities through custom top level decorators, keeping the AngularLike syntax we already love:
Please, for any suggestions or fixes, don't doubt and send me an email to: superengasado@outlook.com or send your pull request, working together we'll create something amazing or helpful or both (why not? ;D). If you detect a bug, open an issue, don't be shy; I'll work on it almost instantly, well, may be not instanly, but ASAP, I won't keep you waiting for... mmm, forever?
Saying that, let's code!
The first step is import the FlewModule in your Angular's main module, commonly AppModule
@NgModule({
declarations: [...],
imports: [
...,
FlewModule.forRoot({
notifier: NotificationService,
// Dependency class we'll use to notify (Required)
translate: TranslateService,
// Dependency class we'll use to translate
transformError: yourFunctionOnError,
// Pure function that will transform error messages
transformSuccess: yourFunctionOnSuccess,
// Pure function that will transform success messages
success: {}
// Default success message
}),
...
],
providers: [...],
bootstrap: [...],
exports: [...]
})
export class AppModule {
}
In future releases I'll improve and expand the capabilities of notify and translate, allowing more dependencies or converting FLEW in a solution out-of-the-box, containing everything you need, everybody like plug and play.
Care about this:
Right now FLEW don't provide to Angular's dependency injection core the dependencies received in notifier and translate.
You should provide them manually, because in this way Flew ensures you implement everything that needs every dependency
in your whole application, like components required in certain places and reasons like that, keeping the Single Responsability
Pattern, FLEW only should care about itself. If you don't do it, FLEW notify and translation capabilities won't work, because
FLEW get the respective instances of that dependencies directly from Angular Dependency Injector.
FlewMessage is only more syntactic sugar, but make the general implementation more sexy and standardized, we'll dive in this later.
FAQs
Flow Error Awareness library
We found that flew-handler 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.