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

@foxiko/client

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxiko/client - npm Package Compare versions

Comparing version 1.0.46 to 1.0.47

22

cloud/controllers/DomainController.js

@@ -34,2 +34,24 @@ const {Domain, DNSServer, DNSRecord} = require("./../entities/Domain");

/**
* Checks if a specific domain is available to register
* @param domain {String} domain
* @param tld {String} tld
* @returns {Promise<{price: {Number}, available: {Boolean}}>}
*/
async getAvailability(domain, tld) {
const data = await this.client.request()
.url(`${CLOUD.DOMAIN.AVAILABLE}`)
.contentType().json()
.body({
domain,
tld,
})
.responseType().json()
.send();
if(data['error']) {
throw `${data['error']} ${data['error_description']}`;
}
return data;
}
/**
* Gets a specific domain

@@ -36,0 +58,0 @@ * @param id {String} archive ID

2

package.json
{
"name": "@foxiko/client",
"version": "1.0.46",
"version": "1.0.47",
"description": "",

@@ -5,0 +5,0 @@ "main": "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