New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@acanto/components-locale-switch

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acanto/components-locale-switch - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

11

index.js

@@ -12,3 +12,3 @@ import { $, $$, forEach, getDataAttr, listen } from "@acanto/core-dom";

*/
forEach($$("[data-locale]", $root), $link => {
forEach($$("[data-locale]", $root), ($link) => {
const locale = getDataAttr($link, "locale");

@@ -18,7 +18,7 @@ domMap[locale] = $link;

listen("click", ".LocaleSwitch:item", event => {
listen("click", ".LocaleSwitch:item", (event) => {
const $link = event.target;
event.preventDefault();
$root.classList.add("is-loading");

@@ -42,3 +42,2 @@

/**

@@ -53,4 +52,4 @@ * On route change update the localised links with the fresh data embedded

return {
onRouteChange
}
onRouteChange,
};
}
{
"name": "@acanto/components-locale-switch",
"version": "0.0.6",
"version": "0.0.7",
"author": "Acanto <info@acanto.net> (https://acanto.agency/)",

@@ -17,3 +17,3 @@ "license": "ISC",

},
"gitHead": "561c0e0b0808f291fc6af2e97592e2f2adcf72cd"
"gitHead": "bb1a3f6305bd9eceb8fb6dd07afab8c873a06cdf"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc