Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unstoppabledomains/resolution

Package Overview
Dependencies
Maintainers
6
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unstoppabledomains/resolution - npm Package Compare versions

Comparing version 1.12.0 to 1.16.0

2

build/package.json
{
"name": "@unstoppabledomains/resolution",
"version": "1.11.1",
"version": "1.15.0",
"description": "Domain Resolution for blockchain domains",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

@@ -1,3 +0,3 @@

import { TickerVersion } from "../publicTypes";
import Contract from "./contract";
import { TickerVersion } from '../publicTypes';
import Contract from './contract';
/**

@@ -4,0 +4,0 @@ * Parses object in format { "key.key2.key3" : value } into { key: { key2: {key3: value } } }

@@ -77,3 +77,3 @@ "use strict";

if (network === void 0) { network = 'mainnet'; }
return "https://" + network + ".infura.com/v3/" + infura;
return "https://" + network + ".infura.io/v3/" + infura;
}

@@ -101,3 +101,4 @@ exports.signedInfuraLink = signedInfuraLink;

function isUpToDateResolver(resolverAddress) {
return resolverAddress.toLowerCase() === '0xb66dce2da6afaaa98f2013446dbcb0f4b0ab2842';
return (resolverAddress.toLowerCase() ===
'0xb66dce2da6afaaa98f2013446dbcb0f4b0ab2842');
}

@@ -115,3 +116,3 @@ exports.isUpToDateResolver = isUpToDateResolver;

/** @internal */
var CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK = "0x960844";
var CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK = '0x960844';
function getStartingBlock(contract, tokenId) {

@@ -122,7 +123,8 @@ return __awaiter(this, void 0, void 0, function () {

switch (_a.label) {
case 0: return [4 /*yield*/, contract.fetchLogs("ResetRecords", tokenId)];
case 0: return [4 /*yield*/, contract.fetchLogs('ResetRecords', tokenId)];
case 1:
logs = _a.sent();
lastResetEvent = logs[logs.length - 1];
return [2 /*return*/, (lastResetEvent === null || lastResetEvent === void 0 ? void 0 : lastResetEvent.blockNumber) || CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK];
return [2 /*return*/, ((lastResetEvent === null || lastResetEvent === void 0 ? void 0 : lastResetEvent.blockNumber) ||
CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK)];
}

@@ -135,3 +137,3 @@ });

if (value instanceof Array) {
return value.every(function (item) { return typeof item === "string"; });
return value.every(function (item) { return typeof item === 'string'; });
}

@@ -138,0 +140,0 @@ return false;

{
"name": "@unstoppabledomains/resolution",
"version": "1.12.0",
"version": "1.16.0",
"description": "Domain Resolution for blockchain domains",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc