Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cxa-track

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cxa-track - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

4

lib/tracking.js

@@ -8,3 +8,3 @@ import {

export const trackedDomains = [
'azure.com',
'portal.azure.com',
'microsoft.com',

@@ -92,3 +92,3 @@ 'msdn.com',

return text
? text.replace(urlRegex, (url) =>
? text.replaceAll(urlRegex, (url) =>
isTrackedDomain(url)

@@ -95,0 +95,0 @@ ? updateTrackedUrl(url, trackingCode, locale, extraParams)

@@ -6,6 +6,6 @@ export const containsOnlyAlphanumeric = (string) => /^\w+$/.test(string);

export const removeLocaleFromUrl = (url) =>
url.replace(/microsoft.com\/\w{2}-\w{2}\//g, 'microsoft.com/');
url.replaceAll(/microsoft.com\/\w{2}-\w{2}\//g, 'microsoft.com/');
export const addLocaleToUrl = (url, locale) =>
locale ? url.replace(/microsoft.com\//g, `microsoft.com/${locale}/`) : url;
locale ? url.replaceAll(/microsoft.com\//g, `microsoft.com/${locale}/`) : url;

@@ -12,0 +12,0 @@ export const parseQueryParams = (queryString) =>

{
"name": "cxa-track",
"version": "2.2.0",
"version": "3.0.0",
"description": "Convenient CLI to quickly update CxA tracked links",

@@ -49,3 +49,3 @@ "type": "module",

"clipboardy": "^3.0.0",
"conf": "^10.2.0",
"conf": "^11.0.2",
"gray-matter": "^4.0.2",

@@ -59,9 +59,9 @@ "minimist": "^1.2.5",

"jest": "^29.1.2",
"lint-staged": "^13.0.3",
"semantic-release": "^19.0.3",
"semantic-release-npm-github": "^3.0.0",
"xo": "^0.52.3"
"lint-staged": "^14.0.1",
"semantic-release": "^21.1.1",
"semantic-release-npm-github": "^5.0.0",
"xo": "~0.55.1"
},
"engines": {
"node": ">=14.0.0"
"node": ">=16.14.0"
},

@@ -68,0 +68,0 @@ "prettier": {

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