react-saga-redux 1.0.3 → 1.0.5

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.
@@ -3,7 +3,8 @@
3
3
  import path from "path";
4
4
  import { spawn } from "child_process";
5
5
  import { DEFAULT_LEVELS, SORTING_ORDER } from "../utils/constants";
6
-
6
+ import process from "node:process";
7
+ import { fileURLToPath } from "url";
7
8
  // -------------------- Node-safe runtime --------------------
8
9
 
9
10
  // -------------------- Types --------------------
@@ -45,7 +46,6 @@ interface DefaultOptions {
45
46
 
46
47
  // -------------------- process safe --------------------
47
48
 
48
- declare const process: any;
49
49
 
50
50
  // -------------------- options --------------------
51
51
 
@@ -75,6 +75,8 @@ const defaultOptions: DefaultOptions = {
75
75
  depthLimit: 5,
76
76
  edgeLimit: 100
77
77
  };
78
+ const __filename = fileURLToPath(import.meta.url);
79
+ const __dirname = path.dirname(__filename);
78
80
 
79
81
  // -------------------- core logic --------------------
80
82