
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
@glue42/ng-glue
Advanced tools
npm install @glue42/desktop @glue42/ng-glue
Once installed NgGlue42Module needs to be imported and the static method withConfig to be invoked with an optional configuration. withConfig inits an instance of Glue library:
import { NgGlue42Module } from '@glue42/ng-glue';
@NgModule({
imports: [
NgGlue42Module.withConfig({})
]
})
export class AppModule { }
Start using by injecting any of the provided API into your components and services. For example: In one app listen for a certain method to be registered and immediately invoke it when it becomes available:
import { Component, OnInit } from '@angular/core';
import { InteropService } from '@glue42/ng-glue';
import { mergeMap } from 'rxjs/operators';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent implements OnInit {
constructor(public interopService: InteropService) { }
ngOnInit(): void {
this.interopService.methodRegistered({ methodName: 'Sum' })
.pipe(
mergeMap(
() => this.interopService.invoke('Sum', { a: 37, b: 5 })
)
).subscribe(result => {
console.log(`The result of 37 + 5 is ${result.returned.answer}`);
});
}
}
In another app register the method:
this.interopService.register('Sum', ({ a, b }) => ({ answer: a + b }))
.subscribe(
method => console.log(`Method "${method.name}" is registered.`),
error => console.log(`Couldn't register method "Sum"`, error)
);
FAQs
Glue42 library for Angular
We found that @glue42/ng-glue demonstrated a not healthy version release cadence and project activity because the last version was released 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
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.