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.
github.com/zwickthegreat/feathers-maps
Google (and more) tiled-based maps developed directly for Starling and Feathers and optimized for mobile devices (Adobe AIR).
var mapOptions:MapOptions = new MapOptions();
mapOptions.initialCenter = new Point(14.4777357, 50.1017711);
mapOptions.initialScale = 1 / 32;
mapOptions.disableRotation = true;
var geoMap:GeoMap = new GeoMap(mapOptions);
geoMap.setSize(stage.stageWidth - 100, stage.stageHeight - 100);
geoMap.x = geoMap.y = 50;
addChild(geoMap);
var googleMaps:MapLayerOptions = Maps.GOOGLE_MAPS;
googleMaps.notUsedZoomThreshold = 1;
geoMap.addLayer("googleMaps", googleMaps);
Some map providers supports HiDPI tiles.
var mapScale:Number = 2; // use 1 for non-retina displays
GeoUtils.scale = mapScale;
var googleMaps:MapLayerOptions = Maps.GOOGLE_MAPS_SCALED(mapScale); // it simply takes hdpi tiles from google
googleMaps.notUsedZoomThreshold = 1;
geoMap.addLayer("googleMaps", googleMaps);
var markerTexture:Texture = Texture.fromEmbeddedAsset(MarkerClass);
for (var i:int = 0; i < 100; i++) {
var image:Image = new Image(markerTexture);
image.alignPivot(HAlign.CENTER, VAlign.BOTTOM);
geoMap.addMarkerLongLat("marker" + i, mapOptions.initialCenter.x + .1 - Math.random() * .2, mapOptions.initialCenter.y + .1 - Math.random() * .2, image);
}
You can use all the features (mask, filters, rotations, Sprite3D, etc.) of Starling!
// greyscale filter
var colorMatrixFilter:ColorMatrixFilter = new ColorMatrixFilter();
colorMatrixFilter.adjustSaturation( -1);
geoMap.filter = colorMatrixFilter;
// circle mask
var mask:Canvas = new Canvas();
mask.drawCircle(0, 0, 120);
geoMap.mask = mask;
FAQs
Unknown package
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.