Comparing version 2.2.0 to 3.0.0
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17541
+ Addedatomically@2.0.3(transitive)
+ Addedconf@11.0.2(transitive)
+ Addeddebounce-fn@5.1.2(transitive)
+ Addeddot-prop@7.2.0(transitive)
+ Addedenv-paths@3.0.0(transitive)
+ Addedjson-schema-typed@8.0.1(transitive)
+ Addedmimic-fn@4.0.0(transitive)
+ Addedstubborn-fs@1.2.5(transitive)
+ Addedwhen-exit@2.1.3(transitive)
- Removedatomically@1.7.0(transitive)
- Removedconf@10.2.0(transitive)
- Removeddebounce-fn@4.0.0(transitive)
- Removedenv-paths@2.2.1(transitive)
- Removedfind-up@3.0.0(transitive)
- Removedjson-schema-typed@7.0.3(transitive)
- Removedlocate-path@3.0.0(transitive)
- Removedmimic-fn@3.1.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@3.0.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedpkg-up@3.1.0(transitive)
Updatedconf@^11.0.2