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

@firstdorsal/powerdns-api

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firstdorsal/powerdns-api - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1

5

index.js

@@ -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.

4

package.json
{
"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 @@

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