Skip to content

Commit

Permalink
admin: updated dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Nov 11, 2023
1 parent ee79d7d commit cf00331
Show file tree
Hide file tree
Showing 32 changed files with 162 additions and 142 deletions.
40 changes: 20 additions & 20 deletions dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function stringify$1(value) {
* Returns true if the %%error%% matches an error thrown by ethers
* that matches the error %%code%%.
*
* In TypeScript envornoments, this can be used to check that %%error%%
* In TypeScript environments, this can be used to check that %%error%%
* matches an EthersError type, which means the expected properties will
* be set.
*
Expand All @@ -135,13 +135,13 @@ function isCallException(error) {
}
/**
* Returns a new Error configured to the format ethers emits errors, with
* the %%message%%, [[api:ErrorCode]] %%code%% and additioanl properties
* the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
* for the corresponding EthersError.
*
* Each error in ethers includes the version of ethers, a
* machine-readable [[ErrorCode]], and depneding on %%code%%, additional
* required properties. The error message will also include the %%meeage%%,
* ethers version, %%code%% and all aditional properties, serialized.
* machine-readable [[ErrorCode]], and depending on %%code%%, additional
* required properties. The error message will also include the %%message%%,
* ethers version, %%code%% and all additional properties, serialized.
*/
function makeError(message, code, info) {
let shortMessage = message;
Expand Down Expand Up @@ -1031,18 +1031,18 @@ function createGetUrl(options) {

/**
* Fetching content from the web is environment-specific, so Ethers
* provides an abstraction the each environment can implement to provide
* provides an abstraction that each environment can implement to provide
* this service.
*
* On [Node.js](link-node), the ``http`` and ``https`` libs are used to
* create a request object, register event listeners and process data
* and populate the [[FetchResponse]].
*
* In a browser, the [DOM fetch](link-js-fetch) is used, and the resulting
* ``Promise`` is waited on to retreive the payload.
* ``Promise`` is waited on to retrieve the payload.
*
* The [[FetchRequest]] is responsible for handling many common situations,
* such as redirects, server throttling, authentcation, etc.
* such as redirects, server throttling, authentication, etc.
*
* It also handles common gateways, such as IPFS and data URIs.
*
Expand Down Expand Up @@ -1166,7 +1166,7 @@ class FetchRequest {
#throttle;
#getUrlFunc;
/**
* The fetch URI to requrest.
* The fetch URL to request.
*/
get url() { return this.#url; }
set url(url) {
Expand All @@ -1180,15 +1180,15 @@ class FetchRequest {
* header.
*
* If %%body%% is null, the body is cleared (along with the
* intrinsic ``Content-Type``) and the .
* intrinsic ``Content-Type``).
*
* If %%body%% is a string, the intrincis ``Content-Type`` is set to
* If %%body%% is a string, the intrinsic ``Content-Type`` is set to
* ``text/plain``.
*
* If %%body%% is a Uint8Array, the intrincis ``Content-Type`` is set to
* If %%body%% is a Uint8Array, the intrinsic ``Content-Type`` is set to
* ``application/octet-stream``.
*
* If %%body%% is any other object, the intrincis ``Content-Type`` is
* If %%body%% is any other object, the intrinsic ``Content-Type`` is
* set to ``application/json``.
*/
get body() {
Expand Down Expand Up @@ -1248,7 +1248,7 @@ class FetchRequest {
* The headers that will be used when requesting the URI. All
* keys are lower-case.
*
* This object is a copy, so any chnages will **NOT** be reflected
* This object is a copy, so any changes will **NOT** be reflected
* in the ``FetchRequest``.
*
* To set a header entry, use the ``setHeader`` method.
Expand Down Expand Up @@ -1340,7 +1340,7 @@ class FetchRequest {
this.#allowInsecure = !!value;
}
/**
* The timeout (in milliseconds) to wait for a complere response.
* The timeout (in milliseconds) to wait for a complete response.
* //(default: 5 minutes)//
*/
get timeout() { return this.#timeout; }
Expand Down Expand Up @@ -1547,7 +1547,7 @@ class FetchRequest {
* to %%location%%.
*/
redirect(location) {
// Redirection; for now we only support absolute locataions
// Redirection; for now we only support absolute locations
const current = this.url.split(":")[0].toLowerCase();
const target = location.split(":")[0].toLowerCase();
// Don't allow redirecting:
Expand Down Expand Up @@ -1685,7 +1685,7 @@ class FetchRequest {
}
}
/**
* The response for a FetchREquest.
* The response for a FetchRequest.
*/
class FetchResponse {
#statusCode;
Expand Down Expand Up @@ -1815,7 +1815,7 @@ class FetchResponse {
return this.headers[key.toLowerCase()];
}
/**
* Returns true of the response has a body.
* Returns true if the response has a body.
*/
hasBody() {
return (this.#body != null);
Expand Down Expand Up @@ -22088,7 +22088,7 @@ const Testnets = "goerli kovan sepolia classicKotti optimism-goerli arbitrum-goe
* // third-party services available
* provider = getDefaultProvider("mainnet");
*
* // Connect to Polygoin, but only allow Etherscan and
* // Connect to Polygon, but only allow Etherscan and
* // INFURA and use "MY_API_KEY" in calls to Etherscan.
* provider = getDefaultProvider("matic", {
* etherscan: "MY_API_KEY",
Expand Down Expand Up @@ -24369,7 +24369,7 @@ class Wallet extends BaseWallet {
return Wallet.#fromAccount(account);
}
/**
* Creates a new random [[HDNodeWallet]] using the avavilable
* Creates a new random [[HDNodeWallet]] using the available
* [cryptographic random source](randomBytes).
*
* If there is no crytographic random source, this will throw.
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.js.map

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* Returns true if the %%error%% matches an error thrown by ethers
* that matches the error %%code%%.
*
* In TypeScript envornoments, this can be used to check that %%error%%
* In TypeScript environments, this can be used to check that %%error%%
* matches an EthersError type, which means the expected properties will
* be set.
*
Expand All @@ -141,13 +141,13 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
}
/**
* Returns a new Error configured to the format ethers emits errors, with
* the %%message%%, [[api:ErrorCode]] %%code%% and additioanl properties
* the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
* for the corresponding EthersError.
*
* Each error in ethers includes the version of ethers, a
* machine-readable [[ErrorCode]], and depneding on %%code%%, additional
* required properties. The error message will also include the %%meeage%%,
* ethers version, %%code%% and all aditional properties, serialized.
* machine-readable [[ErrorCode]], and depending on %%code%%, additional
* required properties. The error message will also include the %%message%%,
* ethers version, %%code%% and all additional properties, serialized.
*/
function makeError(message, code, info) {
let shortMessage = message;
Expand Down Expand Up @@ -1037,18 +1037,18 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==

/**
* Fetching content from the web is environment-specific, so Ethers
* provides an abstraction the each environment can implement to provide
* provides an abstraction that each environment can implement to provide
* this service.
*
* On [Node.js](link-node), the ``http`` and ``https`` libs are used to
* create a request object, register event listeners and process data
* and populate the [[FetchResponse]].
*
* In a browser, the [DOM fetch](link-js-fetch) is used, and the resulting
* ``Promise`` is waited on to retreive the payload.
* ``Promise`` is waited on to retrieve the payload.
*
* The [[FetchRequest]] is responsible for handling many common situations,
* such as redirects, server throttling, authentcation, etc.
* such as redirects, server throttling, authentication, etc.
*
* It also handles common gateways, such as IPFS and data URIs.
*
Expand Down Expand Up @@ -1172,7 +1172,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
#throttle;
#getUrlFunc;
/**
* The fetch URI to requrest.
* The fetch URL to request.
*/
get url() { return this.#url; }
set url(url) {
Expand All @@ -1186,15 +1186,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* header.
*
* If %%body%% is null, the body is cleared (along with the
* intrinsic ``Content-Type``) and the .
* intrinsic ``Content-Type``).
*
* If %%body%% is a string, the intrincis ``Content-Type`` is set to
* If %%body%% is a string, the intrinsic ``Content-Type`` is set to
* ``text/plain``.
*
* If %%body%% is a Uint8Array, the intrincis ``Content-Type`` is set to
* If %%body%% is a Uint8Array, the intrinsic ``Content-Type`` is set to
* ``application/octet-stream``.
*
* If %%body%% is any other object, the intrincis ``Content-Type`` is
* If %%body%% is any other object, the intrinsic ``Content-Type`` is
* set to ``application/json``.
*/
get body() {
Expand Down Expand Up @@ -1254,7 +1254,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* The headers that will be used when requesting the URI. All
* keys are lower-case.
*
* This object is a copy, so any chnages will **NOT** be reflected
* This object is a copy, so any changes will **NOT** be reflected
* in the ``FetchRequest``.
*
* To set a header entry, use the ``setHeader`` method.
Expand Down Expand Up @@ -1346,7 +1346,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
this.#allowInsecure = !!value;
}
/**
* The timeout (in milliseconds) to wait for a complere response.
* The timeout (in milliseconds) to wait for a complete response.
* //(default: 5 minutes)//
*/
get timeout() { return this.#timeout; }
Expand Down Expand Up @@ -1553,7 +1553,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* to %%location%%.
*/
redirect(location) {
// Redirection; for now we only support absolute locataions
// Redirection; for now we only support absolute locations
const current = this.url.split(":")[0].toLowerCase();
const target = location.split(":")[0].toLowerCase();
// Don't allow redirecting:
Expand Down Expand Up @@ -1691,7 +1691,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
}
}
/**
* The response for a FetchREquest.
* The response for a FetchRequest.
*/
class FetchResponse {
#statusCode;
Expand Down Expand Up @@ -1821,7 +1821,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
return this.headers[key.toLowerCase()];
}
/**
* Returns true of the response has a body.
* Returns true if the response has a body.
*/
hasBody() {
return (this.#body != null);
Expand Down Expand Up @@ -22094,7 +22094,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* // third-party services available
* provider = getDefaultProvider("mainnet");
*
* // Connect to Polygoin, but only allow Etherscan and
* // Connect to Polygon, but only allow Etherscan and
* // INFURA and use "MY_API_KEY" in calls to Etherscan.
* provider = getDefaultProvider("matic", {
* etherscan: "MY_API_KEY",
Expand Down Expand Up @@ -24375,7 +24375,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
return Wallet.#fromAccount(account);
}
/**
* Creates a new random [[HDNodeWallet]] using the avavilable
* Creates a new random [[HDNodeWallet]] using the available
* [cryptographic random source](randomBytes).
*
* If there is no crytographic random source, this will throw.
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.umd.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/wordlists-extra.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wordlists-extra.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/default-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { WebSocketLike } from "./provider-websocket.js";
* // third-party services available
* provider = getDefaultProvider("mainnet");
*
* // Connect to Polygoin, but only allow Etherscan and
* // Connect to Polygon, but only allow Etherscan and
* // INFURA and use "MY_API_KEY" in calls to Etherscan.
* provider = getDefaultProvider("matic", {
* etherscan: "MY_API_KEY",
Expand Down
2 changes: 1 addition & 1 deletion lib.commonjs/providers/default-provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/signer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface Signer extends Addressable, ContractRunner, NameResolver {
*/
sendTransaction(tx: TransactionRequest): Promise<TransactionResponse>;
/**
* Signers an [[link-eip-191]] prefixed personal message.
* Signs an [[link-eip-191]] prefixed personal message.
*
* If the %%message%% is a string, it is signed as UTF-8 encoded bytes. It is **not**
* interpretted as a [[BytesLike]]; so the string ``"0x1234"`` is signed as six
Expand Down
20 changes: 10 additions & 10 deletions lib.commonjs/utils/errors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import type { TransactionRequest, TransactionReceipt, TransactionResponse } from
import type { FetchRequest, FetchResponse } from "./fetch.js";
/**
* An error may contain additional properties, but those must not
* conflict with any impliciat properties.
* conflict with any implicit properties.
*/
export type ErrorInfo<T> = Omit<T, "code" | "name" | "message" | "shortMessage"> & {
shortMessage?: string;
};
/**
* All errors emitted by ethers have an **ErrorCode** to help
* identify and coalesce errors to simplfy programatic analysis.
* identify and coalesce errors to simplify programmatic analysis.
*
* Each **ErrorCode** is the %%code%% proerty of a coresponding
* [[EthersError]].
Expand Down Expand Up @@ -123,7 +123,7 @@ export interface NotImplementedError extends EthersError<"NOT_IMPLEMENTED"> {
/**
* This Error indicates that the attempted operation is not supported.
*
* This could range from a specifc JSON-RPC end-point not supporting
* This could range from a specific JSON-RPC end-point not supporting
* a feature to a specific configuration of an object prohibiting the
* operation.
*
Expand All @@ -137,7 +137,7 @@ export interface UnsupportedOperationError extends EthersError<"UNSUPPORTED_OPER
operation: string;
}
/**
* This Error indicates a proplem connecting to a network.
* This Error indicates a problem connecting to a network.
*/
export interface NetworkError extends EthersError<"NETWORK_ERROR"> {
/**
Expand Down Expand Up @@ -183,7 +183,7 @@ export interface TimeoutError extends EthersError<"TIMEOUT"> {
}
/**
* This Error indicates that a provided set of data cannot
* be correctly interpretted.
* be correctly interpreted.
*/
export interface BadDataError extends EthersError<"BAD_DATA"> {
/**
Expand Down Expand Up @@ -451,7 +451,7 @@ export type CodedEthersError<T> = T extends "UNKNOWN_ERROR" ? UnknownError : T e
* Returns true if the %%error%% matches an error thrown by ethers
* that matches the error %%code%%.
*
* In TypeScript envornoments, this can be used to check that %%error%%
* In TypeScript environments, this can be used to check that %%error%%
* matches an EthersError type, which means the expected properties will
* be set.
*
Expand All @@ -473,13 +473,13 @@ export declare function isError<K extends ErrorCode, T extends CodedEthersError<
export declare function isCallException(error: any): error is CallExceptionError;
/**
* Returns a new Error configured to the format ethers emits errors, with
* the %%message%%, [[api:ErrorCode]] %%code%% and additioanl properties
* the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
* for the corresponding EthersError.
*
* Each error in ethers includes the version of ethers, a
* machine-readable [[ErrorCode]], and depneding on %%code%%, additional
* required properties. The error message will also include the %%meeage%%,
* ethers version, %%code%% and all aditional properties, serialized.
* machine-readable [[ErrorCode]], and depending on %%code%%, additional
* required properties. The error message will also include the %%message%%,
* ethers version, %%code%% and all additional properties, serialized.
*/
export declare function makeError<K extends ErrorCode, T extends CodedEthersError<K>>(message: string, code: K, info?: ErrorInfo<T>): T;
/**
Expand Down
Loading

0 comments on commit cf00331

Please sign in to comment.