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 4.0.1 to 4.0.2

15

build/Cns.js

@@ -277,2 +277,17 @@ "use strict";

};
Cns.prototype.isRegistered = function (domain) {
return __awaiter(this, void 0, void 0, function () {
var tokenId, data;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
tokenId = this.namehash(domain);
return [4 /*yield*/, this.get(tokenId, [])];
case 1:
data = _a.sent();
return [2 /*return*/, !utils_1.isNullAddress(data.owner)];
}
});
});
};
Cns.prototype.getVerifiedData = function (domain, keys) {

@@ -279,0 +294,0 @@ return __awaiter(this, void 0, void 0, function () {

6

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

@@ -84,3 +84,3 @@ "main": "./build/index.js",

"husky": "^6.0.0",
"jest": "24.9.0",
"jest": "^27.0.4",
"lodash": "^4.17.19",

@@ -91,3 +91,3 @@ "nock": "10.0.6",

"pretty-quick": "^3.1.0",
"ts-jest": "24.2.0",
"ts-jest": "^27.0.3",
"ts-loader": "6.2.1",

@@ -94,0 +94,0 @@ "ts-node": "^8.6.2",

@@ -172,2 +172,7 @@ import { AutoNetworkConfigs, CnsSupportedNetworks, CryptoRecords, DnsRecord, DnsRecordType, EthersProvider, NamehashOptions, NamingServiceName, Provider, ResolutionMethod, SourceConfig, Web3Version0Provider, Web3Version1Provider } from './types/publicTypes';

/**
* @param domain domain name
* @returns A Promise of whether or not the domain belongs to a wallet
*/
isRegistered(domain: string): Promise<Boolean>;
/**
* @returns Produces a namehash from supported naming service in hex format with 0x prefix.

@@ -174,0 +179,0 @@ * Corresponds to ERC721 token id in case of Ethereum based naming service like CNS.

@@ -404,2 +404,20 @@ "use strict";

/**
* @param domain domain name
* @returns A Promise of whether or not the domain belongs to a wallet
*/
Resolution.prototype.isRegistered = function (domain) {
return __awaiter(this, void 0, void 0, function () {
var method;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
domain = this.prepareDomain(domain);
method = this.getNamingMethodOrThrow(domain);
return [4 /*yield*/, method.isRegistered(domain)];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
/**
* @returns Produces a namehash from supported naming service in hex format with 0x prefix.

@@ -406,0 +424,0 @@ * Corresponds to ERC721 token id in case of Ethereum based naming service like CNS.

@@ -243,4 +243,17 @@ "use strict";

};
Udapi.prototype.isRegistered = function (domain) {
return __awaiter(this, void 0, void 0, function () {
var record;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.resolve(domain)];
case 1:
record = _a.sent();
return [2 /*return*/, !utils_1.isNullAddress(record.meta.owner)];
}
});
});
};
return Udapi;
}(NamingService_1.NamingService));
exports.default = Udapi;

@@ -234,2 +234,15 @@ "use strict";

};
Zns.prototype.isRegistered = function (domain) {
return __awaiter(this, void 0, void 0, function () {
var recordAddresses;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.getRecordsAddresses(domain)];
case 1:
recordAddresses = _a.sent();
return [2 /*return*/, Boolean(recordAddresses && recordAddresses[0])];
}
});
});
};
Zns.prototype.getRecordsAddresses = function (domain) {

@@ -236,0 +249,0 @@ return __awaiter(this, void 0, void 0, function () {

@@ -0,1 +1,6 @@

## 4.0.1
- No changes made. Version bump so that it would appear as latest version on
NPM.
## 4.0.0

@@ -2,0 +7,0 @@

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

@@ -84,3 +84,3 @@ "main": "./build/index.js",

"husky": "^6.0.0",
"jest": "24.9.0",
"jest": "^27.0.4",
"lodash": "^4.17.19",

@@ -91,3 +91,3 @@ "nock": "10.0.6",

"pretty-quick": "^3.1.0",
"ts-jest": "24.2.0",
"ts-jest": "^27.0.3",
"ts-loader": "6.2.1",

@@ -94,0 +94,0 @@ "ts-node": "^8.6.2",

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