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.8.0 to 2.9.0

4

CHANGELOG.md
# Changelog
### Release 2.9.0
- NEW: Added WHOIS privacy renewal (GH-17)
### Release 2.8.0

@@ -4,0 +8,0 @@

2

lib/dnsimple.js

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

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

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

@@ -255,2 +255,23 @@ 'use strict';

/**
* Renew whois privacy for the domain.
*
* @see https://developer.dnsimple.com/v2/registrar/whois-privacy/#renew
*
* @example
* client.registrar.renewWhoisPrivacy(1010, 'example.com').then(function(response) {
* // handle response
* }, function(error) {
* // handle error
* });
*
* @param {number} accountId The account ID
* @param {string} domainName The domain name
* @param {Object} [options]
* @return {Promise}
*/
renewWhoisPrivacy(accountId, domainName, options = {}) {
return this._client.post(this._registrar_path(accountId, domainName, 'whois_privacy/renewals'), null, options);
}
// Domain Delegation

@@ -257,0 +278,0 @@

{
"name": "dnsimple",
"version": "2.8.0",
"version": "2.9.0",
"description": "A Node.JS client for the DNSimple API.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -29,3 +29,5 @@ # DNSimple Node.JS Client

```javascript
var client = require('dnsimple')({
"use strict";
var client = require("dnsimple")({
accessToken: process.env.TOKEN,

@@ -42,3 +44,3 @@ });

// List your domains
var accountId = '1010';
var accountId = "1010";
client.domains.listDomains(accountId).then(function(response) {

@@ -50,3 +52,3 @@ console.log(response.data);

client.domains.listDomains(accountId, {page: 3}).then(function(response) {
client.domains.listDomains(accountId, { page: 3 }).then(function(response) {
console.log(response.data);

@@ -58,3 +60,3 @@ }, function(error) {

// Create a domain
client.domains.createDomain(accountId, "example.com").then(function(response) {
client.domains.createDomain(accountId, { name: "example.com" }).then(function(response) {
console.log(response.data);

@@ -73,2 +75,8 @@ }, function(error) {

To be run like this:
```shell
$ TOKEN=[TOKEN VALUE GOES HERE] node test.js
```
Take a look at [https://github.com/dnsimple/hello-domains-node](https://github.com/dnsimple/hello-domains-node) for an example app that authorizes via OAuth and displays your domain list.

@@ -75,0 +83,0 @@

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