New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

testcafe-hammerhead

Package Overview
Dependencies
Maintainers
7
Versions
350
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcafe-hammerhead - npm Package Compare versions

Comparing version 24.7.3 to 24.7.4

lib/utils/get-asset-path.js

2

lib/index.js

@@ -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;

5

lib/utils/load-client-script.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc