@apolitical/server 2.3.1-beta.1 → 2.3.3-rc.test.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.3.3] - 2022-02-21
9
+ ### Changed
10
+ - maging sure index.html is not considered as a static asset by the middleware loader
11
+
12
+ ## [2.3.2] - 2022-02-21
13
+ ### Changed
14
+ - loading static files middleware after the app has been loaded
15
+
8
16
  ## [2.3.1] - 2022-02-15
9
17
  ### Changed
10
18
  - Body parser types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/server",
3
- "version": "2.3.1-beta.1",
3
+ "version": "2.3.3-rc.test.1",
4
4
  "description": "Node.js module to encapsulate Apolitical's express server setup",
5
5
  "author": "Apolitical Group Limited <engineering@apolitical.co>",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@ module.exports = ({
29
29
  }
30
30
  if (staticFiles) {
31
31
  const { baseUrl, folderPath } = staticFiles;
32
- app.use(baseUrl, express.static(folderPath));
32
+ app.use(baseUrl, express.static(folderPath, { index: false }));
33
33
  }
34
34
  childLogger.debug('Finished');
35
35
  };