@backtest-kit/cli 6.7.0 → 6.7.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.
package/build/index.cjs CHANGED
@@ -2107,6 +2107,7 @@ class BabelService {
2107
2107
  }
2108
2108
  }
2109
2109
 
2110
+ const USE_ESMODULE_DEFAULT = false;
2110
2111
  const TRANSPILE_FN = functoolsKit.memoize(([path]) => `${path}`, (path, code, self, require) => {
2111
2112
  const __filename = self.__filename;
2112
2113
  const __dirname = self.__dirname;
@@ -2142,6 +2143,9 @@ const BABEL_ENTRY_FACTORY = (filePath, self, seen) => {
2142
2143
  const code = fs.readFileSync(resolvedPath, "utf-8");
2143
2144
  const child = self.fork(path.dirname(resolvedPath));
2144
2145
  const { module } = TRANSPILE_FN(resolvedPath, code, child, CREATE_BASE_REQUIRE_FN(child, seen));
2146
+ if (!USE_ESMODULE_DEFAULT) {
2147
+ return module.exports;
2148
+ }
2145
2149
  return "default" in module.exports
2146
2150
  ? module.exports.default
2147
2151
  : module.exports;
@@ -2537,7 +2541,7 @@ const main$b = async () => {
2537
2541
  if (MODES.some((mode) => values[mode])) {
2538
2542
  return;
2539
2543
  }
2540
- process.stdout.write(`@backtest-kit/cli ${"6.7.0"}\n`);
2544
+ process.stdout.write(`@backtest-kit/cli ${"6.7.1"}\n`);
2541
2545
  process.stdout.write("\n");
2542
2546
  process.stdout.write(`Run with --help to see available commands.\n`);
2543
2547
  process.stdout.write("\n");
@@ -3105,7 +3109,7 @@ const main$1 = async () => {
3105
3109
  if (!values.help) {
3106
3110
  return;
3107
3111
  }
3108
- process.stdout.write(`@backtest-kit/cli ${"6.7.0"}\n\n`);
3112
+ process.stdout.write(`@backtest-kit/cli ${"6.7.1"}\n\n`);
3109
3113
  process.stdout.write(HELP_TEXT);
3110
3114
  process.exit(0);
3111
3115
  };
@@ -3119,7 +3123,7 @@ const main = async () => {
3119
3123
  if (!values.version) {
3120
3124
  return;
3121
3125
  }
3122
- process.stdout.write(`@backtest-kit/cli ${"6.7.0"}\n`);
3126
+ process.stdout.write(`@backtest-kit/cli ${"6.7.1"}\n`);
3123
3127
  process.exit(0);
3124
3128
  };
3125
3129
  main();
package/build/index.mjs CHANGED
@@ -2082,6 +2082,7 @@ class BabelService {
2082
2082
  }
2083
2083
  }
2084
2084
 
2085
+ const USE_ESMODULE_DEFAULT = false;
2085
2086
  const TRANSPILE_FN = memoize(([path]) => `${path}`, (path, code, self, require) => {
2086
2087
  const __filename = self.__filename;
2087
2088
  const __dirname = self.__dirname;
@@ -2113,6 +2114,9 @@ const BABEL_ENTRY_FACTORY = (filePath, self, seen) => {
2113
2114
  const code = fs.readFileSync(resolvedPath, "utf-8");
2114
2115
  const child = self.fork(path.dirname(resolvedPath));
2115
2116
  const { module } = TRANSPILE_FN(resolvedPath, code, child, CREATE_BASE_REQUIRE_FN(child, seen));
2117
+ if (!USE_ESMODULE_DEFAULT) {
2118
+ return module.exports;
2119
+ }
2116
2120
  return "default" in module.exports
2117
2121
  ? module.exports.default
2118
2122
  : module.exports;
@@ -2508,7 +2512,7 @@ const main$b = async () => {
2508
2512
  if (MODES.some((mode) => values[mode])) {
2509
2513
  return;
2510
2514
  }
2511
- process.stdout.write(`@backtest-kit/cli ${"6.7.0"}\n`);
2515
+ process.stdout.write(`@backtest-kit/cli ${"6.7.1"}\n`);
2512
2516
  process.stdout.write("\n");
2513
2517
  process.stdout.write(`Run with --help to see available commands.\n`);
2514
2518
  process.stdout.write("\n");
@@ -3076,7 +3080,7 @@ const main$1 = async () => {
3076
3080
  if (!values.help) {
3077
3081
  return;
3078
3082
  }
3079
- process.stdout.write(`@backtest-kit/cli ${"6.7.0"}\n\n`);
3083
+ process.stdout.write(`@backtest-kit/cli ${"6.7.1"}\n\n`);
3080
3084
  process.stdout.write(HELP_TEXT);
3081
3085
  process.exit(0);
3082
3086
  };
@@ -3090,7 +3094,7 @@ const main = async () => {
3090
3094
  if (!values.version) {
3091
3095
  return;
3092
3096
  }
3093
- process.stdout.write(`@backtest-kit/cli ${"6.7.0"}\n`);
3097
+ process.stdout.write(`@backtest-kit/cli ${"6.7.1"}\n`);
3094
3098
  process.exit(0);
3095
3099
  };
3096
3100
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/cli",
3
- "version": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "description": "Zero-boilerplate CLI runner for backtest-kit strategies. Run backtests, paper trading, and live bots with candle cache warming, web dashboard, and Telegram notifications — no setup code required.",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -12,7 +12,7 @@
12
12
  "license": "ISC",
13
13
  "type": "commonjs",
14
14
  "dependencies": {
15
- "@backtest-kit/cli": "^6.7.0",
15
+ "@backtest-kit/cli": "^6.7.1",
16
16
  "@backtest-kit/graph": "^6.7.0",
17
17
  "@backtest-kit/pinets": "^6.7.0",
18
18
  "@backtest-kit/ui": "^6.7.0",