@skriptfabrik/elements-cli 0.5.11 → 0.5.13
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/.github/CODEOWNERS +9 -0
- package/.github/dependabot.yaml +0 -6
- package/Dockerfile +1 -1
- package/elements-cli.mjs +6 -6
- package/package.json +1 -1
package/.github/dependabot.yaml
CHANGED
|
@@ -11,8 +11,6 @@ registries:
|
|
|
11
11
|
updates:
|
|
12
12
|
- package-ecosystem: 'docker'
|
|
13
13
|
directory: '/'
|
|
14
|
-
reviewers:
|
|
15
|
-
- 'skriptfabrik/docker-maintainers'
|
|
16
14
|
registries:
|
|
17
15
|
- 'dockerhub'
|
|
18
16
|
schedule:
|
|
@@ -20,14 +18,10 @@ updates:
|
|
|
20
18
|
|
|
21
19
|
- package-ecosystem: 'github-actions'
|
|
22
20
|
directory: '/'
|
|
23
|
-
reviewers:
|
|
24
|
-
- 'skriptfabrik/github-actions-maintainers'
|
|
25
21
|
schedule:
|
|
26
22
|
interval: 'weekly'
|
|
27
23
|
|
|
28
24
|
- package-ecosystem: 'npm'
|
|
29
25
|
directory: '/'
|
|
30
|
-
reviewers:
|
|
31
|
-
- 'skriptfabrik/npm-maintainers'
|
|
32
26
|
schedule:
|
|
33
27
|
interval: 'weekly'
|
package/Dockerfile
CHANGED
package/elements-cli.mjs
CHANGED
|
@@ -335,20 +335,20 @@ if (argv['with-cors-proxy'] && !argv['no-try-it']) {
|
|
|
335
335
|
removeHeaders: [], // Do not remove any headers
|
|
336
336
|
});
|
|
337
337
|
|
|
338
|
-
app.all(sanitize(`/${argv[
|
|
339
|
-
const pos = req.originalUrl.indexOf(
|
|
340
|
-
const queryString = pos === -1 ?
|
|
338
|
+
app.all(sanitize(`/${argv["base-path"]}/_/*basePath`), (req, res) => {
|
|
339
|
+
const pos = req.originalUrl.indexOf("?");
|
|
340
|
+
const queryString = pos === -1 ? "" : req.originalUrl.substring(pos);
|
|
341
341
|
|
|
342
|
-
req.url = `/${req.params[
|
|
342
|
+
req.url = `/${req.params["0"]}${queryString}`;
|
|
343
343
|
|
|
344
|
-
proxy.emit(
|
|
344
|
+
proxy.emit("request", req, res);
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
// Render and serve index template
|
|
349
349
|
|
|
350
350
|
app.get(
|
|
351
|
-
[sanitize(`/${argv['base-path']}`, '*'), sanitize(`/${argv['base-path']}`)],
|
|
351
|
+
[sanitize(`/${argv['base-path']}`, '*basePath'), sanitize(`/${argv['base-path']}`)],
|
|
352
352
|
(req, res) => {
|
|
353
353
|
let tryItCorsProxy;
|
|
354
354
|
|