syncer: expose as async

This commit is contained in:
Girish Ramakrishnan
2024-07-09 23:43:16 +02:00
parent 3a21191fba
commit d6bb32aead
2 changed files with 7 additions and 13 deletions

View File

@@ -8,10 +8,11 @@ const assert = require('assert'),
fs = require('fs'),
path = require('path'),
paths = require('./paths.js'),
safe = require('safetydance');
safe = require('safetydance'),
util = require('util');
exports = module.exports = {
sync
sync: util.promisify(sync)
};
function readCache(cacheFile) {