Innovenergy_trunk/frontend/node_modules/testcafe-browser-tools/lib/utils/fs-exists-promised.js

12 lines
1.2 KiB
JavaScript
Raw Normal View History

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const graceful_fs_1 = __importDefault(require("graceful-fs"));
const pinkie_1 = __importDefault(require("pinkie"));
function default_1(filePath) {
return new pinkie_1.default(resolve => graceful_fs_1.default.exists(filePath, resolve));
}
exports.default = default_1;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtZXhpc3RzLXByb21pc2VkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3V0aWxzL2ZzLWV4aXN0cy1wcm9taXNlZC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDhEQUE2QjtBQUM3QixvREFBNkI7QUFHN0IsbUJBQXlCLFFBQVE7SUFDN0IsT0FBTyxJQUFJLGdCQUFPLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxxQkFBRSxDQUFDLE1BQU0sQ0FBQyxRQUFRLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQztBQUNoRSxDQUFDO0FBRkQsNEJBRUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgZnMgZnJvbSAnZ3JhY2VmdWwtZnMnO1xuaW1wb3J0IFByb21pc2UgZnJvbSAncGlua2llJztcblxuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiAoZmlsZVBhdGgpIHtcbiAgICByZXR1cm4gbmV3IFByb21pc2UocmVzb2x2ZSA9PiBmcy5leGlzdHMoZmlsZVBhdGgsIHJlc29sdmUpKTtcbn1cbiJdfQ==