diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad5781d..62fa891 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,5 +15,8 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Publish package + - name: Publish package to npmjs.com + run: npm publish + + - name: Publish package to jsr.io run: npx jsr publish diff --git a/jsr.json b/jsr.json index b1e5437..c27ba80 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@layered/superurl", - "version": "1.2.5", + "version": "1.2.6", "exports": "./src/index.ts" } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 800edf8..9059018 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@layered/superurl", - "version": "1.2.5", + "version": "1.2.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@layered/superurl", - "version": "1.2.5", + "version": "1.2.6", "license": "ISC", "dependencies": { "tldts": "^6.0.2" diff --git a/package.json b/package.json index f64c2f6..b1d1b22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@layered/superurl", - "version": "1.2.5", + "version": "1.2.6", "description": "URL helpers: validate, sanitize & extract info", "type": "module", "keywords": [ diff --git a/src/index.ts b/src/index.ts index ca63ff8..c0df8bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,7 @@ const trackingParams: string[] = [ '__snid3__', 'adgroupid', 'ceid', + 'cmdf', 'EXP', 'fbclid', // from Meta 'fp_sid', @@ -44,19 +45,26 @@ const trackingParams: string[] = [ 'referring_guid', 'ref_', 'fref', - 'pnref', - 'pq-origsite', - 'sourcetype', 'link_ref', + 'nd', // from Spotify 'origin', 'originalSubdomain', // from LinkedIn 'original_referer', + 'pnref', + 'pq-origsite', + 'ppid', + 'pp', + 'pli', 'share_app_id', 'share_author_id', 'share_link_id', 'share_id', // from Snapchat 'share_from', + 'si', // from Spotify/YouTube 'sid', // from Snapchat + 'source', + 'sourcetype', + 'src', 'utm_campaign', 'utm_content', 'utm_medium', @@ -67,15 +75,8 @@ const trackingParams: string[] = [ 'utm_unptid', 'unptid', 'ucbcb', - 'ppid', - 'pp', - 'pli', - 'source', - 'src', 'usp', 'trk', - 'si', // from Spotify/YouTube - 'nd', // from Spotify 'via', ] const domainParams: {[key: string]: string[]} = {