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.
@@ -222,7 +222,7 @@ class Repository {
222
222
  }
223
223
  get(key) {
224
224
  if (!this.settings.complexKey) {
225
- const keyString = encodeURIComponent(this.keyToPlainForQuery(key));
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 = encodeURIComponent(this.keyToPlainForQuery(key));
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 = encodeURIComponent(this.keyToPlainForQuery(key));
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 = encodeURIComponent(this.keyToPlainForQuery(key));
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 = encodeURIComponent(this.keyToPlainForQuery(key));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rystem.repository.client",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "author": "Alessandro Rapiti <alessandro.rapiti44@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "It can simplify the integration with rystem repository server.",