@open3cl/engine 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/utils.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open3cl/engine",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Open Source 3CL-DPE engine",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "dioma": "^0.4.6",
45
45
  "fast-xml-parser": "^4.5.0",
46
- "lodash-es": "^4.17.21",
46
+ "lodash-es": "4.17.21",
47
47
  "winston": "3.13.0"
48
48
  },
49
49
  "devDependencies": {
@@ -70,7 +70,7 @@
70
70
  "pretty-quick": "^4.0.0",
71
71
  "semantic-release": "^23.0.6",
72
72
  "vitest": "3.0.6",
73
- "xlsx": "^0.18.5"
73
+ "xlsx": "0.18.5"
74
74
  },
75
75
  "author": "Open3Cl",
76
76
  "license": "GPL-3.0",
package/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import enums from './enums.js';
2
2
  import tvs from './tv.js';
3
- import _ from 'lodash';
3
+ import { set, has } from 'lodash-es';
4
4
 
5
5
  export let bug_for_bug_compat = false;
6
6
  export function set_bug_for_bug_compat() {
@@ -299,7 +299,7 @@ export function useEnumAsString(jsonObj) {
299
299
  export function clean_dpe(dpe_in) {
300
300
  // skip generateur_[ecs|chauffage] because some input data is contained in donnee_intermediaire (e.g. pn, qp0, ...)
301
301
  removeKeyFromJSON(dpe_in, 'donnee_intermediaire', ['generateur_ecs', 'generateur_chauffage']);
302
- _.set(dpe_in, 'logement.sortie', null);
302
+ set(dpe_in, 'logement.sortie', null);
303
303
  }
304
304
 
305
305
  export function sanitize_dpe(dpe_in) {
@@ -313,8 +313,8 @@ export function sanitize_dpe(dpe_in) {
313
313
  'logement.enveloppe.pont_thermique_collection.pont_thermique'
314
314
  ];
315
315
  for (const path of collection_paths) {
316
- if (!_.has(dpe_in, path)) {
317
- _.set(dpe_in, path, []);
316
+ if (!has(dpe_in, path)) {
317
+ set(dpe_in, path, []);
318
318
  }
319
319
  }
320
320
  if (use_enum_as_string) {