Comparing version 1.2.0 to 1.2.1
@@ -68,8 +68,7 @@ "use strict"; | ||
remove(key) { | ||
if (this._cache.delete(key)) { | ||
if (this.contains(key)) { | ||
debug('remove cache entry, key:', key); | ||
this.clearTimeout(key); | ||
return true; | ||
} | ||
return false; | ||
return this._cache.delete(key); | ||
} | ||
@@ -76,0 +75,0 @@ contains(key) { |
{ | ||
"name": "coap", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A CoAP library for node modelled after 'http'", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
227708
3487