@nomicfoundation/edr 0.26.0 → 0.27.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.
- package/index.d.ts +172 -131
- package/index.js +56 -56
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -852,9 +852,15 @@ export declare enum IncludeTraces {
|
|
|
852
852
|
All = 2,
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
-
/**
|
|
855
|
+
/**
|
|
856
|
+
* A directive-level problem, located at the offending directive.
|
|
857
|
+
*
|
|
858
|
+
* Its tag names the half of the `TestSourceError` union it belongs to,
|
|
859
|
+
* not its own type, because the two halves differ in shape rather than in
|
|
860
|
+
* what went wrong.
|
|
861
|
+
*/
|
|
856
862
|
export interface InlineConfigDirectiveError {
|
|
857
|
-
/** Discriminant tag for the
|
|
863
|
+
/** Discriminant tag for the union this belongs to. */
|
|
858
864
|
kind: "directive"
|
|
859
865
|
/**
|
|
860
866
|
* The solc source name the problem was found in (e.g.
|
|
@@ -864,80 +870,44 @@ export interface InlineConfigDirectiveError {
|
|
|
864
870
|
/** The contract the offending directive belongs to. */
|
|
865
871
|
contract: string
|
|
866
872
|
/**
|
|
867
|
-
* The test function the offending directive belongs to. Undefined
|
|
868
|
-
* the directive is contract-level.
|
|
873
|
+
* The test function the offending directive belongs to. Undefined
|
|
874
|
+
* when the directive is contract-level.
|
|
869
875
|
*/
|
|
870
876
|
function?: string
|
|
871
877
|
/** The 1-based line of the offending directive within the source. */
|
|
872
878
|
line: number
|
|
873
|
-
/** The problem itself
|
|
879
|
+
/** The problem itself, discriminated on its `kind` tag. */
|
|
874
880
|
problem: InlineConfigDirectiveProblem
|
|
875
881
|
}
|
|
876
882
|
|
|
877
|
-
/**
|
|
878
|
-
* A directive's offset could not be resolved to a line number within its
|
|
879
|
-
* source, meaning the parsing stages disagree about the source text, so its
|
|
880
|
-
* directives cannot be trusted.
|
|
881
|
-
*/
|
|
882
|
-
export interface InlineConfigDirectiveLocation {
|
|
883
|
-
/** Enum tag for JS. */
|
|
884
|
-
kind: "InlineConfigDirectiveLocation"
|
|
885
|
-
/** The contract the directive belongs to. */
|
|
886
|
-
contract: string
|
|
887
|
-
/**
|
|
888
|
-
* The test function the directive belongs to. Undefined when the directive
|
|
889
|
-
* is contract-level.
|
|
890
|
-
*/
|
|
891
|
-
function?: string
|
|
892
|
-
/**
|
|
893
|
-
* Why resolving the location failed, including the directive problem
|
|
894
|
-
* that was being reported.
|
|
895
|
-
*/
|
|
896
|
-
reason: string
|
|
897
|
-
}
|
|
898
|
-
|
|
899
883
|
/**
|
|
900
884
|
* The problem in a single inline-config directive, as a discriminated union
|
|
901
|
-
* over its `kind` tag
|
|
902
|
-
* consumers can map each problem onto their own error types.
|
|
885
|
+
* over its `kind` tag.
|
|
903
886
|
*/
|
|
904
887
|
export type InlineConfigDirectiveProblem = InlineConfigInvalidSyntax | InlineConfigUndeclaredProfile | InlineConfigInvalidKey | InlineConfigInvalidKeyForTestType | InlineConfigInvalidValue | InlineConfigDuplicateKey
|
|
905
888
|
|
|
906
|
-
/**
|
|
907
|
-
* The same key was specified more than once for the same function or
|
|
908
|
-
* contract.
|
|
909
|
-
*/
|
|
889
|
+
/** The same key was set twice for the same target. */
|
|
910
890
|
export interface InlineConfigDuplicateKey {
|
|
911
|
-
/**
|
|
891
|
+
/** Discriminant tag for the union this belongs to. */
|
|
912
892
|
kind: "InlineConfigDuplicateKey"
|
|
913
|
-
/** The duplicated key
|
|
893
|
+
/** The duplicated key. */
|
|
914
894
|
key: string
|
|
915
895
|
}
|
|
916
896
|
|
|
917
|
-
/**
|
|
918
|
-
* A single ill-formed inline-config entry, located so the user can find and
|
|
919
|
-
* fix it. A discriminated union over `kind`: a `source`-level entry carries no
|
|
920
|
-
* directive location, a `directive`-level entry carries the contract and line,
|
|
921
|
-
* plus the function unless the directive is contract-level. Attached to the
|
|
922
|
-
* rejected `runSolidityTests` promise as the `inlineConfigErrors` array on the
|
|
923
|
-
* thrown error.
|
|
924
|
-
*/
|
|
925
|
-
export type InlineConfigError = InlineConfigSourceError | InlineConfigDirectiveError
|
|
926
|
-
|
|
927
897
|
/** An unknown configuration key was used. */
|
|
928
898
|
export interface InlineConfigInvalidKey {
|
|
929
|
-
/**
|
|
899
|
+
/** Discriminant tag for the union this belongs to. */
|
|
930
900
|
kind: "InlineConfigInvalidKey"
|
|
931
901
|
/** The offending key, exactly as written. */
|
|
932
902
|
key: string
|
|
933
903
|
}
|
|
934
904
|
|
|
935
905
|
/**
|
|
936
|
-
* A key was used on a test of the wrong kind (e.g. `fuzz.*` on an
|
|
937
|
-
* test). Only function-level directives can produce this.
|
|
906
|
+
* A key was used on a test of the wrong kind (e.g. `fuzz.*` on an
|
|
907
|
+
* invariant test). Only function-level directives can produce this.
|
|
938
908
|
*/
|
|
939
909
|
export interface InlineConfigInvalidKeyForTestType {
|
|
940
|
-
/**
|
|
910
|
+
/** Discriminant tag for the union this belongs to. */
|
|
941
911
|
kind: "InlineConfigInvalidKeyForTestType"
|
|
942
912
|
/** The offending key, exactly as written. */
|
|
943
913
|
key: string
|
|
@@ -945,18 +915,9 @@ export interface InlineConfigInvalidKeyForTestType {
|
|
|
945
915
|
testType: string
|
|
946
916
|
}
|
|
947
917
|
|
|
948
|
-
/**
|
|
949
|
-
* The source's solc version has no supported grammar, so its inline
|
|
950
|
-
* configuration could not be parsed.
|
|
951
|
-
*/
|
|
952
|
-
export interface InlineConfigInvalidSolcVersion {
|
|
953
|
-
/** Enum tag for JS. */
|
|
954
|
-
kind: "InlineConfigInvalidSolcVersion"
|
|
955
|
-
}
|
|
956
|
-
|
|
957
918
|
/** A directive was missing the `=` separator. */
|
|
958
919
|
export interface InlineConfigInvalidSyntax {
|
|
959
|
-
/**
|
|
920
|
+
/** Discriminant tag for the union this belongs to. */
|
|
960
921
|
kind: "InlineConfigInvalidSyntax"
|
|
961
922
|
/** The offending directive line, stripped of comment decoration. */
|
|
962
923
|
directive: string
|
|
@@ -964,51 +925,19 @@ export interface InlineConfigInvalidSyntax {
|
|
|
964
925
|
|
|
965
926
|
/** A value did not match the expected type for its key. */
|
|
966
927
|
export interface InlineConfigInvalidValue {
|
|
967
|
-
/**
|
|
928
|
+
/** Discriminant tag for the union this belongs to. */
|
|
968
929
|
kind: "InlineConfigInvalidValue"
|
|
969
930
|
/** The offending key, exactly as written. */
|
|
970
931
|
key: string
|
|
971
932
|
/** The offending value, exactly as written. */
|
|
972
933
|
value: string
|
|
973
|
-
/**
|
|
934
|
+
/** What the key expects instead. */
|
|
974
935
|
expected: string
|
|
975
936
|
}
|
|
976
937
|
|
|
977
|
-
/**
|
|
978
|
-
* A source-level inline-config problem: one that could not be tied to a single
|
|
979
|
-
* directive (e.g. an unsupported solc version or an unreadable source).
|
|
980
|
-
*/
|
|
981
|
-
export interface InlineConfigSourceError {
|
|
982
|
-
/** Discriminant tag for the `InlineConfigError` union. */
|
|
983
|
-
kind: "source"
|
|
984
|
-
/**
|
|
985
|
-
* The solc source name the problem was found in (e.g.
|
|
986
|
-
* `project/test/Foo.t.sol`).
|
|
987
|
-
*/
|
|
988
|
-
sourceName: string
|
|
989
|
-
/** The problem itself; discriminate on its `kind` tag. */
|
|
990
|
-
problem: InlineConfigSourceProblem
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
/** The source's file could not be read at the path it was declared at. */
|
|
994
|
-
export interface InlineConfigSourceFileNotFound {
|
|
995
|
-
/** Enum tag for JS. */
|
|
996
|
-
kind: "InlineConfigSourceFileNotFound"
|
|
997
|
-
/** The path the source was expected at. */
|
|
998
|
-
path: string
|
|
999
|
-
/** Why reading it failed. */
|
|
1000
|
-
reason: string
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* A source-level problem, as a discriminated union over its `kind` tag. These
|
|
1005
|
-
* cannot be pinned to a single directive line, so they carry no line.
|
|
1006
|
-
*/
|
|
1007
|
-
export type InlineConfigSourceProblem = InlineConfigInvalidSolcVersion | InlineConfigSourceFileNotFound | InlineConfigDirectiveLocation
|
|
1008
|
-
|
|
1009
938
|
/** A directive named a profile the project does not declare. */
|
|
1010
939
|
export interface InlineConfigUndeclaredProfile {
|
|
1011
|
-
/**
|
|
940
|
+
/** Discriminant tag for the union this belongs to. */
|
|
1012
941
|
kind: "InlineConfigUndeclaredProfile"
|
|
1013
942
|
/** The undeclared profile name, exactly as written. */
|
|
1014
943
|
profile: string
|
|
@@ -1725,58 +1654,61 @@ export interface SolidityTestRunnerConfigArgs {
|
|
|
1725
1654
|
*/
|
|
1726
1655
|
generateGasReport?: boolean
|
|
1727
1656
|
/**
|
|
1728
|
-
*
|
|
1729
|
-
*
|
|
1730
|
-
*
|
|
1731
|
-
* Each entry is an independent, self-contained type definition. A
|
|
1732
|
-
* definition that references nested struct types must inline those
|
|
1733
|
-
* struct definitions, per the EIP-712 `encodeType` spec.
|
|
1734
|
-
*
|
|
1735
|
-
* Only the primary (leftmost) type of each entry is registered by name.
|
|
1736
|
-
* Nested struct types referenced inside an entry are *not* registered
|
|
1737
|
-
* under their own names. To look up a nested struct by name from a
|
|
1738
|
-
* cheatcode, add it as a separate top-level entry whose primary type
|
|
1739
|
-
* is the nested struct.
|
|
1740
|
-
*
|
|
1741
|
-
* The type of a struct is encoded as:
|
|
1742
|
-
*
|
|
1743
|
-
* `name ‖ "(" ‖ member₁ ‖ "," ‖ member₂ ‖ "," ‖ … ‖ memberₙ ")"`
|
|
1744
|
-
*
|
|
1745
|
-
* where each member is written as `type ‖ " " ‖ name`.
|
|
1746
|
-
*
|
|
1747
|
-
* Entries that fail to parse cause a startup error listing every bad
|
|
1748
|
-
* entry.
|
|
1657
|
+
* Maps the solc source names of the test-suite sources (e.g.
|
|
1658
|
+
* `project/test/Foo.t.sol`) to their absolute paths on disk.
|
|
1749
1659
|
*
|
|
1750
|
-
*
|
|
1660
|
+
* The test sources are parsed to collect inline test configuration
|
|
1661
|
+
* (`forge-config:`/`hardhat-config:` NatSpec directives) and the EIP-712
|
|
1662
|
+
* struct definitions served to the `eip712HashType` and
|
|
1663
|
+
* `eip712HashStruct` cheatcodes.
|
|
1751
1664
|
*
|
|
1752
|
-
*
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
1755
|
-
*
|
|
1665
|
+
* Omitting the map (or passing an empty one) disables collection
|
|
1666
|
+
* entirely: no source is read or parsed, and no run can be rejected for a
|
|
1667
|
+
* source-level problem. Both features require solc 0.8 or newer, so
|
|
1668
|
+
* disabling collection is how a project whose test sources predate that
|
|
1669
|
+
* keeps running its tests.
|
|
1756
1670
|
*
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
*
|
|
1763
|
-
* `
|
|
1671
|
+
* A non-empty map must name the source of every test suite a run selects,
|
|
1672
|
+
* with no exceptions, and every source backing a selected suite is
|
|
1673
|
+
* parsed. An entry no selected suite uses is never opened. Each problem
|
|
1674
|
+
* found across all of them — a suite with no entry, an unreadable file, a
|
|
1675
|
+
* solc version older than 0.8, a source that does not parse, an
|
|
1676
|
+
* ill-formed directive — is accumulated and reported together on
|
|
1677
|
+
* `testSourceErrors`, rejecting the run before any test executes rather
|
|
1678
|
+
* than silently leaving a suite without inline configuration or EIP-712
|
|
1679
|
+
* types.
|
|
1764
1680
|
*
|
|
1765
|
-
*
|
|
1766
|
-
* `
|
|
1767
|
-
*
|
|
1681
|
+
* Only the sources of the suites a run selects are read and parsed. Since
|
|
1682
|
+
* `testPattern` and `excludeTestPattern` filter test functions rather
|
|
1683
|
+
* than suites, that is every suite passed to the run.
|
|
1768
1684
|
*/
|
|
1769
1685
|
testSourcePaths?: Record<string, string>
|
|
1770
1686
|
/**
|
|
1771
1687
|
* Maps non-relative Solidity import paths (as written in `import`
|
|
1772
1688
|
* statements, e.g. `forge-std/src/Test.sol`) to absolute file paths on
|
|
1773
|
-
* disk, for parsing
|
|
1689
|
+
* disk, for resolving imports while parsing the test sources (see
|
|
1690
|
+
* `testSourcePaths`).
|
|
1774
1691
|
*
|
|
1775
1692
|
* Relative import paths (`./`, `../`) are resolved against the importing
|
|
1776
1693
|
* file and need no entry here; only non-relative paths (package imports)
|
|
1777
1694
|
* do.
|
|
1778
1695
|
*/
|
|
1779
1696
|
importMappings?: Record<string, string>
|
|
1697
|
+
/**
|
|
1698
|
+
* Globs matched against each source file's path relative to
|
|
1699
|
+
* `projectRoot`, with forward slashes, e.g. `contracts/vendor/**` or
|
|
1700
|
+
* `node_modules/@uniswap/permit2/**`, written without a leading `./` or
|
|
1701
|
+
* `/`. A file outside the project root is matched by its absolute path.
|
|
1702
|
+
*
|
|
1703
|
+
* A struct declared in a matching file is not collected, including when
|
|
1704
|
+
* the matching file is the test's own source. Excluding a file is how a
|
|
1705
|
+
* project settles a clash between two reachable structs of the same name.
|
|
1706
|
+
*
|
|
1707
|
+
* Exclusion only affects EIP-712 collection, never inline configuration.
|
|
1708
|
+
* There is no opposite setting, because every reachable struct is
|
|
1709
|
+
* collected. Defaults to excluding nothing.
|
|
1710
|
+
*/
|
|
1711
|
+
eip712ExcludeGlobs?: Array<string>
|
|
1780
1712
|
/**
|
|
1781
1713
|
* The Solidity test profile this run was started with.
|
|
1782
1714
|
*
|
|
@@ -1929,6 +1861,115 @@ export interface SuiteResult {
|
|
|
1929
1861
|
warnings: Array<string>
|
|
1930
1862
|
}
|
|
1931
1863
|
|
|
1864
|
+
/**
|
|
1865
|
+
* A directive's offset could not be resolved to a line number within its
|
|
1866
|
+
* source, meaning the parsing stages disagree about the source text, so
|
|
1867
|
+
* its directives cannot be trusted.
|
|
1868
|
+
*/
|
|
1869
|
+
export interface TestSourceDirectiveLocation {
|
|
1870
|
+
/** Discriminant tag for the union this belongs to. */
|
|
1871
|
+
kind: "TestSourceDirectiveLocation"
|
|
1872
|
+
/** The contract the directive belongs to. */
|
|
1873
|
+
contract: string
|
|
1874
|
+
/**
|
|
1875
|
+
* The test function the directive belongs to. Undefined when the
|
|
1876
|
+
* directive is contract-level.
|
|
1877
|
+
*/
|
|
1878
|
+
function?: string
|
|
1879
|
+
/**
|
|
1880
|
+
* Why resolving the location failed, including the directive problem
|
|
1881
|
+
* that was being reported.
|
|
1882
|
+
*/
|
|
1883
|
+
reason: string
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* A single problem found in the test sources, located so the user can find and
|
|
1888
|
+
* fix it. A discriminated union over `kind`: a `source`-level entry carries no
|
|
1889
|
+
* directive location, a `directive`-level entry carries the contract and line,
|
|
1890
|
+
* plus the function unless the directive is contract-level. Attached to the
|
|
1891
|
+
* rejected `runSolidityTests` promise as the `testSourceErrors` array on the
|
|
1892
|
+
* thrown error.
|
|
1893
|
+
*/
|
|
1894
|
+
export type TestSourceError = TestSourceFileError | InlineConfigDirectiveError
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* A problem with the source itself, which no single directive can be
|
|
1898
|
+
* blamed for.
|
|
1899
|
+
*
|
|
1900
|
+
* Its tag names the half of the `TestSourceError` union it belongs to,
|
|
1901
|
+
* not its own type, because the two halves differ in shape rather than in
|
|
1902
|
+
* what went wrong.
|
|
1903
|
+
*/
|
|
1904
|
+
export interface TestSourceFileError {
|
|
1905
|
+
/** Discriminant tag for the union this belongs to. */
|
|
1906
|
+
kind: "source"
|
|
1907
|
+
/**
|
|
1908
|
+
* The solc source name the problem was found in (e.g.
|
|
1909
|
+
* `project/test/Foo.t.sol`).
|
|
1910
|
+
*/
|
|
1911
|
+
sourceName: string
|
|
1912
|
+
/** The problem itself, discriminated on its `kind` tag. */
|
|
1913
|
+
problem: TestSourceFileProblem
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/** The source's file could not be read at the path it was declared at. */
|
|
1917
|
+
export interface TestSourceFileNotFound {
|
|
1918
|
+
/** Discriminant tag for the union this belongs to. */
|
|
1919
|
+
kind: "TestSourceFileNotFound"
|
|
1920
|
+
/** The path the source was expected at. */
|
|
1921
|
+
path: string
|
|
1922
|
+
/** Why reading it failed. */
|
|
1923
|
+
reason: string
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* A source-level problem, as a discriminated union over its `kind` tag. These
|
|
1928
|
+
* cannot be pinned to a single directive line, so they carry no line.
|
|
1929
|
+
*/
|
|
1930
|
+
export type TestSourceFileProblem = TestSourceFileNotFound | TestSourceDirectiveLocation | TestSourcePathNotProvided | TestSourceUnsupportedSolcVersion | TestSourceParseErrors
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* The source, or a file it imports, does not parse, so nothing could be
|
|
1934
|
+
* collected from it. A partially-parsed file would silently miss struct
|
|
1935
|
+
* definitions and directives, so it is reported rather than
|
|
1936
|
+
* half-collected.
|
|
1937
|
+
*/
|
|
1938
|
+
export interface TestSourceParseErrors {
|
|
1939
|
+
/** Discriminant tag for the union this belongs to. */
|
|
1940
|
+
kind: "TestSourceParseErrors"
|
|
1941
|
+
/**
|
|
1942
|
+
* The syntax diagnostics, each located at its line and, for an
|
|
1943
|
+
* import, its file. Truncated to the first few, followed by a count
|
|
1944
|
+
* of the rest.
|
|
1945
|
+
*/
|
|
1946
|
+
reasons: Array<string>
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* The test source has no `testSourcePaths` entry, so it is not located,
|
|
1951
|
+
* read, or parsed.
|
|
1952
|
+
*/
|
|
1953
|
+
export interface TestSourcePathNotProvided {
|
|
1954
|
+
/** Discriminant tag for the union this belongs to. */
|
|
1955
|
+
kind: "TestSourcePathNotProvided"
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* The solc version the source was compiled with predates the oldest
|
|
1960
|
+
* Solidity grammar available, so the source cannot be parsed at all.
|
|
1961
|
+
* Collecting inline configuration and EIP-712 struct definitions requires
|
|
1962
|
+
* solc 0.8.0 or newer, and no source is exempt. A run that selects this
|
|
1963
|
+
* one can only proceed with collection disabled entirely, by omitting
|
|
1964
|
+
* `testSourcePaths`.
|
|
1965
|
+
*/
|
|
1966
|
+
export interface TestSourceUnsupportedSolcVersion {
|
|
1967
|
+
/** Discriminant tag for the union this belongs to. */
|
|
1968
|
+
kind: "TestSourceUnsupportedSolcVersion"
|
|
1969
|
+
/** The solc version the source's artifact was compiled with. */
|
|
1970
|
+
version: string
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1932
1973
|
/** The result of a test execution. */
|
|
1933
1974
|
export declare enum TestStatus {
|
|
1934
1975
|
/** Test success */
|
package/index.js
CHANGED
|
@@ -94,8 +94,8 @@ function requireNative() {
|
|
|
94
94
|
try {
|
|
95
95
|
const binding = require('@nomicfoundation/edr-android-arm64')
|
|
96
96
|
const bindingPackageVersion = require('@nomicfoundation/edr-android-arm64/package.json').version
|
|
97
|
-
if (bindingPackageVersion !== '0.
|
|
98
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
97
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
99
99
|
}
|
|
100
100
|
return binding
|
|
101
101
|
} catch (e) {
|
|
@@ -110,8 +110,8 @@ function requireNative() {
|
|
|
110
110
|
try {
|
|
111
111
|
const binding = require('@nomicfoundation/edr-android-arm-eabi')
|
|
112
112
|
const bindingPackageVersion = require('@nomicfoundation/edr-android-arm-eabi/package.json').version
|
|
113
|
-
if (bindingPackageVersion !== '0.
|
|
114
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
113
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
115
115
|
}
|
|
116
116
|
return binding
|
|
117
117
|
} catch (e) {
|
|
@@ -131,8 +131,8 @@ function requireNative() {
|
|
|
131
131
|
try {
|
|
132
132
|
const binding = require('@nomicfoundation/edr-win32-x64-gnu')
|
|
133
133
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-gnu/package.json').version
|
|
134
|
-
if (bindingPackageVersion !== '0.
|
|
135
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
134
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
136
136
|
}
|
|
137
137
|
return binding
|
|
138
138
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('@nomicfoundation/edr-win32-x64-msvc')
|
|
149
149
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-x64-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
150
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -164,8 +164,8 @@ function requireNative() {
|
|
|
164
164
|
try {
|
|
165
165
|
const binding = require('@nomicfoundation/edr-win32-ia32-msvc')
|
|
166
166
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-ia32-msvc/package.json').version
|
|
167
|
-
if (bindingPackageVersion !== '0.
|
|
168
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
167
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
169
169
|
}
|
|
170
170
|
return binding
|
|
171
171
|
} catch (e) {
|
|
@@ -180,8 +180,8 @@ function requireNative() {
|
|
|
180
180
|
try {
|
|
181
181
|
const binding = require('@nomicfoundation/edr-win32-arm64-msvc')
|
|
182
182
|
const bindingPackageVersion = require('@nomicfoundation/edr-win32-arm64-msvc/package.json').version
|
|
183
|
-
if (bindingPackageVersion !== '0.
|
|
184
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
183
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
185
185
|
}
|
|
186
186
|
return binding
|
|
187
187
|
} catch (e) {
|
|
@@ -199,8 +199,8 @@ function requireNative() {
|
|
|
199
199
|
try {
|
|
200
200
|
const binding = require('@nomicfoundation/edr-darwin-universal')
|
|
201
201
|
const bindingPackageVersion = require('@nomicfoundation/edr-darwin-universal/package.json').version
|
|
202
|
-
if (bindingPackageVersion !== '0.
|
|
203
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
202
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
204
204
|
}
|
|
205
205
|
return binding
|
|
206
206
|
} catch (e) {
|
|
@@ -215,8 +215,8 @@ function requireNative() {
|
|
|
215
215
|
try {
|
|
216
216
|
const binding = require('@nomicfoundation/edr-darwin-x64')
|
|
217
217
|
const bindingPackageVersion = require('@nomicfoundation/edr-darwin-x64/package.json').version
|
|
218
|
-
if (bindingPackageVersion !== '0.
|
|
219
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
218
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
220
220
|
}
|
|
221
221
|
return binding
|
|
222
222
|
} catch (e) {
|
|
@@ -231,8 +231,8 @@ function requireNative() {
|
|
|
231
231
|
try {
|
|
232
232
|
const binding = require('@nomicfoundation/edr-darwin-arm64')
|
|
233
233
|
const bindingPackageVersion = require('@nomicfoundation/edr-darwin-arm64/package.json').version
|
|
234
|
-
if (bindingPackageVersion !== '0.
|
|
235
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
234
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
236
236
|
}
|
|
237
237
|
return binding
|
|
238
238
|
} catch (e) {
|
|
@@ -251,8 +251,8 @@ function requireNative() {
|
|
|
251
251
|
try {
|
|
252
252
|
const binding = require('@nomicfoundation/edr-freebsd-x64')
|
|
253
253
|
const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-x64/package.json').version
|
|
254
|
-
if (bindingPackageVersion !== '0.
|
|
255
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
254
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
256
256
|
}
|
|
257
257
|
return binding
|
|
258
258
|
} catch (e) {
|
|
@@ -267,8 +267,8 @@ function requireNative() {
|
|
|
267
267
|
try {
|
|
268
268
|
const binding = require('@nomicfoundation/edr-freebsd-arm64')
|
|
269
269
|
const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-arm64/package.json').version
|
|
270
|
-
if (bindingPackageVersion !== '0.
|
|
271
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
270
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
272
272
|
}
|
|
273
273
|
return binding
|
|
274
274
|
} catch (e) {
|
|
@@ -283,8 +283,8 @@ function requireNative() {
|
|
|
283
283
|
try {
|
|
284
284
|
const binding = require('@nomicfoundation/edr-freebsd-ppc64')
|
|
285
285
|
const bindingPackageVersion = require('@nomicfoundation/edr-freebsd-ppc64/package.json').version
|
|
286
|
-
if (bindingPackageVersion !== '0.
|
|
287
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
286
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
288
288
|
}
|
|
289
289
|
return binding
|
|
290
290
|
} catch (e) {
|
|
@@ -304,8 +304,8 @@ function requireNative() {
|
|
|
304
304
|
try {
|
|
305
305
|
const binding = require('@nomicfoundation/edr-linux-x64-musl')
|
|
306
306
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-musl/package.json').version
|
|
307
|
-
if (bindingPackageVersion !== '0.
|
|
308
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
307
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
309
309
|
}
|
|
310
310
|
return binding
|
|
311
311
|
} catch (e) {
|
|
@@ -320,8 +320,8 @@ function requireNative() {
|
|
|
320
320
|
try {
|
|
321
321
|
const binding = require('@nomicfoundation/edr-linux-x64-gnu')
|
|
322
322
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-x64-gnu/package.json').version
|
|
323
|
-
if (bindingPackageVersion !== '0.
|
|
324
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
323
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
325
325
|
}
|
|
326
326
|
return binding
|
|
327
327
|
} catch (e) {
|
|
@@ -338,8 +338,8 @@ function requireNative() {
|
|
|
338
338
|
try {
|
|
339
339
|
const binding = require('@nomicfoundation/edr-linux-arm64-musl')
|
|
340
340
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-musl/package.json').version
|
|
341
|
-
if (bindingPackageVersion !== '0.
|
|
342
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
341
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
343
343
|
}
|
|
344
344
|
return binding
|
|
345
345
|
} catch (e) {
|
|
@@ -354,8 +354,8 @@ function requireNative() {
|
|
|
354
354
|
try {
|
|
355
355
|
const binding = require('@nomicfoundation/edr-linux-arm64-gnu')
|
|
356
356
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm64-gnu/package.json').version
|
|
357
|
-
if (bindingPackageVersion !== '0.
|
|
358
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
357
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
359
359
|
}
|
|
360
360
|
return binding
|
|
361
361
|
} catch (e) {
|
|
@@ -372,8 +372,8 @@ function requireNative() {
|
|
|
372
372
|
try {
|
|
373
373
|
const binding = require('@nomicfoundation/edr-linux-arm-musleabihf')
|
|
374
374
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-musleabihf/package.json').version
|
|
375
|
-
if (bindingPackageVersion !== '0.
|
|
376
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
375
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
377
377
|
}
|
|
378
378
|
return binding
|
|
379
379
|
} catch (e) {
|
|
@@ -388,8 +388,8 @@ function requireNative() {
|
|
|
388
388
|
try {
|
|
389
389
|
const binding = require('@nomicfoundation/edr-linux-arm-gnueabihf')
|
|
390
390
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-arm-gnueabihf/package.json').version
|
|
391
|
-
if (bindingPackageVersion !== '0.
|
|
392
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
391
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
393
393
|
}
|
|
394
394
|
return binding
|
|
395
395
|
} catch (e) {
|
|
@@ -406,8 +406,8 @@ function requireNative() {
|
|
|
406
406
|
try {
|
|
407
407
|
const binding = require('@nomicfoundation/edr-linux-loong64-musl')
|
|
408
408
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-musl/package.json').version
|
|
409
|
-
if (bindingPackageVersion !== '0.
|
|
410
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
409
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
411
411
|
}
|
|
412
412
|
return binding
|
|
413
413
|
} catch (e) {
|
|
@@ -422,8 +422,8 @@ function requireNative() {
|
|
|
422
422
|
try {
|
|
423
423
|
const binding = require('@nomicfoundation/edr-linux-loong64-gnu')
|
|
424
424
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-loong64-gnu/package.json').version
|
|
425
|
-
if (bindingPackageVersion !== '0.
|
|
426
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
425
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
427
427
|
}
|
|
428
428
|
return binding
|
|
429
429
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('@nomicfoundation/edr-linux-riscv64-musl')
|
|
442
442
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-musl/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
443
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('@nomicfoundation/edr-linux-riscv64-gnu')
|
|
458
458
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-riscv64-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
459
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -473,8 +473,8 @@ function requireNative() {
|
|
|
473
473
|
try {
|
|
474
474
|
const binding = require('@nomicfoundation/edr-linux-ppc64-gnu')
|
|
475
475
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-ppc64-gnu/package.json').version
|
|
476
|
-
if (bindingPackageVersion !== '0.
|
|
477
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
476
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
478
478
|
}
|
|
479
479
|
return binding
|
|
480
480
|
} catch (e) {
|
|
@@ -489,8 +489,8 @@ function requireNative() {
|
|
|
489
489
|
try {
|
|
490
490
|
const binding = require('@nomicfoundation/edr-linux-s390x-gnu')
|
|
491
491
|
const bindingPackageVersion = require('@nomicfoundation/edr-linux-s390x-gnu/package.json').version
|
|
492
|
-
if (bindingPackageVersion !== '0.
|
|
493
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
492
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
494
494
|
}
|
|
495
495
|
return binding
|
|
496
496
|
} catch (e) {
|
|
@@ -509,8 +509,8 @@ function requireNative() {
|
|
|
509
509
|
try {
|
|
510
510
|
const binding = require('@nomicfoundation/edr-openharmony-arm64')
|
|
511
511
|
const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm64/package.json').version
|
|
512
|
-
if (bindingPackageVersion !== '0.
|
|
513
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
512
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
514
514
|
}
|
|
515
515
|
return binding
|
|
516
516
|
} catch (e) {
|
|
@@ -525,8 +525,8 @@ function requireNative() {
|
|
|
525
525
|
try {
|
|
526
526
|
const binding = require('@nomicfoundation/edr-openharmony-x64')
|
|
527
527
|
const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-x64/package.json').version
|
|
528
|
-
if (bindingPackageVersion !== '0.
|
|
529
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
528
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
530
530
|
}
|
|
531
531
|
return binding
|
|
532
532
|
} catch (e) {
|
|
@@ -541,8 +541,8 @@ function requireNative() {
|
|
|
541
541
|
try {
|
|
542
542
|
const binding = require('@nomicfoundation/edr-openharmony-arm')
|
|
543
543
|
const bindingPackageVersion = require('@nomicfoundation/edr-openharmony-arm/package.json').version
|
|
544
|
-
if (bindingPackageVersion !== '0.
|
|
545
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
544
|
+
if (bindingPackageVersion !== '0.27.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.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
546
546
|
}
|
|
547
547
|
return binding
|
|
548
548
|
} catch (e) {
|
|
@@ -683,8 +683,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
683
683
|
if (!candidateFailed) {
|
|
684
684
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
685
685
|
const bindingPackageVersion = require('@nomicfoundation/edr-wasm32-wasi/package.json').version
|
|
686
|
-
if (bindingPackageVersion !== '0.
|
|
687
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
686
|
+
if (bindingPackageVersion !== '0.27.1') {
|
|
687
|
+
throw new Error(`WASI binding package version mismatch, expected 0.27.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
wasiBinding = require('@nomicfoundation/edr-wasm32-wasi')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomicfoundation/edr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.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.72.
|
|
13
|
-
"@typescript-eslint/parser": "8.72.
|
|
12
|
+
"@typescript-eslint/eslint-plugin": "8.72.2",
|
|
13
|
+
"@typescript-eslint/parser": "8.72.2",
|
|
14
14
|
"chai": "^4.3.6",
|
|
15
15
|
"chai-as-promised": "^7.1.1",
|
|
16
16
|
"chalk": "^2.4.2",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
},
|
|
60
60
|
"types": "index.d.ts",
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"@nomicfoundation/edr-darwin-arm64": "0.
|
|
63
|
-
"@nomicfoundation/edr-darwin-x64": "0.
|
|
64
|
-
"@nomicfoundation/edr-linux-arm64-gnu": "0.
|
|
65
|
-
"@nomicfoundation/edr-linux-arm64-musl": "0.
|
|
66
|
-
"@nomicfoundation/edr-linux-x64-gnu": "0.
|
|
67
|
-
"@nomicfoundation/edr-linux-x64-musl": "0.
|
|
68
|
-
"@nomicfoundation/edr-win32-x64-msvc": "0.
|
|
62
|
+
"@nomicfoundation/edr-darwin-arm64": "0.27.1",
|
|
63
|
+
"@nomicfoundation/edr-darwin-x64": "0.27.1",
|
|
64
|
+
"@nomicfoundation/edr-linux-arm64-gnu": "0.27.1",
|
|
65
|
+
"@nomicfoundation/edr-linux-arm64-musl": "0.27.1",
|
|
66
|
+
"@nomicfoundation/edr-linux-x64-gnu": "0.27.1",
|
|
67
|
+
"@nomicfoundation/edr-linux-x64-musl": "0.27.1",
|
|
68
|
+
"@nomicfoundation/edr-win32-x64-msvc": "0.27.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"artifacts": "napi artifacts",
|