Skip to content

Commit

Permalink
admin: updated dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 654d8f0 commit 284b479
Show file tree
Hide file tree
Showing 26 changed files with 155 additions and 97 deletions.
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.

43 changes: 25 additions & 18 deletions lib.commonjs/contract/contract.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/contract/contract.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 284b479

Please sign in to comment.