@open3cl/engine 1.5.1 → 1.5.2

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/engine.js +8 -3
  2. package/package.json +1 -1
package/engine.js CHANGED
@@ -31,7 +31,7 @@ import getFicheTechnique from './ficheTechnique.js';
31
31
  import { ProductionENR } from './16.2_production_enr.js';
32
32
  import DpeSanitizerService from './dpe-sanitizer.service.js';
33
33
 
34
- const LIB_VERSION = '1.5.1';
34
+ const LIB_VERSION = '1.5.2';
35
35
 
36
36
  const dpeSanitizerService = new DpeSanitizerService();
37
37
 
@@ -673,10 +673,15 @@ export function get_classe_ges_dpe(dpe) {
673
673
  * {@link https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000054747079}
674
674
  *
675
675
  * @param dpe {FullDpe}
676
- * @returns {{ep_conso_5_usages: number; ep_conso_5_usages_m2: number; classe_bilan_dpe: string}}
676
+ * @returns {{ep_conso_5_usages_2027: number; ep_conso_5_usages_m2_2027: number; classe_bilan_dpe_2027: string}}
677
677
  */
678
678
  export function get_conso_coeff_1_7_2027(dpe) {
679
- return get_conso_with_coeff(dpe, 0.7 / 0.9);
679
+ const coeff = get_conso_with_coeff(dpe, 0.7 / 0.9);
680
+ return {
681
+ classe_bilan_dpe_2027: coeff.classe_bilan_dpe,
682
+ ep_conso_5_usages_m2_2027: coeff.ep_conso_5_usages_m2,
683
+ ep_conso_5_usages_2027: coeff.ep_conso_5_usages
684
+ };
680
685
  }
681
686
 
682
687
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open3cl/engine",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Open Source 3CL-DPE engine",
5
5
  "main": "index.js",
6
6
  "directories": {