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

globalseo

Package Overview
Dependencies
Maintainers
0
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

globalseo - npm Package Compare versions

Comparing version 2.2.12 to 2.2.13

20

extractOptionsFromScript.js

@@ -84,3 +84,12 @@ const { isBrowser, BRAND } = require("./utils/configs");

const customLinksAttribute = window.translationScriptTag.getAttribute(DATA_CUSTOM_LINKS);
const DATA_ACTIVE_SUBDOMAIN = "data-active-subdomain"; // default: undefined
const activeSubdomain = window.translationScriptTag.getAttribute(DATA_ACTIVE_SUBDOMAIN);
// prevent initial translation for subdomain (but allow translation on dynamic content)
if (activeSubdomain) {
window.preventInitialTranslation = true;
window.activeSubdomain = activeSubdomain;
}
const customLinksAttribute = window.translationScriptTag.getAttribute(`${DATA_CUSTOM_LINKS}-${activeSubdomain}`);
let customLinks = {};

@@ -100,11 +109,2 @@ try {

const DATA_ACTIVE_SUBDOMAIN = "data-active-subdomain"; // default: undefined
const activeSubdomain = window.translationScriptTag.getAttribute(DATA_ACTIVE_SUBDOMAIN);
// prevent initial translation for subdomain (but allow translation on dynamic content)
if (activeSubdomain) {
window.preventInitialTranslation = true;
window.activeSubdomain = activeSubdomain;
}
// FEATURE: Prevent Google Translate from translating the page

@@ -111,0 +111,0 @@ // Set the 'translate' attribute of the HTML tag to 'no'

{
"name": "globalseo",
"version": "2.2.12",
"version": "2.2.13",
"description": "Translate your React.js or Next.js app with AI",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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