Socket
Socket
Sign inDemoInstall

hardhat

Package Overview
Dependencies
Maintainers
5
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat - npm Package Compare versions

Comparing version 2.23.0-dev.2 to 2.23.0-dev.3

7

internal/core/errors-list.d.ts

@@ -308,2 +308,9 @@ export declare const ERROR_PREFIX = "HH";

};
EMPTY_URL: {
number: number;
message: string;
title: string;
description: string;
shouldBeReported: boolean;
};
};

@@ -310,0 +317,0 @@ TASK_DEFINITIONS: {

@@ -443,2 +443,11 @@ "use strict";

},
EMPTY_URL: {
number: 117,
message: "Empty string `%value%` for network or forking URL - Expected a non-empty string.",
title: "Empty string `%value%` for network or forking URL - Expected a non-empty string.",
description: `You are trying to connect to a network with an empty network or forking URL.
Please check that you are sending a non-empty string for network or forking \`URL\` parameter.`,
shouldBeReported: false,
},
},

@@ -445,0 +454,0 @@ TASK_DEFINITIONS: {

@@ -52,2 +52,7 @@ "use strict";

const { Pool, ProxyAgent } = require("undici");
if (this._url.trim().length === 0) {
throw new errors_1.HardhatError(errors_list_1.ERRORS.NETWORK.EMPTY_URL, {
value: this._url,
});
}
const url = new URL(this._url);

@@ -54,0 +59,0 @@ this._path = url.pathname;

13

package.json
{
"name": "hardhat",
"version": "2.23.0-dev.2",
"version": "2.23.0-dev.3",
"author": "Nomic Labs LLC",

@@ -82,4 +82,4 @@ "license": "MIT",

"typescript": "~5.0.0",
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "^1.0.2",
"@nomicfoundation/eslint-plugin-slow-imports": "^1.0.0"
"@nomicfoundation/eslint-plugin-slow-imports": "^1.0.0",
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "^1.0.2"
},

@@ -89,3 +89,3 @@ "dependencies": {

"@metamask/eth-sig-util": "^4.0.0",
"@nomicfoundation/edr": "0.4.0-alpha.0",
"@nomicfoundation/edr": "0.4.0-alpha.4",
"@nomicfoundation/ethereumjs-common": "4.0.4",

@@ -178,8 +178,3 @@ "@nomicfoundation/ethereumjs-tx": "5.0.4",

"test:tracing": "mocha --recursive \"test/internal/hardhat-network/stack-traces/**/*.ts\"",
"pretest:provider": "cd ../../crates/edr_napi && pnpm build",
"pretest:except-provider": "cd ../../crates/edr_napi && pnpm build",
"pretest:tracing": "cd ../../crates/edr_napi && pnpm build",
"pretest:except-tracing": "cd ../../crates/edr_napi && pnpm build",
"postbuild": "cp src/internal/solidity/compiler/solcjs-runner.js internal/solidity/compiler/solcjs-runner.js",
"prebuild:tracing": "cd ../../crates/edr_napi && pnpm build:tracing",
"build": "tsc --build --force --incremental .",

@@ -186,0 +181,0 @@ "build:tracing": "tsc --build --force --incremental .",

@@ -478,2 +478,13 @@ export const ERROR_PREFIX = "HH";

},
EMPTY_URL: {
number: 117,
message:
"Empty string `%value%` for network or forking URL - Expected a non-empty string.",
title:
"Empty string `%value%` for network or forking URL - Expected a non-empty string.",
description: `You are trying to connect to a network with an empty network or forking URL.
Please check that you are sending a non-empty string for network or forking \`URL\` parameter.`,
shouldBeReported: false,
},
},

@@ -480,0 +491,0 @@ TASK_DEFINITIONS: {

@@ -54,2 +54,8 @@ import type * as Undici from "undici";

if (this._url.trim().length === 0) {
throw new HardhatError(ERRORS.NETWORK.EMPTY_URL, {
value: this._url,
});
}
const url = new URL(this._url);

@@ -56,0 +62,0 @@ this._path = url.pathname;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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