@logzio-node-toolbox/consul
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -116,5 +116,6 @@ import retry from 'async-retry'; | ||
key, | ||
value | ||
value, | ||
...options | ||
}) { | ||
return this.consulInstance.kv.set(this.buildKey(key), JSON.stringify(value)); | ||
return this.consulInstance.kv.set(this.buildKey(key), JSON.stringify(value), options); | ||
} | ||
@@ -415,6 +416,14 @@ | ||
// `ToObject` abstract operation | ||
// https://tc39.es/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has$1 = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
var has$1 = function hasOwn(it, key) { | ||
return hasOwnProperty.call(toObject(it), key); | ||
}; | ||
@@ -535,3 +544,3 @@ | ||
})('versions', []).push({ | ||
version: '3.10.0', | ||
version: '3.11.0', | ||
mode: 'global', | ||
@@ -557,2 +566,3 @@ copyright: '© 2021 Denis Pushkarev (zloirock.ru)' | ||
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; | ||
var WeakMap$1 = global$1.WeakMap; | ||
@@ -584,2 +594,3 @@ var set, get, has; | ||
set = function (it, metadata) { | ||
if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
@@ -602,2 +613,3 @@ wmset.call(store, it, metadata); | ||
set = function (it, metadata) { | ||
if (has$1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
@@ -604,0 +616,0 @@ createNonEnumerableProperty(it, STATE, metadata); |
{ | ||
"name": "@logzio-node-toolbox/consul", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Consul easy use for json configs and service discovery", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
79911
2171
2