@dimension-studios/shop-browser 1.148.1 → 1.149.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ //#region src/shared/tiktok-url.d.ts
2
+ declare const DIMENSION_SHOP_URL_PARAM = "dimension_shop";
3
+ declare function parseDimensionShopId(url: string): string | null;
4
+ declare function stripDimensionShopParam(url: string): string;
5
+ declare function appendDimensionShopParam(url: string, shopId: string): string;
6
+ //#endregion
7
+ export { DIMENSION_SHOP_URL_PARAM, appendDimensionShopParam, parseDimensionShopId, stripDimensionShopParam };
@@ -0,0 +1 @@
1
+ const e=`dimension_shop`;function t(t){try{return new URL(t).searchParams.get(e)}catch{return null}}function n(t){try{let n=new URL(t);if(!n.searchParams.has(`dimension_shop`))return t;n.searchParams.delete(e);let r=n.searchParams.toString();return`${n.origin}${n.pathname}${r?`?${r}`:``}${n.hash}`}catch{return t}}function r(t,n){let r=new URL(t);return r.searchParams.set(e,n),r.toString()}export{e as DIMENSION_SHOP_URL_PARAM,r as appendDimensionShopParam,t as parseDimensionShopId,n as stripDimensionShopParam};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimension-studios/shop-browser",
3
- "version": "1.148.1",
3
+ "version": "1.149.0",
4
4
  "description": "Open TikTok shop pages in Chromium using TTK proxy cookies",
5
5
  "keywords": [
6
6
  "tiktok",
@@ -33,6 +33,10 @@
33
33
  ".": {
34
34
  "types": "./dist/index.d.mts",
35
35
  "import": "./dist/index.mjs"
36
+ },
37
+ "./tiktok-url": {
38
+ "types": "./dist/shared/tiktok-url.d.mts",
39
+ "import": "./dist/shared/tiktok-url.mjs"
36
40
  }
37
41
  },
38
42
  "scripts": {
@@ -48,7 +52,7 @@
48
52
  "prepublishOnly": "npm run build:cli"
49
53
  },
50
54
  "dependencies": {
51
- "@inquirer/prompts": "8.5.0",
55
+ "@inquirer/prompts": "8.5.1",
52
56
  "@rharkor/logger": "1.3.3",
53
57
  "commander": "15.0.0",
54
58
  "conf": "15.1.0",