@sap/ux-ui5-tooling 1.5.4 → 1.5.5

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
@@ -2,6 +2,10 @@
2
2
  All notable changes to this project are documented in this file.
3
3
 
4
4
  This project adheres to [Semantic Versioning](http://semver.org/) and the changelog is formatted based on [Keep a Changelog](http://keepachangelog.com/).
5
+ ## [1.5.5] - 2022-04-21
6
+ ### Fixed
7
+ - Fixed an issue with the `fiori-tools-servestatic` middleware not serving files starting with a dot
8
+
5
9
  ## [1.5.4] - 2022-04-07
6
10
  ### Fixed
7
11
  - Fixed an issue with escaping runtime arguments on Windows with Node.js version 16
package/README.md CHANGED
@@ -245,9 +245,10 @@ server:
245
245
  src: "Path/To/libs"
246
246
  ```
247
247
 
248
- ### Configuration options
248
+ ### [Configuration options](#configuration-options-1)
249
+ Additionaly you can specify any of the configuration options (excluding `setHeaders`!) of the [serve-static](https://www.npmjs.com/package/serve-static) middleware.
249
250
 
250
- - **`fallthrough`** (default: true) - client errors fall-through as just unhandled requests, otherwise forward a client error. E.g. If set to true, then the `fiori-tools-servestatic` middleware will not return 404 error, when it can't find a file on the local system, but it will simply pass the request to the next available middleware. Otherwise 404 error will be returned.
251
+ E.g. you can set `fallthrough: false`, which will cause the middleware to return 404 error, when it can't find a file on the local system:
251
252
 
252
253
  ```
253
254
  server:
@@ -256,9 +257,27 @@ server:
256
257
  afterMiddleware: compression
257
258
  configuration:
258
259
  paths:
259
- - path: /libs
260
- src: "Path/To/libs"
260
+ - path: /resources
261
+ src: "Path/To/SAPUI5-SDK"
262
+ - path: /test-resources
263
+ src: "Path/To/SAPUI5-SDK"
264
+ fallthrough: false
265
+ ```
266
+
267
+ Alternatively you can set e.g. `fallthrough: false` only for specific requests:
268
+
269
+ ```
270
+ server:
271
+ customMiddleware:
272
+ - name: fiori-tools-servestatic
273
+ afterMiddleware: compression
274
+ configuration:
275
+ paths:
276
+ - path: /resources
277
+ src: "Path/To/SAPUI5-SDK"
261
278
  fallthrough: false
279
+ - path: /test-resources
280
+ src: "Path/To/SAPUI5-SDK"
262
281
  ```
263
282
 
264
283
  ### [**4. Preview**](#4-preview)