@blocklet/launcher-workflow 2.1.11 → 2.1.12

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.
@@ -41,7 +41,11 @@ function RequestProvider(_ref) {
41
41
  if (!config.params) {
42
42
  config.params = {};
43
43
  }
44
- config.params.locale = locale;
44
+ // Check if `locale` doesn't exist in search params before adding it
45
+ const searchParams = new URLSearchParams(config.url.split('?')[1]);
46
+ if (!searchParams.has('locale')) {
47
+ config.params.locale = locale;
48
+ }
45
49
  return config;
46
50
  });
47
51
  r.interceptors.response.use(response => response, err => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,9 +40,9 @@
40
40
  "@arcblock/license": "^2.5.48",
41
41
  "@arcblock/react-hooks": "^2.5.48",
42
42
  "@arcblock/ux": "^2.5.48",
43
- "@blocklet/launcher-layout": "2.1.11",
44
- "@blocklet/launcher-util": "2.1.11",
45
- "@blocklet/launcher-ux": "2.1.11",
43
+ "@blocklet/launcher-layout": "2.1.12",
44
+ "@blocklet/launcher-util": "2.1.12",
45
+ "@blocklet/launcher-ux": "2.1.12",
46
46
  "@blocklet/payment": "^1.12.5",
47
47
  "@emotion/react": "^11.11.0",
48
48
  "@emotion/styled": "^11.11.0",
@@ -75,5 +75,5 @@
75
75
  "babel-plugin-inline-react-svg": "^2.0.2",
76
76
  "jest": "^27.5.1"
77
77
  },
78
- "gitHead": "b32e1b825bac230d8d01499e5660d265c778c03c"
78
+ "gitHead": "26338a1cf25f5ec2082d4dfd0aa8247516520e7c"
79
79
  }