@nomicfoundation/edr 0.5.1 → 0.5.2
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/index.d.ts +1 -0
- package/package.json +8 -8
- package/src/provider.rs +6 -0
package/index.d.ts
CHANGED
|
@@ -420,6 +420,7 @@ export class Provider {
|
|
|
420
420
|
export class Response {
|
|
421
421
|
/** Returns the response data as a JSON string or a JSON object. */
|
|
422
422
|
get data(): string | any
|
|
423
|
+
get json(): string | any
|
|
423
424
|
get solidityTrace(): RawTrace | null
|
|
424
425
|
get traces(): Array<RawTrace>
|
|
425
426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/edr",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"node": ">= 18"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomicfoundation/edr-darwin-arm64": "0.5.
|
|
51
|
-
"@nomicfoundation/edr-darwin-x64": "0.5.
|
|
52
|
-
"@nomicfoundation/edr-linux-arm64-gnu": "0.5.
|
|
53
|
-
"@nomicfoundation/edr-linux-arm64-musl": "0.5.
|
|
54
|
-
"@nomicfoundation/edr-linux-x64-gnu": "0.5.
|
|
55
|
-
"@nomicfoundation/edr-linux-x64-musl": "0.5.
|
|
56
|
-
"@nomicfoundation/edr-win32-x64-msvc": "0.5.
|
|
50
|
+
"@nomicfoundation/edr-darwin-arm64": "0.5.2",
|
|
51
|
+
"@nomicfoundation/edr-darwin-x64": "0.5.2",
|
|
52
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.5.2",
|
|
53
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.5.2",
|
|
54
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.5.2",
|
|
55
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.5.2",
|
|
56
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.5.2"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"artifacts": "napi artifacts",
|
package/src/provider.rs
CHANGED
|
@@ -243,6 +243,12 @@ impl Response {
|
|
|
243
243
|
self.data.clone()
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
+
// Temporary alias for data to prevent breaking change
|
|
247
|
+
#[napi(getter)]
|
|
248
|
+
pub fn json(&self) -> Either<String, serde_json::Value> {
|
|
249
|
+
self.data.clone()
|
|
250
|
+
}
|
|
251
|
+
|
|
246
252
|
#[napi(getter)]
|
|
247
253
|
pub fn solidity_trace(&self) -> Option<RawTrace> {
|
|
248
254
|
self.solidity_trace
|