@envoy/envoy-integrations-sdk 1.3.5 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -104,6 +104,18 @@ class EnvoyPluginStorage {
|
|
|
104
104
|
|
|
105
105
|
return this.pipeline().unset(key).executeSingle();
|
|
106
106
|
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Wrapper for single pipeline update.
|
|
110
|
+
*
|
|
111
|
+
* @param {string} key
|
|
112
|
+
* @param {*} value
|
|
113
|
+
* @returns {Promise<PluginStorageItem>}
|
|
114
|
+
*/
|
|
115
|
+
update(key, value) {
|
|
116
|
+
|
|
117
|
+
return this.pipeline().update(key, value).executeSingle();
|
|
118
|
+
}
|
|
107
119
|
}
|
|
108
120
|
|
|
109
121
|
module.exports = EnvoyPluginStorage;
|
|
@@ -137,6 +137,19 @@ class EnvoyPluginStoragePipeline {
|
|
|
137
137
|
|
|
138
138
|
return this.addCommand({ action: 'unset', key });
|
|
139
139
|
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Updates a value for a storage item,
|
|
143
|
+
* and returns that item.
|
|
144
|
+
*
|
|
145
|
+
* @param {string} key
|
|
146
|
+
* @param value
|
|
147
|
+
* @returns {EnvoyPluginStoragePipeline}
|
|
148
|
+
*/
|
|
149
|
+
update(key, value) {
|
|
150
|
+
|
|
151
|
+
return this.addCommand({ action: 'update', key, value });
|
|
152
|
+
}
|
|
140
153
|
}
|
|
141
154
|
|
|
142
155
|
module.exports = EnvoyPluginStoragePipeline;
|