From 9450d42d15022999ad2fa60a8b91f01fc92a0563 Mon Sep 17 00:00:00 2001 From: Salman Chishti Date: Mon, 10 Mar 2025 04:24:44 -0700 Subject: [PATCH] mask --- dist/restore-only/index.js | 2 +- dist/restore/index.js | 2 +- dist/save-only/index.js | 2 +- dist/save/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index cca31f6..c4587a8 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -8872,7 +8872,7 @@ class CacheServiceClient { maskSigUrl(url, urlType) { const sigIndex = url.indexOf('sig='); if (sigIndex !== -1) { - const sigValue = url.substring(sigIndex + 4).split('&')[0]; + const sigValue = url.substring(sigIndex + 4); (0, core_1.setSecret)(sigValue); const maskedUrl = `${url.substring(0, sigIndex + 4)}***`; (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`); diff --git a/dist/restore/index.js b/dist/restore/index.js index 9fa426e..7b9299b 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -8872,7 +8872,7 @@ class CacheServiceClient { maskSigUrl(url, urlType) { const sigIndex = url.indexOf('sig='); if (sigIndex !== -1) { - const sigValue = url.substring(sigIndex + 4).split('&')[0]; + const sigValue = url.substring(sigIndex + 4); (0, core_1.setSecret)(sigValue); const maskedUrl = `${url.substring(0, sigIndex + 4)}***`; (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`); diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 165347c..2d4668d 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -8872,7 +8872,7 @@ class CacheServiceClient { maskSigUrl(url, urlType) { const sigIndex = url.indexOf('sig='); if (sigIndex !== -1) { - const sigValue = url.substring(sigIndex + 4).split('&')[0]; + const sigValue = url.substring(sigIndex + 4); (0, core_1.setSecret)(sigValue); const maskedUrl = `${url.substring(0, sigIndex + 4)}***`; (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`); diff --git a/dist/save/index.js b/dist/save/index.js index 91b13b8..87f699f 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -8872,7 +8872,7 @@ class CacheServiceClient { maskSigUrl(url, urlType) { const sigIndex = url.indexOf('sig='); if (sigIndex !== -1) { - const sigValue = url.substring(sigIndex + 4).split('&')[0]; + const sigValue = url.substring(sigIndex + 4); (0, core_1.setSecret)(sigValue); const maskedUrl = `${url.substring(0, sigIndex + 4)}***`; (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);