Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
alianza-elements
Advanced tools
Shared UI elements for the alianza-ceibo maps
npm install alianza-elements --save
var elements = require('alianza-elements')
style.css
Get some basic global styles for alianza maps.
var css = require('sheetify')
css('alianza-elements/style.css')
backButton([lang], onclick)
A button that returns to the full map view. Will be visible above the stop
zoom. lang
defaults to es
.
var button = elements.backButton(map, {lang: 'es', stop: 11.93}, function () {
map.fitBounds(...)
})
Updating button language uses the update
function
button.language = 'en'
button.update()
Popup(map)
A base popup that uses yo
under the hood. update
takes an HTML element and updates the dom for the popup.
var popup = elements.Popup(map)
popup.update(HTMLElement)
popup.setLngLat(lngLat)
popup.remove()
Language(updateLang, lang)
updateLang
: a function that fires when button clicked, with the chosen language as a parameter.lang
: the current language (es
or en
).var languageControl = elements.language(updateLang, lang)
document.body.appendChild(languageControl)
FAQs
Shared UI elements for the alianza-ceibo maps
The npm package alianza-elements receives a total of 1 weekly downloads. As such, alianza-elements popularity was classified as not popular.
We found that alianza-elements 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.