Comparing version 0.8.6 to 0.8.7
@@ -0,1 +1,4 @@ | ||
## v0.8.7 | ||
* Adding Rackspace CloudDNS as a DNS service | ||
## v0.8.5 | ||
@@ -2,0 +5,0 @@ * Fixing a bug introduced by pre-release services listed in the Openstack Service Catalog |
@@ -40,3 +40,3 @@ /* | ||
// | ||
['storage', 'cdn', 'providers', 'database'].forEach(function (key) { | ||
['storage', 'cdn', 'providers', 'database', 'dns'].forEach(function (key) { | ||
pkgcloud[key] = {}; | ||
@@ -49,3 +49,3 @@ }); | ||
// | ||
['compute', 'storage', 'cdn', 'database'].forEach(function (service) { | ||
['compute', 'storage', 'cdn', 'database', 'dns'].forEach(function (service) { | ||
pkgcloud[service].createClient = function (options) { | ||
@@ -52,0 +52,0 @@ if (!options.provider) { |
@@ -32,3 +32,3 @@ /* | ||
// | ||
// #### @attributes {Object} Attributes to match. | ||
// #### @attributes {Object|Function} Attributes to match. Optionally provide a matching function | ||
// #### @* {*} **Optional** Key and expected value | ||
@@ -72,6 +72,11 @@ // #### @interval {Integer} Time between pools in ms. | ||
for (var i = 0; i < keys.length; i++) { | ||
if (attributes[keys[i]] !== resource[keys[i]]) { | ||
equal = false; | ||
break; | ||
if (typeof attributes === 'function') { | ||
equal = attributes(resource); | ||
} | ||
else { | ||
for (var i = 0; i < keys.length; i++) { | ||
if (attributes[keys[i]] !== resource[keys[i]]) { | ||
equal = false; | ||
break; | ||
} | ||
} | ||
@@ -78,0 +83,0 @@ } |
@@ -11,1 +11,2 @@ /* | ||
exports.database = require('./database'); | ||
exports.dns = require('./dns'); |
{ | ||
"name": "pkgcloud", | ||
"description": "An infrastructure-as-a-service agnostic cloud library for node.js", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"author": "Nodejitsu Inc <info@nodejitsu.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
646254
212
14515