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 Jul 24, 2023
1 parent ba36079 commit ff9d124
Show file tree
Hide file tree
Showing 28 changed files with 163 additions and 99 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Change Log

This change log is maintained by `src.ts/_admin/update-changelog.ts` but may also be manually updated.

ethers/v6.7.0 (2023-07-24 17:47)
--------------------------------

- Use empty string for unnamed parameters in JSON output instead of undefined ([#4248](https://github.com/ethers-io/ethers.js/issues/4248); [8c2652c](https://github.com/ethers-io/ethers.js/commit/8c2652c8cb4d054207d89688d30930869d9d3f8b), [ba36079](https://github.com/ethers-io/ethers.js/commit/ba36079a285706694532ce726568c4c447acad47)).
- Return undefined for Contract properties that do not exist instead of throwing an error ([#4266](https://github.com/ethers-io/ethers.js/issues/4266); [5bf7b34](https://github.com/ethers-io/ethers.js/commit/5bf7b3494ed62952fc387b4368a0bdc86dfe163e)).

ethers/v6.6.5 (2023-07-24 00:04)
--------------------------------

Expand Down
47 changes: 27 additions & 20 deletions dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
/**
* The current version of Ethers.
*/
const version = "6.6.5";
const version = "6.7.0";

/**
* Property helper functions.
Expand Down Expand Up @@ -10446,7 +10446,7 @@ class ParamType {
format = "sighash";
}
if (format === "json") {
const name = this.name || undefined; // @TODO: Make this "" (minor bump)
const name = this.name || "";
if (this.isArray()) {
const result = JSON.parse(this.arrayChildren.format("json"));
result.name = name;
Expand Down Expand Up @@ -14568,17 +14568,20 @@ class BaseContract {
setInternal(this, { addrPromise, addr, deployTx, subs });
// Add the event filters
const filters = new Proxy({}, {
get: (target, _prop, receiver) => {
get: (target, prop, receiver) => {
// Pass important checks (like `then` for Promise) through
if (passProperties.indexOf(_prop) >= 0) {
return Reflect.get(target, _prop, receiver);
if (typeof (prop) === "symbol" || passProperties.indexOf(prop) >= 0) {
return Reflect.get(target, prop, receiver);
}
const prop = String(_prop);
const result = this.getEvent(prop);
if (result) {
return result;
try {
return this.getEvent(prop);
}
catch (error) {
if (!isError(error, "INVALID_ARGUMENT") || error.argument !== "key") {
throw error;
}
}
throw new Error(`unknown contract event: ${prop}`);
return undefined;
},
has: (target, prop) => {
// Pass important checks (like `then` for Promise) through
Expand All @@ -14594,22 +14597,26 @@ class BaseContract {
});
// Return a Proxy that will respond to functions
return new Proxy(this, {
get: (target, _prop, receiver) => {
if (_prop in target || passProperties.indexOf(_prop) >= 0 || typeof (_prop) === "symbol") {
return Reflect.get(target, _prop, receiver);
get: (target, prop, receiver) => {
if (typeof (prop) === "symbol" || prop in target || passProperties.indexOf(prop) >= 0) {
return Reflect.get(target, prop, receiver);
}
const prop = String(_prop);
const result = target.getFunction(prop);
if (result) {
return result;
// Undefined properties should return undefined
try {
return target.getFunction(prop);
}
catch (error) {
if (!isError(error, "INVALID_ARGUMENT") || error.argument !== "key") {
throw error;
}
}
throw new Error(`unknown contract method: ${prop}`);
return undefined;
},
has: (target, prop) => {
if (prop in target || passProperties.indexOf(prop) >= 0 || typeof (prop) === "symbol") {
if (typeof (prop) === "symbol" || prop in target || passProperties.indexOf(prop) >= 0) {
return Reflect.has(target, prop);
}
return target.interface.hasFunction(String(prop));
return target.interface.hasFunction(prop);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.min.js

Large diffs are not rendered by default.

47 changes: 27 additions & 20 deletions dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
/**
* The current version of Ethers.
*/
const version = "6.6.5";
const version = "6.7.0";

/**
* Property helper functions.
Expand Down Expand Up @@ -10452,7 +10452,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
format = "sighash";
}
if (format === "json") {
const name = this.name || undefined; // @TODO: Make this "" (minor bump)
const name = this.name || "";
if (this.isArray()) {
const result = JSON.parse(this.arrayChildren.format("json"));
result.name = name;
Expand Down Expand Up @@ -14574,17 +14574,20 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
setInternal(this, { addrPromise, addr, deployTx, subs });
// Add the event filters
const filters = new Proxy({}, {
get: (target, _prop, receiver) => {
get: (target, prop, receiver) => {
// Pass important checks (like `then` for Promise) through
if (passProperties.indexOf(_prop) >= 0) {
return Reflect.get(target, _prop, receiver);
if (typeof (prop) === "symbol" || passProperties.indexOf(prop) >= 0) {
return Reflect.get(target, prop, receiver);
}
const prop = String(_prop);
const result = this.getEvent(prop);
if (result) {
return result;
try {
return this.getEvent(prop);
}
catch (error) {
if (!isError(error, "INVALID_ARGUMENT") || error.argument !== "key") {
throw error;
}
}
throw new Error(`unknown contract event: ${prop}`);
return undefined;
},
has: (target, prop) => {
// Pass important checks (like `then` for Promise) through
Expand All @@ -14600,22 +14603,26 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
});
// Return a Proxy that will respond to functions
return new Proxy(this, {
get: (target, _prop, receiver) => {
if (_prop in target || passProperties.indexOf(_prop) >= 0 || typeof (_prop) === "symbol") {
return Reflect.get(target, _prop, receiver);
get: (target, prop, receiver) => {
if (typeof (prop) === "symbol" || prop in target || passProperties.indexOf(prop) >= 0) {
return Reflect.get(target, prop, receiver);
}
const prop = String(_prop);
const result = target.getFunction(prop);
if (result) {
return result;
// Undefined properties should return undefined
try {
return target.getFunction(prop);
}
catch (error) {
if (!isError(error, "INVALID_ARGUMENT") || error.argument !== "key") {
throw error;
}
}
throw new Error(`unknown contract method: ${prop}`);
return undefined;
},
has: (target, prop) => {
if (prop in target || passProperties.indexOf(prop) >= 0 || typeof (prop) === "symbol") {
if (typeof (prop) === "symbol" || prop in target || passProperties.indexOf(prop) >= 0) {
return Reflect.has(target, prop);
}
return target.interface.hasFunction(String(prop));
return target.interface.hasFunction(prop);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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 dist/wordlists-extra.min.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions lib.commonjs/_tests/test-abi.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/_tests/test-abi.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.commonjs/_version.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/abi/fragments.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/abi/fragments.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.commonjs/contract/contract.d.ts.map

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

Loading

0 comments on commit ff9d124

Please sign in to comment.