rystem.repository.client 0.2.6 → 0.2.7
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 +5 -5
- package/package.json +1 -1
package/lib/engine/Repository.js
CHANGED
|
@@ -222,7 +222,7 @@ class Repository {
|
|
|
222
222
|
}
|
|
223
223
|
get(key) {
|
|
224
224
|
if (!this.settings.complexKey) {
|
|
225
|
-
const keyString =
|
|
225
|
+
const keyString = this.keyToPlainForQuery(key);
|
|
226
226
|
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Get, `Get?key=${keyString}`, 'GET');
|
|
227
227
|
}
|
|
228
228
|
else {
|
|
@@ -233,7 +233,7 @@ class Repository {
|
|
|
233
233
|
}
|
|
234
234
|
insert(key, value) {
|
|
235
235
|
if (!this.settings.complexKey) {
|
|
236
|
-
const keyString =
|
|
236
|
+
const keyString = this.keyToPlainForQuery(key);
|
|
237
237
|
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Insert, `Insert?key=${keyString}`, 'POST', value, false, false, false, {
|
|
238
238
|
'content-type': 'application/json;charset=UTF-8'
|
|
239
239
|
});
|
|
@@ -249,7 +249,7 @@ class Repository {
|
|
|
249
249
|
}
|
|
250
250
|
update(key, value) {
|
|
251
251
|
if (!this.settings.complexKey) {
|
|
252
|
-
const keyString =
|
|
252
|
+
const keyString = this.keyToPlainForQuery(key);
|
|
253
253
|
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Update, `Update?key=${keyString}`, 'POST', value, false, false, false, {
|
|
254
254
|
'content-type': 'application/json;charset=UTF-8'
|
|
255
255
|
});
|
|
@@ -265,7 +265,7 @@ class Repository {
|
|
|
265
265
|
}
|
|
266
266
|
exist(key) {
|
|
267
267
|
if (!this.settings.complexKey) {
|
|
268
|
-
const keyString =
|
|
268
|
+
const keyString = this.keyToPlainForQuery(key);
|
|
269
269
|
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Exist, `Exist?key=${keyString}`, 'GET');
|
|
270
270
|
}
|
|
271
271
|
else {
|
|
@@ -276,7 +276,7 @@ class Repository {
|
|
|
276
276
|
}
|
|
277
277
|
delete(key) {
|
|
278
278
|
if (!this.settings.complexKey) {
|
|
279
|
-
const keyString =
|
|
279
|
+
const keyString = this.keyToPlainForQuery(key);
|
|
280
280
|
return this.makeRequest(RepositoryEndpoint_1.RepositoryEndpoint.Delete, `Delete?key=${keyString}`, 'GET');
|
|
281
281
|
}
|
|
282
282
|
else {
|
package/package.json
CHANGED