@websolutespa/bom-mixer-store 1.8.10 → 1.8.11

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
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-store
2
2
 
3
+ ## 1.8.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: StoreHandler sorting api collections
8
+
3
9
  ## 1.8.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1995,6 +1995,7 @@ function storeIndexHandler() {
1995
1995
  console.error("apiHome.collectionGet", "collections not found", COLLECTIONS);
1996
1996
  return response.status(405).send("method not allowed");
1997
1997
  }
1998
+ COLLECTIONS.sort((a, b) => a.localeCompare(b));
1998
1999
  response.setHeader("Content-Type", "text/html; charset=UTF-8");
1999
2000
  response.setHeader("X-Frame-Options", "SAMEORIGIN");
2000
2001
  response.setHeader("X-Robots-Tag", "noindex, follow");
package/dist/index.mjs CHANGED
@@ -1890,6 +1890,7 @@ function storeIndexHandler() {
1890
1890
  console.error("apiHome.collectionGet", "collections not found", COLLECTIONS);
1891
1891
  return response.status(405).send("method not allowed");
1892
1892
  }
1893
+ COLLECTIONS.sort((a, b) => a.localeCompare(b));
1893
1894
  response.setHeader("Content-Type", "text/html; charset=UTF-8");
1894
1895
  response.setHeader("X-Frame-Options", "SAMEORIGIN");
1895
1896
  response.setHeader("X-Robots-Tag", "noindex, follow");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-store",
3
- "version": "1.8.10",
3
+ "version": "1.8.11",
4
4
  "description": "Mixer Store module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -257,6 +257,7 @@ export function storeIndexHandler() {
257
257
  console.error('apiHome.collectionGet', 'collections not found', COLLECTIONS);
258
258
  return response.status(405).send('method not allowed');
259
259
  }
260
+ COLLECTIONS.sort((a, b) => a.localeCompare(b));
260
261
  response.setHeader('Content-Type', 'text/html; charset=UTF-8');
261
262
  response.setHeader('X-Frame-Options', 'SAMEORIGIN');
262
263
  response.setHeader('X-Robots-Tag', 'noindex, follow');