nextemos 5.2.6 → 5.2.8

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.
@@ -52,5 +52,7 @@ catch (error) {
52
52
  }
53
53
  // Merge with default config to ensure all required fields exist
54
54
  const NEXTEMOS_CONFIG = Object.assign(Object.assign({}, exports.defaultConfig), loadedConfig);
55
- NEXTEMOS_CONFIG.KEYCLOAK.CLIENT_SECRET = process.env.KEYCLOAK_CLIENT_SECRET;
55
+ if (process.env.KEYCLOAK_CLIENT_SECRET) {
56
+ NEXTEMOS_CONFIG.KEYCLOAK.CLIENT_SECRET = process.env.KEYCLOAK_CLIENT_SECRET;
57
+ }
56
58
  exports.default = NEXTEMOS_CONFIG;
@@ -19,7 +19,7 @@ export interface IProductTypeResponse extends IResponse {
19
19
  productType: IProductType;
20
20
  }
21
21
  export interface IProductTypeListResponse extends IResponsePaging {
22
- productType: IProductType[];
22
+ productTypes: IProductType[];
23
23
  }
24
24
  export interface ISearchProductsResponse extends IResponsePaging {
25
25
  products: IProduct[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.2.6",
3
+ "version": "5.2.8",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",