From 72611130f9240e6d06251e60fb31417a9e1a99d8 Mon Sep 17 00:00:00 2001 From: Michael Tims Date: Wed, 13 Nov 2024 10:31:13 -0500 Subject: [PATCH] Removed Good Move EMC portal origins (#72) --- CHANGELOG.md | 3 ++ package-lock.json | 2 +- package.json | 2 +- src/addin/addin-client.spec.ts | 70 ++-------------------------------- src/addin/addin-client.ts | 65 +------------------------------ 5 files changed, 10 insertions(+), 132 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 986008e..34810d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.6.0 (2024-11-12) +- Removed Good Move EMC portal origins from the `allowedOrigins` array. + # 1.5.1 (2024-10-24) - Removed unused `helpKey` property from the `AddinBoxConfig` diff --git a/package-lock.json b/package-lock.json index 365ea6c..95da8e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@blackbaud/sky-addin-client", - "version": "1.5.1", + "version": "1.6.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 65fcf43..2b4ceec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blackbaud/sky-addin-client", - "version": "1.5.1", + "version": "1.6.0", "description": "SKY add-in client", "main": "dist/bundles/sky-addin-client.umd.js", "module": "index.ts", diff --git a/src/addin/addin-client.spec.ts b/src/addin/addin-client.spec.ts index 24aa974..20db058 100644 --- a/src/addin/addin-client.spec.ts +++ b/src/addin/addin-client.spec.ts @@ -79,7 +79,7 @@ describe('AddinClient ', () => { }); client.destroy(); - expect((client).allowedOrigins.length).toBe(81); + expect((client).allowedOrigins.length).toBe(18); }); it ('should initialize AddinClient with additional allowedOrigins', () => { @@ -97,7 +97,7 @@ describe('AddinClient ', () => { }); client.destroy(); - expect((client).allowedOrigins.length).toBe(84); + expect((client).allowedOrigins.length).toBe(21); }); it ('additional allowedOrigins - removing duplicates', () => { @@ -116,7 +116,7 @@ describe('AddinClient ', () => { }); client.destroy(); - expect((client).allowedOrigins.length).toBe(82); + expect((client).allowedOrigins.length).toBe(19); }); }); @@ -1886,69 +1886,7 @@ describe('AddinClient ', () => { 'https://my.test.myschooltraining.com', 'https://test_site.myschooltraining.com', 'https://test-site.myschooltraining.com', - 'https://view-my.test_site.myschooltraining.com', - 'https://give.blackbaudwp.com', - 'https://participate.carrytheload.org', - 'https://secure.ummsfoundation.org', - 'http://participate.lcrf.org', - 'https://secure.go2.org', - 'https://give.nationwidechildrens.org', - 'https://support.lupus.org', - 'https://secure.operationsmile.ca', - 'https://secure2.convio.net', - 'https://secure.ontariospca.ca', - 'https://events.brighamandwomens.org', - 'https://secure.northernlighthealth.org', - 'http://hjcnm.convio.net', - 'https://secure.alpha1.org', - 'https://fundraising.pscpartners.org', - 'https://hope.mercyforanimals.org', - 'https://secure.braintumor.org', - 'https://support.cancer.ca', - 'https://secure.phoenixchildrensfoundation.org', - 'https://secure.ocmc.org', - 'https://support.stlouischildrens.org', - 'https://give.choa.org', - 'https://secure.acsevents.org', - 'https://secure.operationsmile.org', - 'https://give.mdmercy.com', - 'https://foundation.cookchildrens.org', - 'https://secure1.chla.org', - 'https://secure.nleomf.org', - 'https://secure.pwatoronto.org', - 'https://support.jfsla.org', - 'https://give.roswellpark.org', - 'https://secure.alsagoldenwest.org', - 'https://events.cancercarefoundation.ca', - 'https://secure.alsnc.org', - 'https://secure.alsanm.org', - 'https://secure.waysidewaifs.org', - 'https://www.bladdercancercanada.org', - 'https://danafarber.jimmyfund.org', - 'https://secure.info-komen.org', - 'https://giving.mountsinai.org', - 'https://www.walkforpd.ca', - 'https://secure.alsoregon.org', - 'https://www.feedhopenow.org', - 'https://secure.trilliumgiving.ca', - 'https://www.swimacrossamerica.org', - 'https://ovariancanada.org', - 'https://secure.alsunitedchicago.org', - 'https://secure.fredhutch.org', - 'https://www.hss.edu', - 'https://donate.nyghfoundation.ca', - 'https://secure.natureconservancy.ca', - 'https://secure.llscanada.org', - 'https://secure.als-ny.org', - 'https://support.zerocancer.org', - 'https://secure.alsmidatlantic.org', - 'https://support.habitat.ca', - 'https://support.stamfordhospitalfoundation.org', - 'https://secure.alsohio.org', - 'https://support.cancercarefdn.mb.ca', - 'https://support.baycrestfoundation.org', - 'https://give.southlake.ca', - 'https://donate.parkinson.ca', + 'https://view-my.test_site.myschooltraining.com' ].forEach((url) => { it(`should not warn because ${url} is allowed.`, () => { diff --git a/src/addin/addin-client.ts b/src/addin/addin-client.ts index f80b39b..16f3c13 100644 --- a/src/addin/addin-client.ts +++ b/src/addin/addin-client.ts @@ -36,70 +36,7 @@ const allowedOrigins = [ /^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/, /^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/, /^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/, - /^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/, - /^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/, - /^https\:\/\/[\w\-\.]+\.carrytheload\.org$/, - /^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/, - /^http\:\/\/[\w\-\.]+\.lcrf\.org$/, - /^https\:\/\/[\w\-\.]+\.go2\.org$/, - /^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/, - /^https\:\/\/[\w\-\.]+\.lupus\.org$/, - /^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/, - /^https\:\/\/[\w\-\.]+\.convio\.net$/, - /^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/, - /^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/, - /^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/, - /^http\:\/\/[\w\-\.]+\.convio\.net$/, - /^https\:\/\/[\w\-\.]+\.alpha1\.org$/, - /^https\:\/\/[\w\-\.]+\.pscpartners\.org$/, - /^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/, - /^https\:\/\/[\w\-\.]+\.braintumor\.org$/, - /^https\:\/\/[\w\-\.]+\.cancer\.ca$/, - /^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/, - /^https\:\/\/[\w\-\.]+\.ocmc\.org$/, - /^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/, - /^https\:\/\/[\w\-\.]+\.choa\.org$/, - /^https\:\/\/[\w\-\.]+\.acsevents\.org$/, - /^https\:\/\/[\w\-\.]+\.operationsmile\.org$/, - /^https\:\/\/[\w\-\.]+\.mdmercy\.com$/, - /^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/, - /^https\:\/\/[\w\-\.]+\.chla\.org$/, - /^https\:\/\/[\w\-\.]+\.nleomf\.org$/, - /^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/, - /^https\:\/\/[\w\-\.]+\.jfsla\.org$/, - /^https\:\/\/[\w\-\.]+\.roswellpark\.org$/, - /^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/, - /^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/, - /^https\:\/\/[\w\-\.]+\.alsnc\.org$/, - /^https\:\/\/[\w\-\.]+\.alsanm\.org$/, - /^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/, - /^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/, - /^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/, - /^https\:\/\/[\w\-\.]+\.info\-komen\.org$/, - /^https\:\/\/[\w\-\.]+\.mountsinai\.org$/, - /^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/, - /^https\:\/\/[\w\-\.]+\.alsoregon\.org$/, - /^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/, - /^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/, - /^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/, - /^https\:\/\/ovariancanada\.org$/, - /^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/, - /^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/, - /^https\:\/\/[\w\-\.]+\.fredhutch\.org$/, - /^https\:\/\/[\w\-\.]+\.hss\.edu$/, - /^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/, - /^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/, - /^https\:\/\/[\w\-\.]+\.llscanada\.org$/, - /^https\:\/\/[\w\-\.]+\.als\-ny\.org$/, - /^https\:\/\/[\w\-\.]+\.zerocancer\.org$/, - /^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/, - /^https\:\/\/[\w\-\.]+\.habitat\.ca$/, - /^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/, - /^https\:\/\/[\w\-\.]+\.alsohio\.org$/, - /^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/, - /^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/, - /^https\:\/\/[\w\-\.]+\.southlake\.ca$/, - /^https\:\/\/[\w\-\.]+\.parkinson\.ca$/, + /^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/ ]; /**