Comparing version 2.7.0 to 2.8.0
# Changelog | ||
### Release 2.8.0 | ||
- NEW: Added zone distribution and zone record distribution (GH-16) | ||
#### Release 2.7.0 | ||
@@ -5,0 +8,0 @@ |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
98344
2630
2
1
20
+ Addednpm@^6.1.0
+ Addednpm@6.14.18(transitive)