ui5-test-runner 5.11.0 → 5.11.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ui5.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui5-test-runner",
3
- "version": "5.11.0",
3
+ "version": "5.11.1",
4
4
  "description": "Standalone test runner for UI5",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/ui5.js CHANGED
@@ -18,7 +18,7 @@ const buildCacheBase = job => {
18
18
 
19
19
  const ui5mappings = job => {
20
20
  const cacheBase = buildCacheBase(job)
21
- const match = /\/((?:test-)?resources\/.*)/
21
+ const match = /\/((?:test-)?resources\/.*)/ // Captured value never starts with /
22
22
  const ifCacheEnabled = (request, url, match) => job.cache
23
23
  const uncachable = {}
24
24
  const cachingInProgress = {}
@@ -80,7 +80,7 @@ const ui5mappings = job => {
80
80
  // UI5 from url
81
81
  method: ['GET', 'HEAD'],
82
82
  match,
83
- url: `${job.ui5}/$1`,
83
+ url: new URL('$1', job.ui5).toString(),
84
84
  'ignore-unverifiable-certificate': true
85
85
  }]
86
86