@memo-code/memo 0.8.56 → 0.8.57
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/dist/index.js +71 -71
- package/dist/web/server/main.cjs +2 -2
- package/package.json +1 -1
package/dist/web/server/main.cjs
CHANGED
|
@@ -396813,7 +396813,7 @@ ${content}
|
|
|
396813
396813
|
var import_promises16 = require("dns/promises");
|
|
396814
396814
|
var import_node_net = require("net");
|
|
396815
396815
|
var import_readability = require_readability();
|
|
396816
|
-
var
|
|
396816
|
+
var import_ipaddr = __toESM2(require_ipaddr2(), 1);
|
|
396817
396817
|
var import_jsdom = require_api3();
|
|
396818
396818
|
var import_robots_parser = __toESM2(require_robots_parser(), 1);
|
|
396819
396819
|
var import_turndown = __toESM2(require_turndown_cjs(), 1);
|
|
@@ -396868,7 +396868,7 @@ ${content}
|
|
|
396868
396868
|
return ALLOWED_PROTOCOLS.has(url2.protocol);
|
|
396869
396869
|
}
|
|
396870
396870
|
function isBlockedIpRange(address) {
|
|
396871
|
-
const parsed =
|
|
396871
|
+
const parsed = import_ipaddr.default.parse(address);
|
|
396872
396872
|
if (parsed.kind() === "ipv6") {
|
|
396873
396873
|
if (parsed.range() === "ipv4Mapped") {
|
|
396874
396874
|
return isBlockedIpRange(parsed.toIPv4Address().toString());
|