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

pkgcloud

Package Overview
Dependencies
Maintainers
5
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgcloud - npm Package Compare versions

Comparing version 0.8.8 to 0.8.9

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## v0.8.9
* Fixing a bug when rackspace.dns.createRecord returns an array
## v0.8.8

@@ -2,0 +5,0 @@ * Adding support for uploading a tar.gz to Cloud files and extract on upload

@@ -141,3 +141,7 @@ /*

createRecord: function (zone, record, callback) {
this.createRecords(zone, [ record ], callback);
this.createRecords(zone, [ record ], function(err, records) {
return err
? callback(err)
: callback(err, records[0]);
});
},

@@ -144,0 +148,0 @@

2

package.json
{
"name": "pkgcloud",
"description": "An infrastructure-as-a-service agnostic cloud library for node.js",
"version": "0.8.8",
"version": "0.8.9",
"author": "Nodejitsu Inc <info@nodejitsu.com>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -13,7 +13,8 @@ # pkgcloud [![Build Status](https://secure.travis-ci.org/nodejitsu/pkgcloud.png?branch=master)](http://travis-ci.org/nodejitsu/pkgcloud) [![NPM version](https://badge.fury.io/js/pkgcloud.png)](http://badge.fury.io/js/pkgcloud)

* [Downloading Files](#downloading)
* [Database](#database)
* [Database](#databases)
* [DNS](#dns)
* _Fine Print_
* [Installation](#installation)
* [Tests](#tests)
* [Code Coverage](#coverage)
* [Code Coverage](#code-coverage)
* [Contribute!](#contributing)

@@ -25,9 +26,10 @@ * [Roadmap](#roadmap)

Currently there are three service types which are handled by pkgcloud:
Currently there are four service types which are handled by pkgcloud:
* [Compute](#compute)
* [Storage](#storage)
* [Database](#database)
* [Database](#databases)
* [DNS](#dns)
In our [Roadmap](#roadmap), we plan to add support for DNS and CDN services, but _these are not currently available._
In our [Roadmap](#roadmap), we plan to add support for Block Storage, Load Balancers, CDN services and more, but _these are not currently available._

@@ -73,2 +75,3 @@ <a name="basic-apis"></a>

* **Storage:** [Container](#container), [File](#file)
* **DNS:** [Zone](#zone), [Record](#record)

@@ -89,3 +92,3 @@ <a name="supported-apis"></a>

* [Amazon](docs/providers/amazon.md#using-storage)
* **[Database](#database)**
* **[Database](#databases)**
* [IrisCouch](docs/providers/iriscouch.md)

@@ -96,4 +99,5 @@ * [MongoLab](docs/providers/mongolab.md)

* [RedisToGo](docs/providers/redistogo.md)
* **[DNS](#dns)**
* [Rackspace](docs/providers/rackspace/dns.md)
<a name="compute"></a>
## Compute

@@ -125,3 +129,2 @@

<a name="server"></a>
### Server

@@ -134,3 +137,2 @@ * `client.getServers(function (err, servers) { })`

<a name="image"></a>
### Image

@@ -142,3 +144,2 @@ * `client.getImages(function (err, images) { })`

<a name="flavor"></a>
### Flavor

@@ -148,3 +149,2 @@ * `client.getFlavors(function (err, flavors) { })`

<a name="storage"></a>
## Storage

@@ -177,3 +177,2 @@

<a name="container"></a>
### Container

@@ -185,3 +184,2 @@ * `client.getContainers(function (err, containers) { })`

<a name="file"></a>
### File

@@ -222,3 +220,2 @@ * `client.upload(options, function (err) { })`

<a name="database"></a>
## Databases

@@ -264,3 +261,41 @@

<a name="installation"></a>
## DNS
The `pkgcloud.dns` service is designed to make it easy to manage DNS zones and records on varius infrastructure providers. **_Special attention has been paid so that methods are streams and pipe-capable._**
To get started with a `pkgcloud.dns` client just create one:
``` js
var client = require('pkgcloud').dns.createClient({
//
// The name of the provider (e.g. "rackspace")
//
provider: 'provider-name',
//
// ... Provider specific credentials
//
});
```
Currently, the only provider for DNS is [Rackspace](docs/providers/rackspace/dns.md). For more information please read the [Rackspace DNS](docs/providers/rackspace/storage.md) documentation.
* [Rackspace](docs/providers/rackspace/dns.md)
Each instance of `pkgcloud.dns.Client` returned from `pkgcloud.dns.createClient` has a set of uniform APIs:
### Zone
* `client.getZones(details, function (err, zones) { })`
* `client.getZone(zone, function (err, zone) { })`
* `client.createZone(details, function (err, zone) { })`
* `client.updateZone(zone, function (err) { })`
* `client.deleteZone(zone, function (err) { })`
### Record
* `client.getRecords(zone, function (err, records) { })`
* `client.getRecord(zone, record, function (err, record) { })`
* `client.createRecord(zone, record, function (err, record) { })`
* `client.updateRecord(zone, record, function (err, record) { })`
* `client.deleteRecord(zone, record, function (err) { })`
## Installation

@@ -272,3 +307,2 @@

<a name="tests"></a>
## Tests

@@ -338,4 +372,2 @@ For run the tests you will need `mocha@1.9.x` or higher, please install it and then run:

<a name="coverage"></a>
## Code Coverage

@@ -381,3 +413,3 @@ You will need jscoverage installed in order to run code coverage. There seems to be many forks of the jscoverage project, but the recommended one is [node-jscoverage](https://github.com/visionmedia/node-jscoverage), because we use [node-coveralls](https://github.com/cainus/node-coveralls) to report coverage to http://coveralls.io. node-coveralls requires output from [mocha-lcov-reporter](https://github.com/StevenLooman/mocha-lcov-reporter), whose documentation mentions node-jscoverage.

1. Backport latest fixes from `node-cloudfiles` and `node-cloudservers`
2. Include `CDN` and `DNS` services.
2. Add `CDN`, `BlockStorage`, `LoadBalancer` services.
3. Implement `fs` compatible file API.

@@ -384,0 +416,0 @@ 4. Support additional service providers.

Sorry, the diff of this file is not supported yet

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