@nomicfoundation/edr 0.24.0 → 0.25.1

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.
Files changed (3) hide show
  1. package/index.d.ts +81 -88
  2. package/index.js +113 -56
  3. package/package.json +11 -11
package/index.d.ts CHANGED
@@ -91,10 +91,6 @@ export declare class Provider {
91
91
 
92
92
  export declare class ProviderFactory {}
93
93
 
94
- export declare class RawTrace {
95
- get trace(): Array<TracingMessage | TracingStep | TracingMessageResult>
96
- }
97
-
98
94
  export declare class Response {
99
95
  /** Returns the response data as a JSON string or a JSON object. */
100
96
  get data(): string | any
@@ -108,6 +104,12 @@ export declare class Response {
108
104
  * request's call itself.
109
105
  */
110
106
  callTraces(): Array<CallTrace>
107
+ /**
108
+ * Returns the raw traces of executed contracts. This may contain zero or
109
+ * more traces. Uses a function instead of a getter to avoid repeated
110
+ * expensive conversions.
111
+ */
112
+ traces(): Array<Array<TracingMessage | TracingStep | TracingMessageResult>>
111
113
  }
112
114
 
113
115
  export declare class ReturnData {
@@ -314,11 +316,6 @@ export declare enum CallKind {
314
316
  Create = 4,
315
317
  }
316
318
 
317
- export interface CallOutput {
318
- /** Return value */
319
- returnValue: Uint8Array
320
- }
321
-
322
319
  /** The result of executing a call override. */
323
320
  export interface CallOverrideResult {
324
321
  result: Uint8Array
@@ -493,13 +490,6 @@ export interface CounterExampleSequence {
493
490
  /** The instrumentation coverage library file name. */
494
491
  export declare const COVERAGE_LIBRARY_FILE_NAME: string
495
492
 
496
- export interface CreateOutput {
497
- /** Return value */
498
- returnValue: Uint8Array
499
- /** Optionally, a 160-bit address */
500
- address?: Uint8Array
501
- }
502
-
503
493
  export interface CustomErrorStackTraceEntry {
504
494
  type: StackTraceEntryType.CUSTOM_ERROR
505
495
  message: string
@@ -591,14 +581,6 @@ export interface ExecutionLog {
591
581
  data: Uint8Array
592
582
  }
593
583
 
594
- /** The result of executing a transaction. */
595
- export interface ExecutionResult {
596
- /** The transaction result */
597
- result: SuccessResult | RevertResult | HaltResult
598
- /** Optional contract address if the transaction created a new contract. */
599
- contractAddress?: Uint8Array
600
- }
601
-
602
584
  /** Represents the exit code of the EVM. */
603
585
  export declare enum ExitCode {
604
586
  /** Execution was successful. */
@@ -814,19 +796,6 @@ export declare const GENERIC_CHAIN_TYPE: string
814
796
 
815
797
  export declare function genericChainProviderFactory(): ProviderFactory
816
798
 
817
- /** The result when the EVM terminates due to an exceptional halt. */
818
- export interface HaltResult {
819
- /** The exceptional halt that occurred */
820
- reason: ExceptionalHalt
821
- /**
822
- * Halting will spend all the gas and will thus be equal to the specified
823
- * gas limit
824
- */
825
- gasUsed: bigint
826
- /** The logs */
827
- logs: Array<ExecutionLog>
828
- }
829
-
830
799
  /** Configuration for a hardfork activation */
831
800
  export interface HardforkActivation {
832
801
  /** The condition for the hardfork activation */
@@ -1341,6 +1310,15 @@ export interface ObservabilityConfig {
1341
1310
  * Defaults to `IncludeTraces.None`.
1342
1311
  */
1343
1312
  includeCallTraces?: IncludeTraces
1313
+ /**
1314
+ * How much of the stack each step of `Response.traces()` records.
1315
+ *
1316
+ * This will be overridden if `Provider.setVerboseTracing(true)` is called,
1317
+ * which records the full stack until it is disabled again.
1318
+ *
1319
+ * Defaults to `StackSnapshotType.None`.
1320
+ */
1321
+ recordStack?: StackSnapshotType
1344
1322
  }
1345
1323
 
1346
1324
  export declare const OP_CHAIN_TYPE: string
@@ -1442,10 +1420,24 @@ export interface ProviderConfig {
1442
1420
  /** The address of the coinbase */
1443
1421
  coinbase: Uint8Array
1444
1422
  /**
1445
- * The default transaction gas limit to use for RPC call and transaction
1446
- * requests that do not specify a `gas` value.
1423
+ * The gas limit of RPC call and transaction requests that do not specify
1424
+ * a `gas` value.
1425
+ *
1426
+ * When set, it is used as is. Creating the provider fails when it exceeds
1427
+ * the transaction gas bound of the configured hardfork and transaction gas
1428
+ * cap. A request at a block whose bound is lower fails like a request with
1429
+ * an explicit `gas` above that bound.
1430
+ *
1431
+ * When not set, it is derived from the hardfork of the request's block.
1432
+ * It is `2^32 - 1` from Amsterdam ([EIP-8037]), `2^24` from Osaka
1433
+ * ([EIP-7825]), and the block gas limit before. The block gas limit caps
1434
+ * each of these. Before Amsterdam, a configured `transactionGasCap`
1435
+ * replaces the hardfork's bound.
1436
+ *
1437
+ * [EIP-7825]: https://eips.ethereum.org/EIPS/eip-7825
1438
+ * [EIP-8037]: https://eips.ethereum.org/EIPS/eip-8037
1447
1439
  */
1448
- defaultTransactionGasLimit: bigint
1440
+ defaultTransactionGasLimit?: bigint
1449
1441
  /**
1450
1442
  * The gas estimation mode to use for `eth_estimateGas`. Defaults to
1451
1443
  * `GasEstimationMode::TopLevelSuccess` if not set.
@@ -1513,16 +1505,6 @@ export interface RevertErrorStackTraceEntry {
1513
1505
  isInvalidOpcodeError: boolean
1514
1506
  }
1515
1507
 
1516
- /** The result when the EVM terminates due to a revert. */
1517
- export interface RevertResult {
1518
- /** The amount of gas used */
1519
- gasUsed: bigint
1520
- /** The logs */
1521
- logs: Array<ExecutionLog>
1522
- /** The transaction output */
1523
- output: Uint8Array
1524
- }
1525
-
1526
1508
  /**
1527
1509
  * Derives the secp256k1 public key of the provided secret key, returning it
1528
1510
  * in uncompressed SEC1 form: 65 bytes, `0x04 || X || Y`.
@@ -1818,6 +1800,16 @@ export interface SourceReference {
1818
1800
  range: Array<number>
1819
1801
  }
1820
1802
 
1803
+ /** How much of the stack each step of a raw trace records. */
1804
+ export declare enum StackSnapshotType {
1805
+ /** No stack entries. */
1806
+ None = 0,
1807
+ /** The full stack. */
1808
+ Full = 1,
1809
+ /** Only the top entry of the stack. */
1810
+ Top = 2,
1811
+ }
1812
+
1821
1813
  /** The stack trace result */
1822
1814
  export interface StackTrace {
1823
1815
  /** Enum tag for JS. */
@@ -1902,20 +1894,6 @@ export declare enum SuccessReason {
1902
1894
  SelfDestruct = 2,
1903
1895
  }
1904
1896
 
1905
- /** The result when the EVM terminates successfully. */
1906
- export interface SuccessResult {
1907
- /** The reason for termination */
1908
- reason: SuccessReason
1909
- /** The amount of gas used */
1910
- gasUsed: bigint
1911
- /** The amount of gas refunded */
1912
- gasRefunded: bigint
1913
- /** The logs */
1914
- logs: Array<ExecutionLog>
1915
- /** The transaction output */
1916
- output: CallOutput | CreateOutput
1917
- }
1918
-
1919
1897
  /**
1920
1898
  * See [`edr_solidity_tests::result::SuiteResult`]
1921
1899
  *
@@ -1968,49 +1946,64 @@ export interface TracingConfigWithBuffers {
1968
1946
  ignoreContracts?: boolean
1969
1947
  }
1970
1948
 
1949
+ /** Matches Hardhat's `MinimalExecResult` interface. */
1950
+ export interface TracingExecResult {
1951
+ /** Whether execution succeeded */
1952
+ readonly success: boolean
1953
+ /** Gas used during execution */
1954
+ readonly executionGasUsed: bigint
1955
+ /** Address of the created contract. None if the create failed. */
1956
+ readonly contractAddress?: Uint8Array
1957
+ /** The reason for the exit (success or halt) */
1958
+ readonly reason?: SuccessReason | ExceptionalHalt
1959
+ /** The output data */
1960
+ readonly output?: Uint8Array
1961
+ }
1962
+
1963
+ /** Matches Hardhat's `MinimalMessage` interface. */
1971
1964
  export interface TracingMessage {
1972
1965
  /** Sender address */
1973
1966
  readonly caller: Uint8Array
1974
1967
  /** Recipient address. None if it is a Create message. */
1975
1968
  readonly to?: Uint8Array
1976
- /** Whether it's a static call */
1977
- readonly isStaticCall: boolean
1978
- /** Transaction gas limit */
1979
- readonly gasLimit: bigint
1980
- /** Depth of the message */
1981
- readonly depth: number
1982
- /** Input data of the message */
1983
- readonly data: Uint8Array
1984
- /** Value sent in the message */
1985
- readonly value: bigint
1986
1969
  /**
1987
1970
  * Address of the code that is being executed. Can be different from `to`
1988
1971
  * if a delegate call is being done.
1989
1972
  */
1990
1973
  readonly codeAddress?: Uint8Array
1991
- /** Code of the contract that is being executed. */
1992
- readonly code?: Uint8Array
1974
+ /** Value sent in the message */
1975
+ readonly value: bigint
1976
+ /** Input data of the message */
1977
+ readonly data: Uint8Array
1978
+ /** Transaction gas limit */
1979
+ readonly gasLimit: bigint
1980
+ /** Whether it's a static call */
1981
+ readonly isStaticCall: boolean
1993
1982
  }
1994
1983
 
1984
+ /** Matches Hardhat's `MinimalEVMResult` interface. */
1995
1985
  export interface TracingMessageResult {
1996
- /** Execution result */
1997
- readonly executionResult: ExecutionResult
1986
+ /** The execution result */
1987
+ readonly execResult: TracingExecResult
1988
+ }
1989
+
1990
+ /** Opcode information for a tracing step. */
1991
+ export interface TracingOpcode {
1992
+ /** The name of the opcode */
1993
+ readonly name: string
1998
1994
  }
1999
1995
 
1996
+ /** Matches Hardhat's `MinimalInterpreterStep` interface. */
2000
1997
  export interface TracingStep {
1998
+ /** The program counter */
1999
+ readonly pc: number
2001
2000
  /** Call depth */
2002
2001
  readonly depth: number
2003
- /** The program counter */
2004
- readonly pc: bigint
2005
- /** The executed op code */
2006
- readonly opcode: string
2007
- /**
2008
- * The entries on the stack. It only contains the top element unless
2009
- * verbose tracing is enabled. The vector is empty if there are no elements
2010
- * on the stack.
2011
- */
2002
+ /** The executed opcode */
2003
+ readonly opcode: TracingOpcode
2004
+ /** The stack entries, as many as `ObservabilityConfig.recordStack` records. */
2012
2005
  readonly stack: Array<bigint>
2013
- /** The memory at the step. None if verbose tracing is disabled. */
2006
+ /** The memory at the step. None unless verbose tracing is enabled. */
2014
2007
  readonly memory?: Uint8Array
2015
2008
  }
2016
2009
 
package/index.js CHANGED
@@ -6,8 +6,13 @@ const { readFileSync } = require('fs')
6
6
  let nativeBinding = null
7
7
  // Which artifact actually loaded. The WASI fallback chain overwrites it with
8
8
  // the flavor it resolved; the late native retry below leaves it alone because
9
- // it only runs while no WASI candidate has been loaded.
9
+ // it only runs while no WASI candidate has been loaded. The take-over check
10
+ // after the load-failure block can also set it.
10
11
  let __napiLoadedBindingTarget = 'native'
12
+ // What this loader's own `requireNative()` calls returned. The check after
13
+ // the load-failure block compares it with `nativeBinding` to tell a binding
14
+ // this loader loaded from one that code outside it put in its place.
15
+ let __napiRequiredNativeBinding = null
11
16
  const loadErrors = []
12
17
 
13
18
  const isMusl = () => {
@@ -89,8 +94,8 @@ function requireNative() {
89
94
  try {
90
95
  const binding = require('@nomicfoundation/edr-android-arm64')
91
96
  const bindingPackageVersion = require('@nomicfoundation/edr-android-arm64/package.json').version
92
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
93
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
97
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
98
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
94
99
  }
95
100
  return binding
96
101
  } catch (e) {
@@ -105,8 +110,8 @@ function requireNative() {
105
110
  try {
106
111
  const binding = require('@nomicfoundation/edr-android-arm-eabi')
107
112
  const bindingPackageVersion = require('@nomicfoundation/edr-android-arm-eabi/package.json').version
108
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
109
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
113
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
114
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
110
115
  }
111
116
  return binding
112
117
  } catch (e) {
@@ -126,8 +131,8 @@ function requireNative() {
126
131
  try {
127
132
  const binding = require('@nomicfoundation/edr-win32-x64-gnu')
128
133
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-gnu/package.json').version
129
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
130
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
134
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
135
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
131
136
  }
132
137
  return binding
133
138
  } catch (e) {
@@ -142,8 +147,8 @@ function requireNative() {
142
147
  try {
143
148
  const binding = require('@nomicfoundation/edr-win32-x64-msvc')
144
149
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-msvc/package.json').version
145
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
146
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
147
152
  }
148
153
  return binding
149
154
  } catch (e) {
@@ -159,8 +164,8 @@ function requireNative() {
159
164
  try {
160
165
  const binding = require('@nomicfoundation/edr-win32-ia32-msvc')
161
166
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-ia32-msvc/package.json').version
162
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
163
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
167
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
168
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
164
169
  }
165
170
  return binding
166
171
  } catch (e) {
@@ -175,8 +180,8 @@ function requireNative() {
175
180
  try {
176
181
  const binding = require('@nomicfoundation/edr-win32-arm64-msvc')
177
182
  const bindingPackageVersion = require('@nomicfoundation/edr-win32-arm64-msvc/package.json').version
178
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
179
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
183
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
184
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
180
185
  }
181
186
  return binding
182
187
  } catch (e) {
@@ -194,8 +199,8 @@ function requireNative() {
194
199
  try {
195
200
  const binding = require('@nomicfoundation/edr-darwin-universal')
196
201
  const bindingPackageVersion = require('@nomicfoundation/edr-darwin-universal/package.json').version
197
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
198
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
202
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
203
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
199
204
  }
200
205
  return binding
201
206
  } catch (e) {
@@ -210,8 +215,8 @@ function requireNative() {
210
215
  try {
211
216
  const binding = require('@nomicfoundation/edr-darwin-x64')
212
217
  const bindingPackageVersion = require('@nomicfoundation/edr-darwin-x64/package.json').version
213
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
214
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
218
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
219
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
215
220
  }
216
221
  return binding
217
222
  } catch (e) {
@@ -226,8 +231,8 @@ function requireNative() {
226
231
  try {
227
232
  const binding = require('@nomicfoundation/edr-darwin-arm64')
228
233
  const bindingPackageVersion = require('@nomicfoundation/edr-darwin-arm64/package.json').version
229
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
230
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
234
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
235
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
231
236
  }
232
237
  return binding
233
238
  } catch (e) {
@@ -246,8 +251,8 @@ function requireNative() {
246
251
  try {
247
252
  const binding = require('@nomicfoundation/edr-freebsd-x64')
248
253
  const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-x64/package.json').version
249
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
250
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
254
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
255
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
251
256
  }
252
257
  return binding
253
258
  } catch (e) {
@@ -262,8 +267,24 @@ function requireNative() {
262
267
  try {
263
268
  const binding = require('@nomicfoundation/edr-freebsd-arm64')
264
269
  const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-arm64/package.json').version
265
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
266
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
270
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
271
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
272
+ }
273
+ return binding
274
+ } catch (e) {
275
+ loadErrors.push(e)
276
+ }
277
+ } else if (process.arch === 'ppc64') {
278
+ try {
279
+ return require('./edr.freebsd-ppc64.node')
280
+ } catch (e) {
281
+ loadErrors.push(e)
282
+ }
283
+ try {
284
+ const binding = require('@nomicfoundation/edr-freebsd-ppc64')
285
+ const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-ppc64/package.json').version
286
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
267
288
  }
268
289
  return binding
269
290
  } catch (e) {
@@ -283,8 +304,8 @@ function requireNative() {
283
304
  try {
284
305
  const binding = require('@nomicfoundation/edr-linux-x64-musl')
285
306
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-musl/package.json').version
286
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
307
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
308
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
309
  }
289
310
  return binding
290
311
  } catch (e) {
@@ -299,8 +320,8 @@ function requireNative() {
299
320
  try {
300
321
  const binding = require('@nomicfoundation/edr-linux-x64-gnu')
301
322
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-gnu/package.json').version
302
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
303
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
323
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
304
325
  }
305
326
  return binding
306
327
  } catch (e) {
@@ -317,8 +338,8 @@ function requireNative() {
317
338
  try {
318
339
  const binding = require('@nomicfoundation/edr-linux-arm64-musl')
319
340
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-musl/package.json').version
320
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
321
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
341
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
342
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
322
343
  }
323
344
  return binding
324
345
  } catch (e) {
@@ -333,8 +354,8 @@ function requireNative() {
333
354
  try {
334
355
  const binding = require('@nomicfoundation/edr-linux-arm64-gnu')
335
356
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-gnu/package.json').version
336
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
337
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
357
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
338
359
  }
339
360
  return binding
340
361
  } catch (e) {
@@ -351,8 +372,8 @@ function requireNative() {
351
372
  try {
352
373
  const binding = require('@nomicfoundation/edr-linux-arm-musleabihf')
353
374
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-musleabihf/package.json').version
354
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
355
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
375
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
376
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
356
377
  }
357
378
  return binding
358
379
  } catch (e) {
@@ -367,8 +388,8 @@ function requireNative() {
367
388
  try {
368
389
  const binding = require('@nomicfoundation/edr-linux-arm-gnueabihf')
369
390
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-gnueabihf/package.json').version
370
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
371
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
391
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
372
393
  }
373
394
  return binding
374
395
  } catch (e) {
@@ -385,8 +406,8 @@ function requireNative() {
385
406
  try {
386
407
  const binding = require('@nomicfoundation/edr-linux-loong64-musl')
387
408
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-musl/package.json').version
388
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
389
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
409
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
410
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
390
411
  }
391
412
  return binding
392
413
  } catch (e) {
@@ -401,8 +422,8 @@ function requireNative() {
401
422
  try {
402
423
  const binding = require('@nomicfoundation/edr-linux-loong64-gnu')
403
424
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-gnu/package.json').version
404
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
405
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
425
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
406
427
  }
407
428
  return binding
408
429
  } catch (e) {
@@ -419,8 +440,8 @@ function requireNative() {
419
440
  try {
420
441
  const binding = require('@nomicfoundation/edr-linux-riscv64-musl')
421
442
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-musl/package.json').version
422
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
423
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
424
445
  }
425
446
  return binding
426
447
  } catch (e) {
@@ -435,8 +456,8 @@ function requireNative() {
435
456
  try {
436
457
  const binding = require('@nomicfoundation/edr-linux-riscv64-gnu')
437
458
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-gnu/package.json').version
438
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
439
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
440
461
  }
441
462
  return binding
442
463
  } catch (e) {
@@ -452,8 +473,8 @@ function requireNative() {
452
473
  try {
453
474
  const binding = require('@nomicfoundation/edr-linux-ppc64-gnu')
454
475
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-ppc64-gnu/package.json').version
455
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
456
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
476
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
477
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
457
478
  }
458
479
  return binding
459
480
  } catch (e) {
@@ -468,8 +489,8 @@ function requireNative() {
468
489
  try {
469
490
  const binding = require('@nomicfoundation/edr-linux-s390x-gnu')
470
491
  const bindingPackageVersion = require('@nomicfoundation/edr-linux-s390x-gnu/package.json').version
471
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
472
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
492
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
493
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
473
494
  }
474
495
  return binding
475
496
  } catch (e) {
@@ -488,8 +509,8 @@ function requireNative() {
488
509
  try {
489
510
  const binding = require('@nomicfoundation/edr-openharmony-arm64')
490
511
  const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm64/package.json').version
491
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
492
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
512
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
513
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
493
514
  }
494
515
  return binding
495
516
  } catch (e) {
@@ -504,8 +525,8 @@ function requireNative() {
504
525
  try {
505
526
  const binding = require('@nomicfoundation/edr-openharmony-x64')
506
527
  const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-x64/package.json').version
507
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
508
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
528
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
529
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
509
530
  }
510
531
  return binding
511
532
  } catch (e) {
@@ -520,8 +541,8 @@ function requireNative() {
520
541
  try {
521
542
  const binding = require('@nomicfoundation/edr-openharmony-arm')
522
543
  const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm/package.json').version
523
- if (bindingPackageVersion !== '0.24.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
524
- throw new Error(`Native binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
544
+ if (bindingPackageVersion !== '0.25.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
545
+ throw new Error(`Native binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
525
546
  }
526
547
  return binding
527
548
  } catch (e) {
@@ -585,6 +606,7 @@ const forceWasi =
585
606
 
586
607
  if (!forceWasi) {
587
608
  nativeBinding = requireNative()
609
+ __napiRequiredNativeBinding = nativeBinding
588
610
  }
589
611
 
590
612
  if (!nativeBinding || forceWasi) {
@@ -661,8 +683,8 @@ if (!nativeBinding || forceWasi) {
661
683
  if (!candidateFailed) {
662
684
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
663
685
  const bindingPackageVersion = require('@nomicfoundation/edr-wasm32-wasi/package.json').version
664
- if (bindingPackageVersion !== '0.24.0') {
665
- throw new Error(`WASI binding package version mismatch, expected 0.24.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
686
+ if (bindingPackageVersion !== '0.25.1') {
687
+ throw new Error(`WASI binding package version mismatch, expected 0.25.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
666
688
  }
667
689
  }
668
690
  wasiBinding = require('@nomicfoundation/edr-wasm32-wasi')
@@ -686,6 +708,7 @@ if (!nativeBinding || forceWasi) {
686
708
  !__napiWasiFlavorRequested
687
709
  ) {
688
710
  nativeBinding = requireNative()
711
+ __napiRequiredNativeBinding = nativeBinding
689
712
  }
690
713
  if ((forceWasiError || __napiWasiFlavorRequested) && !wasiBindingLoaded) {
691
714
  const error = new Error(
@@ -713,6 +736,40 @@ if (!nativeBinding) {
713
736
  throw new Error(`Failed to load native binding`)
714
737
  }
715
738
 
739
+ // A package can patch its own fallback in front of the load-failure check
740
+ // above, e.g. a WebContainer download through `napi-postinstall/fallback`.
741
+ // That fallback swaps `nativeBinding` for a generated WASI loader, which has
742
+ // already stamped its own flavor, while the target above still says 'native'.
743
+ // Take that flavor over, or the CommonJS stamp throws a conflict and the ESM
744
+ // export reports the wrong artifact. Three limits keep the conflict check:
745
+ // - only a binding this loader did not load itself, so a native addon whose
746
+ // `#[napi(module_exports)]` hook claims the name is still rejected;
747
+ // - only an own data property, read through its descriptor, so no addon
748
+ // getter runs here, and it must read back the same, as the stamp reads it;
749
+ // - only a flavor in `__napiWasiFlavors`, the ones this loader's own WASI
750
+ // chain can report ('wasm32-wasi' for a package without a WASI target).
751
+ // This is metadata and never fails a load: a throwing Proxy trap keeps 'native'.
752
+ if (
753
+ __napiLoadedBindingTarget === 'native' &&
754
+ nativeBinding !== __napiRequiredNativeBinding
755
+ ) {
756
+ try {
757
+ const __napiBindingTargetDescriptor = Object.getOwnPropertyDescriptor(
758
+ nativeBinding,
759
+ '__napiBindingTarget',
760
+ )
761
+ if (
762
+ __napiBindingTargetDescriptor &&
763
+ __napiWasiFlavors.indexOf(__napiBindingTargetDescriptor.value) !== -1 &&
764
+ nativeBinding.__napiBindingTarget === __napiBindingTargetDescriptor.value
765
+ ) {
766
+ __napiLoadedBindingTarget = __napiBindingTargetDescriptor.value
767
+ }
768
+ } catch {
769
+ // keep 'native'
770
+ }
771
+ }
772
+
716
773
  function __napiStampBindingTarget(exportsObject, target) {
717
774
  if (
718
775
  Object.prototype.hasOwnProperty.call(exportsObject, '__napiBindingTarget')
@@ -785,7 +842,6 @@ module.exports.Exit = nativeBinding.Exit
785
842
  module.exports.Precompile = nativeBinding.Precompile
786
843
  module.exports.Provider = nativeBinding.Provider
787
844
  module.exports.ProviderFactory = nativeBinding.ProviderFactory
788
- module.exports.RawTrace = nativeBinding.RawTrace
789
845
  module.exports.Response = nativeBinding.Response
790
846
  module.exports.ReturnData = nativeBinding.ReturnData
791
847
  module.exports.SolidityTestRunnerFactory = nativeBinding.SolidityTestRunnerFactory
@@ -834,6 +890,7 @@ module.exports.precompileP256Verify = nativeBinding.precompileP256Verify
834
890
  module.exports.printStackTrace = nativeBinding.printStackTrace
835
891
  module.exports.RECEIVE_FUNCTION_NAME = nativeBinding.RECEIVE_FUNCTION_NAME
836
892
  module.exports.secp256k1PublicKeyFromSecretKey = nativeBinding.secp256k1PublicKeyFromSecretKey
893
+ module.exports.StackSnapshotType = nativeBinding.StackSnapshotType
837
894
  module.exports.StackTraceEntryType = nativeBinding.StackTraceEntryType
838
895
  module.exports.stackTraceEntryTypeToString = nativeBinding.stackTraceEntryTypeToString
839
896
  module.exports.SuccessReason = nativeBinding.SuccessReason
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/edr",
3
- "version": "0.24.0",
3
+ "version": "0.25.1",
4
4
  "devDependencies": {
5
5
  "@napi-rs/cli": "^3.7.0",
6
6
  "@nomicfoundation/ethereumjs-util": "^9.0.4",
@@ -9,8 +9,8 @@
9
9
  "@types/chai-as-promised": "^7.1.8",
10
10
  "@types/mocha": ">=9.1.0",
11
11
  "@types/node": "^22.0.0",
12
- "@typescript-eslint/eslint-plugin": "8.71.1",
13
- "@typescript-eslint/parser": "8.71.1",
12
+ "@typescript-eslint/eslint-plugin": "8.72.1",
13
+ "@typescript-eslint/parser": "8.72.1",
14
14
  "chai": "^4.3.6",
15
15
  "chai-as-promised": "^7.1.1",
16
16
  "chalk": "^2.4.2",
@@ -18,7 +18,7 @@
18
18
  "eslint-config-prettier": "9.1.2",
19
19
  "eslint-plugin-import": "2.32.0",
20
20
  "eslint-plugin-mocha": "10.5.0",
21
- "eslint-plugin-prettier": "5.5.6",
21
+ "eslint-plugin-prettier": "5.5.7",
22
22
  "ethers": "^6.1.0",
23
23
  "json-stream-stringify": "^3.1.4",
24
24
  "mocha": "^11.1.0",
@@ -59,13 +59,13 @@
59
59
  },
60
60
  "types": "index.d.ts",
61
61
  "optionalDependencies": {
62
- "@nomicfoundation/edr-darwin-arm64": "0.24.0",
63
- "@nomicfoundation/edr-darwin-x64": "0.24.0",
64
- "@nomicfoundation/edr-linux-arm64-gnu": "0.24.0",
65
- "@nomicfoundation/edr-linux-arm64-musl": "0.24.0",
66
- "@nomicfoundation/edr-linux-x64-gnu": "0.24.0",
67
- "@nomicfoundation/edr-linux-x64-musl": "0.24.0",
68
- "@nomicfoundation/edr-win32-x64-msvc": "0.24.0"
62
+ "@nomicfoundation/edr-darwin-arm64": "0.25.1",
63
+ "@nomicfoundation/edr-darwin-x64": "0.25.1",
64
+ "@nomicfoundation/edr-linux-arm64-gnu": "0.25.1",
65
+ "@nomicfoundation/edr-linux-arm64-musl": "0.25.1",
66
+ "@nomicfoundation/edr-linux-x64-gnu": "0.25.1",
67
+ "@nomicfoundation/edr-linux-x64-musl": "0.25.1",
68
+ "@nomicfoundation/edr-win32-x64-msvc": "0.25.1"
69
69
  },
70
70
  "scripts": {
71
71
  "artifacts": "napi artifacts",