Skip to content

Commit

Permalink
admin: update dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 25, 2022
1 parent 03545aa commit 32c9a09
Show file tree
Hide file tree
Showing 28 changed files with 249 additions and 207 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog
This change log is managed by `admin/cmds/update-versions` but may be manually updated.


ethers/v5.5.4 (2022-01-24 16:45)
--------------------------------

- Support invalid but popular IPFS URI format. ([#2271](https://github.com/ethers-io/ethers.js/issues/2271), [#2527](https://github.com/ethers-io/ethers.js/issues/2527), [#2590](https://github.com/ethers-io/ethers.js/issues/2590); [03545aa](https://github.com/ethers-io/ethers.js/commit/03545aa78b0e7bd177e22432e4842b0580a11d7d))

ethers/v5.5.3 (2022-01-06 03:52)
--------------------------------

Expand Down
321 changes: 151 additions & 170 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions packages/ethers/dist/ethers.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -18140,7 +18140,7 @@ var bech32 = {
fromWords: fromWords
};

const version$m = "providers/5.5.2";
const version$m = "providers/5.5.3";

"use strict";
const logger$s = new Logger(version$m);
Expand Down Expand Up @@ -18769,7 +18769,16 @@ function _parseBytes(result) {
}
// Trim off the ipfs:// prefix and return the default gateway URL
function getIpfsLink(link) {
return `https:/\/gateway.ipfs.io/ipfs/${link.substring(7)}`;
if (link.match(/^ipfs:\/\/ipfs\//i)) {
link = link.substring(12);
}
else if (link.match(/^ipfs:\/\//i)) {
link = link.substring(7);
}
else {
logger$t.throwArgumentError("unsupported IPFS format", "link", link);
}
return `https:/\/gateway.ipfs.io/ipfs/${link}`;
}
class Resolver {
// The resolvedAddress is only for creating a ReverseLookup resolver
Expand Down Expand Up @@ -18963,12 +18972,17 @@ class Resolver {
if (metadataUrl == null) {
return null;
}
linkage.push({ type: "metadata-url", content: metadataUrl });
linkage.push({ type: "metadata-url-base", content: metadataUrl });
// ERC-1155 allows a generic {id} in the URL
if (scheme === "erc1155") {
metadataUrl = metadataUrl.replace("{id}", tokenId.substring(2));
linkage.push({ type: "metadata-url-expanded", content: metadataUrl });
}
// Transform IPFS metadata links
if (metadataUrl.match(/^ipfs:/i)) {
metadataUrl = getIpfsLink(metadataUrl);
}
linkage.push({ type: "metadata-url", content: metadataUrl });
// Get the token metadata
const metadata = yield fetchJson(metadataUrl);
if (!metadata) {
Expand Down Expand Up @@ -23183,7 +23197,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
Indexed: Indexed
});

const version$p = "ethers/5.5.3";
const version$p = "ethers/5.5.4";

"use strict";
const logger$I = new Logger(version$p);
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.esm.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions packages/ethers/dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -20264,7 +20264,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "providers/5.5.2";
exports.version = "providers/5.5.3";

});

Expand Down Expand Up @@ -21001,7 +21001,16 @@
}
// Trim off the ipfs:// prefix and return the default gateway URL
function getIpfsLink(link) {
return "https://gateway.ipfs.io/ipfs/" + link.substring(7);
if (link.match(/^ipfs:\/\/ipfs\//i)) {
link = link.substring(12);
}
else if (link.match(/^ipfs:\/\//i)) {
link = link.substring(7);
}
else {
logger.throwArgumentError("unsupported IPFS format", "link", link);
}
return "https://gateway.ipfs.io/ipfs/" + link;
}
var Resolver = /** @class */ (function () {
// The resolvedAddress is only for creating a ReverseLookup resolver
Expand Down Expand Up @@ -21240,12 +21249,17 @@
if (metadataUrl == null) {
return [2 /*return*/, null];
}
linkage.push({ type: "metadata-url", content: metadataUrl });
linkage.push({ type: "metadata-url-base", content: metadataUrl });
// ERC-1155 allows a generic {id} in the URL
if (scheme === "erc1155") {
metadataUrl = metadataUrl.replace("{id}", tokenId.substring(2));
linkage.push({ type: "metadata-url-expanded", content: metadataUrl });
}
// Transform IPFS metadata links
if (metadataUrl.match(/^ipfs:/i)) {
metadataUrl = getIpfsLink(metadataUrl);
}
linkage.push({ type: "metadata-url", content: metadataUrl });
return [4 /*yield*/, (0, lib$q.fetchJson)(metadataUrl)];
case 16:
metadata = _h.sent();
Expand Down Expand Up @@ -26890,7 +26904,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "ethers/5.5.3";
exports.version = "ethers/5.5.4";

});

Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.umd.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "ethers/5.5.3";
export declare const version = "ethers/5.5.4";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/ethers/lib.esm/_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 packages/ethers/lib/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "ethers/5.5.3";
export declare const version = "ethers/5.5.4";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/ethers/lib/_version.js

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

6 changes: 3 additions & 3 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@ethersproject/networks": "5.5.2",
"@ethersproject/pbkdf2": "5.5.0",
"@ethersproject/properties": "5.5.0",
"@ethersproject/providers": "5.5.2",
"@ethersproject/providers": "5.5.3",
"@ethersproject/random": "5.5.1",
"@ethersproject/rlp": "5.5.0",
"@ethersproject/sha2": "5.5.0",
Expand Down Expand Up @@ -62,7 +62,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"sideEffects": false,
"tarballHash": "0x4d7e20ca7a9a62eec334b0c44f1f74c2c98048af2e427ce765ccf73415097489",
"tarballHash": "0x5524e230bf0cb7cfc55f49f6684ca222fadc45c9efd38da9f8524174798c0ac2",
"types": "./lib/index.d.ts",
"version": "5.5.3"
"version": "5.5.4"
}
2 changes: 1 addition & 1 deletion packages/ethers/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "ethers/5.5.3";
export const version = "ethers/5.5.4";
2 changes: 1 addition & 1 deletion packages/providers/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "providers/5.5.2";
export declare const version = "providers/5.5.3";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/providers/lib.esm/_version.js

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

Loading

0 comments on commit 32c9a09

Please sign in to comment.