Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
jVectorMap for the Rails asset pipeline
Add it to your Gemfile
:
gem 'jvectormap-rails', '~> 1.0.0'
You can add jvectormap-rails to your application.js
file using a require statement like this:
//= require jvectormap
Don't forget to add the CSS to your application.css
file too:
*= require 'jvectormap'
To add support for whatever maps you want to use, include them in application.js
:
//= require jvectormap/maps/us_merc_en
The basic pattern is {country}-{region}_{city}_{projection}
. For example, the map us-il-chicago_mill
has a country of us
(United States), region of il
(Illinois), city of chicago
, and a projection of mill
(Miller). Other common projections include Mercator (merc
), and Albers equal area (aea
).
jvectormap-rails supports precompiling individual maps. Add an initializer to your app, eg. config/initializers/jvectormap.rb
:
JVectorMap::Rails.precompile_maps << 'us_merc'
Get a list of all available maps by running this from within your Rails app's root:
bundle exec rake jvectormap:maps
Licensed under the MIT license.
FAQs
Unknown package
We found that jvectormap-rails demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.