Innovenergy_trunk/frontend/node_modules/testcafe/lib/utils/setup-sourcemap-support.js

22 lines
2.1 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 });
exports.fileContentsCache = exports.setupSourceMapSupport = void 0;
const source_map_support_1 = __importDefault(require("source-map-support"));
const fileContentsCache = {};
exports.fileContentsCache = fileContentsCache;
function retrieveFile(fileName) {
return fileContentsCache[fileName];
}
function setupSourceMapSupport() {
source_map_support_1.default.install({
hookRequire: true,
handleUncaughtExceptions: false,
environment: 'node',
retrieveFile,
});
}
exports.setupSourceMapSupport = setupSourceMapSupport;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXAtc291cmNlbWFwLXN1cHBvcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMvc2V0dXAtc291cmNlbWFwLXN1cHBvcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0EsNEVBQWtEO0FBRWxELE1BQU0saUJBQWlCLEdBQXVCLEVBQUUsQ0FBQztBQWVqQiw4Q0FBaUI7QUFiakQsU0FBUyxZQUFZLENBQUUsUUFBZ0I7SUFDbkMsT0FBTyxpQkFBaUIsQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUN2QyxDQUFDO0FBRUQsU0FBUyxxQkFBcUI7SUFDMUIsNEJBQWdCLENBQUMsT0FBTyxDQUFDO1FBQ3JCLFdBQVcsRUFBZSxJQUFJO1FBQzlCLHdCQUF3QixFQUFFLEtBQUs7UUFDL0IsV0FBVyxFQUFlLE1BQU07UUFDaEMsWUFBWTtLQUNmLENBQUMsQ0FBQztBQUNQLENBQUM7QUFFUSxzREFBcUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaWN0aW9uYXJ5IH0gZnJ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