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

dnsimple

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnsimple - npm Package Compare versions

Comparing version 2.7.0 to 2.8.0

3

CHANGELOG.md
# Changelog
### Release 2.8.0
- NEW: Added zone distribution and zone record distribution (GH-16)
#### Release 2.7.0

@@ -5,0 +8,0 @@

2

lib/dnsimple.js

@@ -22,3 +22,3 @@ 'use strict';

Dnsimple.VERSION = '2.7.0';
Dnsimple.VERSION = '2.8.0';
Dnsimple.DEFAULT_TIMEOUT = require('http').createServer().timeout;

@@ -25,0 +25,0 @@ Dnsimple.DEFAULT_BASE_URL = 'https://api.dnsimple.com';

@@ -130,2 +130,31 @@ 'use strict';

/**
* Checks if a zone change is fully distributed to all our nameservers of our regions.
*
* @see https://developer.dnsimple.com/v2/zones/#checkZoneDistribution
*
* @param {number} accountId The account ID
* @param {string|number} zoneId The zone name or numeric ID
* @param {Object} [options]
* @return {Promise}
*/
checkZoneDistribution(accountId, zoneId, options = {}) {
return this._client.get(`/${accountId}/zones/${zoneId}/distribution`, options);
}
/**
* Checks if a zone record is fully distributed to all our nameservers of our regions.
*
* @see https://developer.dnsimple.com/v2/zones/#checkZoneRecordDistribution
*
* @param {number} accountId The account ID
* @param {string|number} zoneId The zone name or numeric ID
* @param {number} recordId The record ID
* @param {Object} [options]
* @return {Promise}
*/
checkZoneRecordDistribution(accountId, zoneId, recordId, options = {}) {
return this._client.get(`/${accountId}/zones/${zoneId}/records/${recordId}/distribution`, options);
}
/**
* Lists the records in the zone.

@@ -132,0 +161,0 @@ *

{
"name": "dnsimple",
"version": "2.7.0",
"description": "DNSimple v2 API wrapper",
"version": "2.8.0",
"description": "A Node.JS client for the DNSimple API.",
"keywords": [

@@ -30,9 +30,11 @@ "dnsimple",

"devDependencies": {
"chai": "^1.10.0",
"chai-as-promised": "^4.1.1",
"jscs": "^2.11.0",
"mocha": "^2.1.0",
"nock": "^8.0.0"
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"jscs": "^3.0.7",
"mocha": "^5.2.0",
"nock": "^9.3.2"
},
"dependencies": {},
"dependencies": {
"npm": "^6.1.0"
},
"license": "MIT",

@@ -39,0 +41,0 @@ "scripts": {

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