@myxtra/microservice 1.18.0-alpha.0 → 1.19.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -9957,9 +9957,9 @@ import "@myxtra/api";
9957
9957
  import config from "config";
9958
9958
  import "fastify";
9959
9959
  var createApi = (Api, request) => {
9960
- const acceptLanguage = request.headers["accept-language"];
9960
+ let acceptLanguage = request.headers["accept-language"];
9961
9961
  if (!acceptLanguage) {
9962
- throw new Error("'accept-language' header is missing");
9962
+ acceptLanguage = "nl-BE";
9963
9963
  }
9964
9964
  const authorization = request.headers.authorization ?? "";
9965
9965
  return new Api({ acceptLanguage, authorization, config });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myxtra/microservice",
3
- "version": "1.18.0-alpha.0",
3
+ "version": "1.19.0",
4
4
  "main": "./dist/index.mjs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -20,7 +20,7 @@
20
20
  "typecheck": "tsc --noEmit"
21
21
  },
22
22
  "dependencies": {
23
- "@myxtra/api": "1.18.0-alpha.0"
23
+ "@myxtra/api": "1.18.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@myxtra/eslint-config": "1.20.0",