
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@tomtom-international/web-sdk-plugin-drawingtools
Advanced tools
Plugin that adds drawing tool set to the map
This plugin provides a drawing functionality to your map (@tomtom-international/web-sdk-maps).
Just do:
npm i @tomtom-international/web-sdk-plugin-drawingtools
You must also include the drawing tools stylesheet in your project. It's located here:
node_modules/@tomtom-international/web-sdk-plugin-drawingtools/dist/DrawingTools.css
In this example we assume that you already have the TomTom Maps SDK for Web library included.
import tt from '@tomtom-international/web-sdk-maps';
import DrawingTools from '@tomtom-international/web-sdk-plugin-drawingtools';
const ttDrawingTools = new DrawingTools({
ttMapsSdk: tt
});
const ttMap = tt.map({
key: '<your-tomtom-maps-sdk-key>',
container: 'map',
center: [19.45773, 51.76217],
zoom: 12
});
ttMap.addControl(ttDrawingTools, 'top-left');
Drawing tools emits 4 different events:
If you want to subscribe to the event:
ttDrawingTools.on('tomtom.drawingtools.created', function(feature) {
console.log(feature);
});
FAQs
Plugin that adds drawing tool set to the map
The npm package @tomtom-international/web-sdk-plugin-drawingtools receives a total of 33 weekly downloads. As such, @tomtom-international/web-sdk-plugin-drawingtools popularity was classified as not popular.
We found that @tomtom-international/web-sdk-plugin-drawingtools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.