
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@mapbox/osm-compare
Advanced tools
Compare functions are small atomic functions that are designed identify what changed during a feature edit on OpenStreetMap. Compare functions can be broadly split up into two categories:
Compare functions take as inputs the following:
oldVersion - GeoJSON of the feature's old versionnewVersion - GeoJSON of the feature's new versionCompare functions output the following:
result - Object containing key value pairs representing findings of the compare function or an empty object.# Format of compare function result where value can be primary data types or objects
{
'result:comparator_name': value,
'message': Any custom message which corresponds to the catch
}
# Format of compare function if no result, (default)
false
# Install osm-compare from the Mapbox namespace.
npm install @mapbox/osm-compare
npm version [major|minor|patch].git push --tagsnpm publish[9.4.1] - 2021-05-16
FAQs
Compare a features new and old versions in GeoJSON
We found that @mapbox/osm-compare demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.