@firstdorsal/powerdns-api
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -208,3 +208,3 @@ "use strict"; | ||
*/ | ||
getZone = async zoneName => { | ||
async getZone(zoneName) { | ||
if (typeof zoneName !== "string") throw new TypeError("zoneName must be of type string"); | ||
@@ -214,3 +214,4 @@ const a = await this.getZoneWithMeta(zoneName); | ||
return a && a.rrsets ? a.rrsets : []; | ||
}; | ||
} | ||
/** | ||
@@ -217,0 +218,0 @@ * Deletes the whole zone with all attached metadata and rrsets. |
{ | ||
"name": "@firstdorsal/powerdns-api", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "A Nodejs client for the PowerDns API with the most relevant functions.", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"jest": "^26.6.3", | ||
"jsdoc": "^3.6.6", | ||
"jsdoc": "^3.6.7", | ||
"jsdoc-to-markdown": "^7.0.1" | ||
@@ -34,0 +34,0 @@ }, |
@@ -102,6 +102,6 @@ # Powerdns API | ||
* [new module.exports.PowerdnsClient(baseurl, apikey)](#new_module_powerdns-api.PowerdnsClient_new) | ||
* [.getZone](#module_powerdns-api.PowerdnsClient+getZone) ⇒ <code>object</code> | ||
* [.getZones()](#module_powerdns-api.PowerdnsClient+getZones) ⇒ <code>Array</code> | ||
* [.createZone(zoneName, [kind])](#module_powerdns-api.PowerdnsClient+createZone) ⇒ <code>Object</code> | ||
* [.getZoneWithMeta(zoneName)](#module_powerdns-api.PowerdnsClient+getZoneWithMeta) ⇒ <code>object</code> | ||
* [.getZone(zoneName)](#module_powerdns-api.PowerdnsClient+getZone) ⇒ <code>object</code> | ||
* [.deleteZone(zoneName)](#module_powerdns-api.PowerdnsClient+deleteZone) ⇒ <code>boolean</code> | ||
@@ -131,6 +131,6 @@ * [.setHomogeneousRecords(records)](#module_powerdns-api.PowerdnsClient+setHomogeneousRecords) ⇒ <code>boolean</code> | ||
* [new module.exports.PowerdnsClient(baseurl, apikey)](#new_module_powerdns-api.PowerdnsClient_new) | ||
* [.getZone](#module_powerdns-api.PowerdnsClient+getZone) ⇒ <code>object</code> | ||
* [.getZones()](#module_powerdns-api.PowerdnsClient+getZones) ⇒ <code>Array</code> | ||
* [.createZone(zoneName, [kind])](#module_powerdns-api.PowerdnsClient+createZone) ⇒ <code>Object</code> | ||
* [.getZoneWithMeta(zoneName)](#module_powerdns-api.PowerdnsClient+getZoneWithMeta) ⇒ <code>object</code> | ||
* [.getZone(zoneName)](#module_powerdns-api.PowerdnsClient+getZone) ⇒ <code>object</code> | ||
* [.deleteZone(zoneName)](#module_powerdns-api.PowerdnsClient+deleteZone) ⇒ <code>boolean</code> | ||
@@ -176,18 +176,2 @@ * [.setHomogeneousRecords(records)](#module_powerdns-api.PowerdnsClient+setHomogeneousRecords) ⇒ <code>boolean</code> | ||
``` | ||
<a name="module_powerdns-api.PowerdnsClient+getZone"></a> | ||
#### powerdnsClient.getZone ⇒ <code>object</code> | ||
Returns array with rrsets for zone. | ||
**Kind**: instance property of [<code>PowerdnsClient</code>](#module_powerdns-api.PowerdnsClient) | ||
**Returns**: <code>object</code> - just the rrsets of the zone | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| zoneName | <code>string</code> | takes a domain name | | ||
**Example** | ||
```js | ||
await pdns.getZone('example.com'); | ||
``` | ||
<a name="module_powerdns-api.PowerdnsClient+getZones"></a> | ||
@@ -237,2 +221,18 @@ | ||
``` | ||
<a name="module_powerdns-api.PowerdnsClient+getZone"></a> | ||
#### powerdnsClient.getZone(zoneName) ⇒ <code>object</code> | ||
Returns array with rrsets for zone. | ||
**Kind**: instance method of [<code>PowerdnsClient</code>](#module_powerdns-api.PowerdnsClient) | ||
**Returns**: <code>object</code> - just the rrsets of the zone | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| zoneName | <code>string</code> | takes a domain name | | ||
**Example** | ||
```js | ||
await pdns.getZone('example.com'); | ||
``` | ||
<a name="module_powerdns-api.PowerdnsClient+deleteZone"></a> | ||
@@ -239,0 +239,0 @@ |
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
66036