testcafe-hammerhead
Advanced tools
Comparing version 24.7.3 to 24.7.4
@@ -49,2 +49,3 @@ "use strict"; | ||
const http_1 = require("./utils/http"); | ||
const get_asset_path_1 = __importDefault(require("./utils/get-asset-path")); | ||
exports.default = { | ||
@@ -75,3 +76,4 @@ Proxy: proxy_1.default, | ||
acceptCrossOrigin: http_1.acceptCrossOrigin, | ||
getAssetPath: get_asset_path_1.default, | ||
};module.exports = exports.default; | ||
@@ -8,3 +8,3 @@ "use strict"; | ||
const read_file_relative_1 = require("read-file-relative"); | ||
const get_client_script_suffix_1 = __importDefault(require("./get-client-script-suffix")); | ||
const get_asset_path_1 = __importDefault(require("./get-asset-path")); | ||
const serviceRouteValues = Object.values(service_routes_1.default); | ||
@@ -22,4 +22,3 @@ const loadedScriptsCache = {}; | ||
throw new Error(`Unknown service route value: ${name}`); | ||
const parts = name.split('.'); | ||
const resultPath = `../client${parts[0]}${(0, get_client_script_suffix_1.default)(devMode)}.${parts[1]}`; | ||
const resultPath = `../client${(0, get_asset_path_1.default)(name, devMode)}`; | ||
return get(resultPath); | ||
@@ -26,0 +25,0 @@ } |
{ | ||
"name": "testcafe-hammerhead", | ||
"description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).", | ||
"version": "24.7.3", | ||
"version": "24.7.4", | ||
"homepage": "https://github.com/DevExpress/testcafe-hammerhead", | ||
@@ -92,4 +92,4 @@ "bugs": { | ||
"tmp": "0.0.26", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.4", | ||
"tslib": "^2.4.0", | ||
"ws": "^7.4.6" | ||
@@ -96,0 +96,0 @@ }, |
@@ -532,2 +532,5 @@ interface StaticContent { | ||
function acceptCrossOrigin (res: ServerResponse): void; | ||
/** Calculates the asset path depending on the run mode (production or development) **/ | ||
function getAssetPath(originPath: string, developmentMode: boolean): string; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2421886
147
40617