Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
org.webjars.npm:github-com-NeverwinterMoon-angular-swipe
Advanced tools
Simple vertical/horizontal swipe gesture directives and a swipe service for AngularJS
#angular-swipe
Should be used as a replacement for ngTouch and its ngSwipeLeft and ngSwipeRight directives. The problem with ngTouch is that it replaces all default ngClick directives and can screw up how focus event works in input fields which are wrapped with ngClick directive. More on the problem with ngTouch here: https://github.com/angular/angular.js/issues/6432#issuecomment-54636616.
npm install angular-swipe --save-dev
import swipe from 'angular-swipe'
angular.module('app', [ swipe.name ]);
ng-swipe-disable-mouse
"This attribute is useful for text that should still be selectable by the mouse and not trigger the swipe action."
<div class="page" ng-controller="AppController">
<div class="container" ng-swipe-up="swipe($event)">
<h1>Swipe me up!</h1>
</div>
</div>
import { module, bootstrap } from 'angular';
import swipe from 'angular-swipe';
module('app', [ swipe.name ])
.controller('AppController', $scope => {
$scope.swipe = $event => console.log($event);
})
noPreventDefault
class to these elements will not preventDefault when the swipe start on them and thus allow clicks to work.FAQs
WebJar for angular-swipe
We found that org.webjars.npm:github-com-NeverwinterMoon-angular-swipe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.