@backstage/core-app-api 1.0.3-next.0 → 1.0.3

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,14 @@
1
1
  # @backstage/core-app-api
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
8
+ - 19781483a2: Handle URLs as the first argument to `fetchApi`, when using the `plugin:` protocol
9
+ - Updated dependencies
10
+ - @backstage/core-plugin-api@1.0.3
11
+
3
12
  ## 1.0.3-next.0
4
13
 
5
14
  ### Patch Changes
package/dist/index.esm.js CHANGED
@@ -1401,10 +1401,13 @@ class PluginProtocolResolverFetchMiddleware {
1401
1401
  base = `${baseUrl.protocol}//${authority}${baseUrl.host}${baseUrl.pathname}`;
1402
1402
  }
1403
1403
  const target = `${join(base, pathname)}${search}${hash}`;
1404
- return next(target, typeof input === "string" ? init : input);
1404
+ return next(target, typeof input === "string" || isUrl(input) ? init : input);
1405
1405
  };
1406
1406
  }
1407
1407
  }
1408
+ function isUrl(a) {
1409
+ return typeof a === "object" && (a == null ? void 0 : a.constructor) === URL;
1410
+ }
1408
1411
 
1409
1412
  class FetchMiddlewares {
1410
1413
  static resolvePluginProtocol(options) {