mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
remove timers/promises import for node 14
This commit is contained in:
parent
33e975f519
commit
8444a9d6ea
1 changed files with 4 additions and 1 deletions
|
|
@ -1,10 +1,13 @@
|
|||
import { auditChanges } from "./audit/index.js";
|
||||
import { getScanTimeout } from "../config/configFile.js";
|
||||
import { setTimeout } from "timers/promises";
|
||||
import { promisify } from "util";
|
||||
import chalk from "chalk";
|
||||
import { getPackageManager } from "../packagemanager/currentPackageManager.js";
|
||||
import { ui } from "../environment/userInteraction.js";
|
||||
|
||||
// node 14 compat
|
||||
const setTimeout = promisify(setTimeout);
|
||||
|
||||
/**
|
||||
* @param {string[]} args
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue