Comparing version 0.1.4 to 0.1.5
@@ -119,2 +119,8 @@ module.exports = function () { | ||
Redis.prototype.close = function () { | ||
if (!this.isReady()) | ||
return next(new Error("redis:end()|state=" + this.state)); | ||
this.redis.end(); | ||
} | ||
function create(config) { | ||
@@ -121,0 +127,0 @@ return new Redis(config); |
@@ -8,3 +8,2 @@ module.exports = function () { | ||
// GET | ||
@@ -44,3 +43,3 @@ app.get('/dns/api/v1/name/:name?', function (req, res) { | ||
// PUT | ||
// PUT | ||
app.put('/dns/api/v1/name/:name', function (req, res) { | ||
@@ -88,3 +87,3 @@ var record = { | ||
} | ||
createArpa(record.A ? record.A.slice(0): []); | ||
createArpa(record.A ? record.A instanceof(Array) ? record.A.slice(0) : [record.A] : []); | ||
}); | ||
@@ -91,0 +90,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"description": "A DNS Server with an Web UI and using Redis a configuration store", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"keywords": [ | ||
@@ -15,8 +15,8 @@ "dns" | ||
"dependencies": { | ||
"hbo-dnsd": "0.9.7", | ||
"hbo-dnsd": "0.9.8", | ||
"native-dns": "0.6.1", | ||
"node-options": "0.0.3", | ||
"redis": "0.10.3", | ||
"tomahawk": "0.1.2", | ||
"winston": "0.7.2" | ||
"node-options": "0.0.6", | ||
"redis": "0.12.1", | ||
"tomahawk": "0.1.5", | ||
"winston": "0.7.3" | ||
}, | ||
@@ -23,0 +23,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
577
246473
30
+ Addedhbo-dnsd@0.9.8(transitive)
+ Addednode-options@0.0.6(transitive)
+ Addedredis@0.12.1(transitive)
+ Addedtomahawk@0.1.5(transitive)
- Removedhbo-dnsd@0.9.7(transitive)
- Removednode-options@0.0.3(transitive)
- Removedredis@0.10.3(transitive)
- Removedtomahawk@0.1.2(transitive)
- Removedwinston@0.7.2(transitive)
Updatedhbo-dnsd@0.9.8
Updatednode-options@0.0.6
Updatedredis@0.12.1
Updatedtomahawk@0.1.5
Updatedwinston@0.7.3