
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.
This adapter extends the angular2 UpgradeAdapter by support for attribute directives. The usage is similar to the standard UpgradeAdapter.
import {ngAdapter} from 'ngAdapter/build/ngAdapter';
//create your AngularJS module
let module = angular.module('MyApp', []);
//create adapter
let adapter = new ngAdapter(module);
/**
* modify your module
*/
adapter.bootstrap(document.body, ['MyApp']);
module.directive('myNg2Component', adapter.downgradeNg2Component(MyNg2Component));
module.directive('myNg2Directive', adapter.downgradeNg2Directive(MyNg2Directive));
adapter.addProvider(MyNg2Service);
module.factory('myNg2Service', adapter.downgradeNg2Provider(MyNg2Service));
upgradeAdapter.upgradeNg1Provider('myNg1Service');
@Component({
selector: 'my-ng2-component',
template: `
<span my-ng1-attribute-directive>Hello World</span>
<my-ng1-directive></my-ng1-directive>>
`,
directives: [
adapter.upgradeNg1Directive('myNg1AttributeDirective'),
adapter.upgradeNg1Directive('myNg1Directive')
]
})
export class AppComponent {
constructor(@Inject('myNg1Service') service: MyNg1Service) {}
}
FAQs
Wrapper around ngUpgrade to extend the support to attribute directives
We found that ngadapter 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.
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.