
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@jfkz/ngx-toolkit-utils
Advanced tools
Angular common utilities
Install the npm package.
# To get the latest stable version and update package.json file:
npm install @ngx-toolkit/utils --save
# or
yarn add @ngx-toolkit/utils
Queue annotation:
import { Queue } from '@ngx-toolkit/utils';
...
class MyComponent {
/**
* Put the method call in a queue and wait for a Promise / Subscription / method execution
* /!\ the method result is modified => Return a Promise
* @param {number} queue limit (default: no limit)
* @param {string} queue name (default: method name)
*/
@Queue(limit?: number, name?: string)
method(): Promise | Subscription | any | void;
}
Wait annotation (shortcut of @Queue(1)):
import { Wait } from '@ngx-toolkit/utils';
...
class MyComponent {
/**
* Wait for a Promise / Subscription before to be re-executed
* /!\ the method result is modified => Return a Promise
* @param {string} wait name (default: method name)
*/
@Wait(name?: string)
method(): Promise | Subscription | any | void;
}
Once annotation:
import { Once } from '@ngx-toolkit/utils';
...
class MyComponent {
/**
* mark a method to be executed no more than once even if called several times
* @param {string} name (default: method name)
*/
@Once(name?: string)
method(): Promise | Subscription | any | void;
}
© 2018 Dewizz
FAQs
Angular common utilities
We found that @jfkz/ngx-toolkit-utils 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.