
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@ng-web-apis/mutation-observer
Advanced tools
A library for declarative use of Mutation Observer API with Angular
Part of
> Web APIs for Angular
This is a library for declarative use of Mutation Observer API with Angular.
If you do not have @ng-web-apis/common:
npm i @ng-web-apis/common
Now install the package:
npm i @ng-web-apis/mutation-observer
Add MutationObserverModule
and then use (waMutationObserver)="onMutation($event)"
directive to watch mutation in an
element.
Alternatively use an Observable
-based MutationObserverService
manually to get MutationObserver
in an RxJS
Observable
form.
Use attributes on an element to define
MutationObserverInit config object. All
attributes are boolean
meaning no need to explicitly set them to true
.
NOTE: Keep in mind these are used one time in constructor so you cannot use binding, only strings. Pass comma separated attribute names to set
attributeFilter
array.
<div
subtree
childList
characterData
attributeFilter="title, aria-label"
[title]="title"
[attr.aria-label]="label"
(waMutationObserver)="onMutation($event)"
>
...
</div>
![]() | ![]() | ![]() | ![]() |
---|---|---|---|
11+ | 14+ | 26+ | 7+ |
If you want to use this package with SSR, you need to mock MutationObserver
class on the server. You can use our
Universal package for this, see
this example.
You can try online demo here
Other Web APIs for Angular by @ng-web-apis
FAQs
A library for declarative use of Mutation Observer API with Angular
The npm package @ng-web-apis/mutation-observer receives a total of 9,959 weekly downloads. As such, @ng-web-apis/mutation-observer popularity was classified as popular.
We found that @ng-web-apis/mutation-observer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.