pentest-distro-builder/filesystem/root/.vscode/extensions/peterjausovec.vscode-docker-0.3.1/out/helpers/async.js

21 lines
822 B
JavaScript
Raw Normal View History

2018-10-17 14:11:16 -06:00
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
const glob = require("glob");
async function globAsync(pattern, options) {
return await new Promise((resolve, reject) => {
glob(pattern, options, (err, matches) => {
if (err) {
reject();
}
else {
resolve(matches);
}
});
});
}
exports.globAsync = globAsync;
//# sourceMappingURL=async.js.map