@atlaskit/media-client 35.3.3 → 35.3.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/media-client
2
2
 
3
+ ## 35.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2afa974d4668f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2afa974d4668f) -
8
+ Fixed path based URLs in SSR not including media-api prefix
9
+
3
10
  ## 35.3.3
4
11
 
5
12
  ### Patch Changes
@@ -21,7 +21,7 @@ function mapToPathBasedUrl(url) {
21
21
 
22
22
  // in this case we are most likely in SSR / a non browser environment so just return a relative URL
23
23
  if (!location) {
24
- return getRelativeUrl(url);
24
+ return getRelativeUrl(parsedUrl.toString());
25
25
  }
26
26
  parsedUrl.host = location.host;
27
27
  return parsedUrl.toString();
@@ -13,7 +13,7 @@ export function mapToPathBasedUrl(url) {
13
13
 
14
14
  // in this case we are most likely in SSR / a non browser environment so just return a relative URL
15
15
  if (!location) {
16
- return getRelativeUrl(url);
16
+ return getRelativeUrl(parsedUrl.toString());
17
17
  }
18
18
  parsedUrl.host = location.host;
19
19
  return parsedUrl.toString();
@@ -13,7 +13,7 @@ export function mapToPathBasedUrl(url) {
13
13
 
14
14
  // in this case we are most likely in SSR / a non browser environment so just return a relative URL
15
15
  if (!location) {
16
- return getRelativeUrl(url);
16
+ return getRelativeUrl(parsedUrl.toString());
17
17
  }
18
18
  parsedUrl.host = location.host;
19
19
  return parsedUrl.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "35.3.3",
3
+ "version": "35.3.4",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"