@nomicfoundation/hardhat-utils 3.0.0-next.20 → 3.0.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/error.d.ts +2 -2
- package/dist/src/error.js +2 -2
- package/dist/src/internal/bytecode.d.ts +1 -1
- package/dist/src/internal/bytecode.d.ts.map +1 -1
- package/dist/src/path.d.ts +1 -1
- package/dist/src/path.js +1 -1
- package/dist/src/request.d.ts +1 -1
- package/dist/src/request.d.ts.map +1 -1
- package/dist/src/stream.d.ts +1 -1
- package/dist/src/stream.js +1 -1
- package/package.json +2 -2
- package/src/error.ts +2 -2
- package/src/internal/bytecode.ts +1 -1
- package/src/path.ts +1 -1
- package/src/request.ts +1 -1
- package/src/stream.ts +1 -1
package/dist/src/error.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Abstract custom error class, which inherits from the built-in Error class,
|
|
3
|
-
* making sure that the standard
|
|
3
|
+
* making sure that the standard error properties are set, and the stack trace
|
|
4
4
|
* is not polluted with the custom error class' code.
|
|
5
5
|
*
|
|
6
6
|
* This class supports the `cause` property, which can be used to pass the
|
|
7
7
|
* original error that caused the custom error to be thrown. Note that it needs
|
|
8
8
|
* to be an instance of the built-in Error class, or a subclass of it. See `ensureError`
|
|
9
|
-
* for a
|
|
9
|
+
* for a convenient way of using it.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
package/dist/src/error.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Abstract custom error class, which inherits from the built-in Error class,
|
|
3
|
-
* making sure that the standard
|
|
3
|
+
* making sure that the standard error properties are set, and the stack trace
|
|
4
4
|
* is not polluted with the custom error class' code.
|
|
5
5
|
*
|
|
6
6
|
* This class supports the `cause` property, which can be used to pass the
|
|
7
7
|
* original error that caused the custom error to be thrown. Note that it needs
|
|
8
8
|
* to be an instance of the built-in Error class, or a subclass of it. See `ensureError`
|
|
9
|
-
* for a
|
|
9
|
+
* for a convenient way of using it.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytecode.d.ts","sourceRoot":"","sources":["../../../src/internal/bytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAWnD,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE;QACd,CAAC,
|
|
1
|
+
{"version":3,"file":"bytecode.d.ts","sourceRoot":"","sources":["../../../src/internal/bytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAWnD,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE;QACd,CAAC,eAAe,EAAE,MAAM,GAAG;YACzB,CAAC,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,CAAC,CAAC;SACjE,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,YAAY,EAAE,MAAM,GAAG,iBAAiB,CAAC;CAC3C;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,iBAAiB,EAAE,gBAAgB,GAClC,IAAI,CAaN;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAC9C,iBAAiB,EAAE,gBAAgB,EACnC,eAAe,EAAE,WAAW,EAAE,GAC7B,IAAI,CAyBN;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,iBAAiB,EAAE,gBAAgB,EACnC,eAAe,EAAE,WAAW,EAAE,GAC7B,IAAI,CAcN;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,eAAe,EAAE,WAAW,EAAE,GAC7B,IAAI,CAUN"}
|
package/dist/src/path.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function resolveFromRoot(root: string, target: string): string;
|
|
|
13
13
|
* Tries to return a shorter version of the path if its inside the given folder.
|
|
14
14
|
*
|
|
15
15
|
* This is useful for displaying paths in the terminal, as they can be shorter
|
|
16
|
-
* when they are
|
|
16
|
+
* when they are inside the current working directory. For example, if the
|
|
17
17
|
* current working directory is `/home/user/project`, and the path is
|
|
18
18
|
* `/home/user/project/contracts/File.sol`, the shorter path is
|
|
19
19
|
* `contracts/File.sol`.
|
package/dist/src/path.js
CHANGED
|
@@ -19,7 +19,7 @@ export function resolveFromRoot(root, target) {
|
|
|
19
19
|
* Tries to return a shorter version of the path if its inside the given folder.
|
|
20
20
|
*
|
|
21
21
|
* This is useful for displaying paths in the terminal, as they can be shorter
|
|
22
|
-
* when they are
|
|
22
|
+
* when they are inside the current working directory. For example, if the
|
|
23
23
|
* current working directory is `/home/user/project`, and the path is
|
|
24
24
|
* `/home/user/project/contracts/File.sol`, the shorter path is
|
|
25
25
|
* `contracts/File.sol`.
|
package/dist/src/request.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAE5C,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAuBlC,eAAO,MAAM,+BAA+B,SAAU,CAAC;AACvD,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,MAAM,MAAM,U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;;;;GAUG;AACH,wBAAsB,QAAQ,CAC5B,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,EACnB,cAAc,GAAE,cAAmB,EACnC,6BAA6B,CAAC,EAAE,OAAO,CAAC,UAAU,GAAG,iBAAiB,GACrE,OAAO,CAAC,IAAI,CAAC,CAgCf;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,EACE,OAAO,EACP,KAAK,EACL,IAAI,EACJ,cAAc,EACd,gBAAgB,GACjB,GAAE,iBAAsB,GACxB,OAAO,CAAC,UAAU,CAAC,CAyBrB;AAED,wBAAsB,iBAAiB,CACrC,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAC;CACb,GACL,OAAO,CAAC,cAAc,CAAC,CAKzB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAiBnD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAO/C;AAED,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC"}
|
package/dist/src/stream.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
2
|
/**
|
|
3
|
-
* Creates a
|
|
3
|
+
* Creates a Transform that writes everything to actualWritable, without closing it
|
|
4
4
|
* when finished.
|
|
5
5
|
*
|
|
6
6
|
* This is useful to pipe things to stdout, without closing it, while being
|
package/dist/src/stream.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
2
|
/**
|
|
3
|
-
* Creates a
|
|
3
|
+
* Creates a Transform that writes everything to actualWritable, without closing it
|
|
4
4
|
* when finished.
|
|
5
5
|
*
|
|
6
6
|
* This is useful to pipe things to stdout, without closing it, while being
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/hardhat-utils",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.22",
|
|
4
4
|
"description": "Utilities for Hardhat and its plugins",
|
|
5
5
|
"homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-utils",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"README.md"
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@nomicfoundation/hardhat-node-test-reporter": "^3.0.0-next.
|
|
51
|
+
"@nomicfoundation/hardhat-node-test-reporter": "^3.0.0-next.22",
|
|
52
52
|
"@types/bn.js": "^5.1.5",
|
|
53
53
|
"@types/debug": "^4.1.7",
|
|
54
54
|
"@types/node": "^20.14.9",
|
package/src/error.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Abstract custom error class, which inherits from the built-in Error class,
|
|
3
|
-
* making sure that the standard
|
|
3
|
+
* making sure that the standard error properties are set, and the stack trace
|
|
4
4
|
* is not polluted with the custom error class' code.
|
|
5
5
|
*
|
|
6
6
|
* This class supports the `cause` property, which can be used to pass the
|
|
7
7
|
* original error that caused the custom error to be thrown. Note that it needs
|
|
8
8
|
* to be an instance of the built-in Error class, or a subclass of it. See `ensureError`
|
|
9
|
-
* for a
|
|
9
|
+
* for a convenient way of using it.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
package/src/internal/bytecode.ts
CHANGED
package/src/path.ts
CHANGED
|
@@ -22,7 +22,7 @@ export function resolveFromRoot(root: string, target: string): string {
|
|
|
22
22
|
* Tries to return a shorter version of the path if its inside the given folder.
|
|
23
23
|
*
|
|
24
24
|
* This is useful for displaying paths in the terminal, as they can be shorter
|
|
25
|
-
* when they are
|
|
25
|
+
* when they are inside the current working directory. For example, if the
|
|
26
26
|
* current working directory is `/home/user/project`, and the path is
|
|
27
27
|
* `/home/user/project/contracts/File.sol`, the shorter path is
|
|
28
28
|
* `contracts/File.sol`.
|
package/src/request.ts
CHANGED
package/src/stream.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Creates a
|
|
4
|
+
* Creates a Transform that writes everything to actualWritable, without closing it
|
|
5
5
|
* when finished.
|
|
6
6
|
*
|
|
7
7
|
* This is useful to pipe things to stdout, without closing it, while being
|