@skriptfabrik/elements-cli 0.5.11 → 0.5.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.
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:22.11.0-alpine
1
+ FROM node:23.11.0-alpine
2
2
 
3
3
  LABEL maintainer="Daniel Schröder <daniel.schroeder@skriptfabrik.com>"
4
4
 
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['base-path']}/_/*`), (req, res) => {
339
- const pos = req.originalUrl.indexOf('?');
340
- const queryString = pos === -1 ? '' : req.originalUrl.substring(pos);
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['0']}${queryString}`;
342
+ req.url = `/${req.params["0"]}${queryString}`;
343
343
 
344
- proxy.emit('request', req, res);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skriptfabrik/elements-cli",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "The missing CLI for beautiful, interactive API docs powered by with Stoplight Elements",
5
5
  "keywords": [
6
6
  "stoplight",