rystem.repository.client 0.2.1 → 0.2.2
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.
- package/lib/engine/Repository.js +2 -8
- package/package.json +1 -1
package/lib/engine/Repository.js
CHANGED
|
@@ -208,10 +208,7 @@ class Repository {
|
|
|
208
208
|
}
|
|
209
209
|
insert(key, value) {
|
|
210
210
|
if (!this.settings.complexKey) {
|
|
211
|
-
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Insert, `Insert?key=${key}`, 'POST', {
|
|
212
|
-
value: value,
|
|
213
|
-
key: key
|
|
214
|
-
}, false, false, false, {
|
|
211
|
+
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Insert, `Insert?key=${key}`, 'POST', value, false, false, false, {
|
|
215
212
|
'content-type': 'application/json;charset=UTF-8'
|
|
216
213
|
});
|
|
217
214
|
}
|
|
@@ -226,10 +223,7 @@ class Repository {
|
|
|
226
223
|
}
|
|
227
224
|
update(key, value) {
|
|
228
225
|
if (!this.settings.complexKey) {
|
|
229
|
-
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Update, `Update?key=${key}`, 'POST', {
|
|
230
|
-
value: value,
|
|
231
|
-
key: key
|
|
232
|
-
}, false, false, false, {
|
|
226
|
+
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Update, `Update?key=${key}`, 'POST', value, false, false, false, {
|
|
233
227
|
'content-type': 'application/json;charset=UTF-8'
|
|
234
228
|
});
|
|
235
229
|
}
|
package/package.json
CHANGED