+5
-0
@@ -5,2 +5,7 @@ # Changelog | ||
| ## Release 4.4.0 | ||
| - NEW: Added `registrar.getDomainPrices` to retrieve whether a domain is premium and the prices to register, transfer, and renew. (dnsimple/dnsimple-node#88) | ||
| - REMOVED: Drop the inexistent `domains.resetDomainToken` method (dnsimple-node#89) | ||
| ## Release 4.3.0 | ||
@@ -7,0 +12,0 @@ |
+1
-1
@@ -21,3 +21,3 @@ 'use strict'; | ||
| Dnsimple.VERSION = '4.3.0'; | ||
| Dnsimple.VERSION = '4.4.0'; | ||
| Dnsimple.DEFAULT_TIMEOUT = 120000; | ||
@@ -24,0 +24,0 @@ Dnsimple.DEFAULT_BASE_URL = 'https://api.dnsimple.com'; |
@@ -148,16 +148,2 @@ 'use strict'; | ||
| /** | ||
| * Resets the domain token. | ||
| * | ||
| * @see https://developer.dnsimple.com/v2/domains/#reset-token | ||
| * | ||
| * @param {number} accountId The account ID | ||
| * @param {string|number} domainId The domain name or numeric ID | ||
| * @param {Object} [options] | ||
| * @return {Promise} | ||
| */ | ||
| resetDomainToken (accountId, domainId, options = {}) { | ||
| return this._client.post(`/${accountId}/domains/${domainId}/token`, null, options); | ||
| } | ||
| /** | ||
| * Lists the collaborators in the account attached to the given domain. | ||
@@ -164,0 +150,0 @@ * |
@@ -56,2 +56,23 @@ 'use strict'; | ||
| /** | ||
| * Get prices for a domain. | ||
| * | ||
| * @see https://developer.dnsimple.com/v2/registrar/#getDomainPrices | ||
| * | ||
| * @example Check prices for example.com: | ||
| * client.registrar.getDomainPrices(1010, "example.com").then(function(response) { | ||
| * // handle response | ||
| * }, function(error) { | ||
| * // handle error | ||
| * }); | ||
| * | ||
| * @param {number} accountId The account ID | ||
| * @param {string} domainName The domain name the domain name to find the prices | ||
| * @param {Object} [options] | ||
| * @return {Promise} | ||
| */ | ||
| getDomainPrices (accountId, domainName, options = {}) { | ||
| return this._client.get(this._registrarPath(accountId, domainName, 'prices'), options); | ||
| } | ||
| /** | ||
| * Registers a domain. | ||
@@ -58,0 +79,0 @@ * |
+1
-1
| { | ||
| "name": "dnsimple", | ||
| "version": "4.3.0", | ||
| "version": "4.4.0", | ||
| "description": "A Node.JS client for the DNSimple API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Network access
Supply chain riskThis module accesses the network.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
104860
0.48%2698
0.26%2
100%