Comparing version 1.1.0 to 1.1.1
@@ -260,4 +260,7 @@ var EventEmitter = require('events').EventEmitter; | ||
// Make a copy so the code using this module can not modify kvData by accident | ||
var kvDataCopy = JSON.parse(JSON.stringify(self.kvData)); | ||
// Emit "update" event every time there is a change | ||
self.emit('update', null, kvData, changedKeys); | ||
self.emit('update', null, kvDataCopy, changedKeys); | ||
@@ -267,3 +270,3 @@ // Emit "ready" event only once | ||
self.sentReady = true; | ||
self.emit('ready', null, kvData); | ||
self.emit('ready', null, kvDataCopy); | ||
} | ||
@@ -270,0 +273,0 @@ }); |
{ | ||
"name": "consulea", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Load Consul keys, environment vars, and command line arguments in a predictable, standardized way.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16457
307