@enerlence/suntropy-cli 0.1.3 → 0.1.4
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/dist/bin/suntropy.js +3 -3
- package/dist/bin/suntropy.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/suntropy.js
CHANGED
|
@@ -1986,7 +1986,7 @@ Example: suntropy studies set data --file study.json --data '{"referenceId":"REF
|
|
|
1986
1986
|
outputError(new Error("No energy prices. Use: studies set prices"));
|
|
1987
1987
|
return;
|
|
1988
1988
|
}
|
|
1989
|
-
const { PowerCurve } = await import("energy-types/lib/energy/classes/powerCurve.class");
|
|
1989
|
+
const { PowerCurve } = await import("energy-types/lib/energy/classes/powerCurve.class.js");
|
|
1990
1990
|
const consCurve = new PowerCurve(consumption.days, false, consumption.identifier || "consumption", false);
|
|
1991
1991
|
let totalProdCurve = null;
|
|
1992
1992
|
for (const surf of surfaces) {
|
|
@@ -2428,7 +2428,7 @@ function registerStudiesCommands(program2) {
|
|
|
2428
2428
|
outputError(new Error(`Curve "${curveName}" not found or empty in this study.`));
|
|
2429
2429
|
return;
|
|
2430
2430
|
}
|
|
2431
|
-
const { PowerCurve } = await import("energy-types/lib/energy/classes/powerCurve.class");
|
|
2431
|
+
const { PowerCurve } = await import("energy-types/lib/energy/classes/powerCurve.class.js");
|
|
2432
2432
|
const cd = curveData;
|
|
2433
2433
|
const pc = new PowerCurve(cd.days || cd, cd.ignore0 ?? false, cd.identifier || curveName, cd.parseDate ?? false);
|
|
2434
2434
|
const showRaw = opts.raw;
|
|
@@ -2522,7 +2522,7 @@ async function readCurveInput(inputPath) {
|
|
|
2522
2522
|
return JSON.parse(raw);
|
|
2523
2523
|
}
|
|
2524
2524
|
async function buildCurve(data, identifier = "curve") {
|
|
2525
|
-
const { PowerCurve } = await import("energy-types/lib/energy/classes/powerCurve.class");
|
|
2525
|
+
const { PowerCurve } = await import("energy-types/lib/energy/classes/powerCurve.class.js");
|
|
2526
2526
|
if (Array.isArray(data)) {
|
|
2527
2527
|
return new PowerCurve(data, false, identifier, false);
|
|
2528
2528
|
}
|