backendless 6.5.7 → 6.5.8

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.
@@ -74,35 +74,6 @@ var ListStore = /*#__PURE__*/function (_HiveStore) {
74
74
  url: this.getBaseURL()
75
75
  });
76
76
  }
77
- }, {
78
- key: "set",
79
- value: function set(value, index) {
80
- if (typeof index === 'undefined') {
81
- if (!value || !Array.isArray(value) || !value.length || !(0, _utils.isHiveValueValid)(value)) {
82
- throw new Error('Value must be provided and must be a list of valid JSON items.');
83
- }
84
-
85
- return this.app.request.put({
86
- url: this.getBaseURL(),
87
- data: value
88
- });
89
- }
90
-
91
- if (!(0, _utils.isHiveValueValid)(value)) {
92
- throw new Error('Value must be provided and must be one of types: string, number, boolean, object, array.');
93
- }
94
-
95
- if (typeof index !== 'number' || isNaN(index)) {
96
- throw new Error('Index must be a number.');
97
- }
98
-
99
- return this.app.request.put({
100
- url: "".concat(this.getBaseURL(), "/").concat(index),
101
- data: {
102
- value: value
103
- }
104
- });
105
- }
106
77
  }, {
107
78
  key: "length",
108
79
  value: function length() {
@@ -152,22 +152,6 @@ var MapStore = /*#__PURE__*/function (_HiveStore) {
152
152
  }
153
153
  });
154
154
  }
155
- }, {
156
- key: "add",
157
- value: function add(data) {
158
- if (!_utils["default"].isObject(data)) {
159
- throw new Error('Payload must be an object.');
160
- }
161
-
162
- if (!Object.keys(data).length) {
163
- throw new Error('Provided object must have at least 1 key.');
164
- }
165
-
166
- return this.app.request.put({
167
- url: "".concat(this.getBaseURL(), "/add"),
168
- data: data
169
- });
170
- }
171
155
  }, {
172
156
  key: "increment",
173
157
  value: function increment(key, count) {
@@ -74,35 +74,6 @@ var ListStore = /*#__PURE__*/function (_HiveStore) {
74
74
  url: this.getBaseURL()
75
75
  });
76
76
  }
77
- }, {
78
- key: "set",
79
- value: function set(value, index) {
80
- if (typeof index === 'undefined') {
81
- if (!value || !Array.isArray(value) || !value.length || !(0, _utils.isHiveValueValid)(value)) {
82
- throw new Error('Value must be provided and must be a list of valid JSON items.');
83
- }
84
-
85
- return this.app.request.put({
86
- url: this.getBaseURL(),
87
- data: value
88
- });
89
- }
90
-
91
- if (!(0, _utils.isHiveValueValid)(value)) {
92
- throw new Error('Value must be provided and must be one of types: string, number, boolean, object, array.');
93
- }
94
-
95
- if (typeof index !== 'number' || isNaN(index)) {
96
- throw new Error('Index must be a number.');
97
- }
98
-
99
- return this.app.request.put({
100
- url: "".concat(this.getBaseURL(), "/").concat(index),
101
- data: {
102
- value: value
103
- }
104
- });
105
- }
106
77
  }, {
107
78
  key: "length",
108
79
  value: function length() {
@@ -152,22 +152,6 @@ var MapStore = /*#__PURE__*/function (_HiveStore) {
152
152
  }
153
153
  });
154
154
  }
155
- }, {
156
- key: "add",
157
- value: function add(data) {
158
- if (!_utils["default"].isObject(data)) {
159
- throw new Error('Payload must be an object.');
160
- }
161
-
162
- if (!Object.keys(data).length) {
163
- throw new Error('Provided object must have at least 1 key.');
164
- }
165
-
166
- return this.app.request.put({
167
- url: "".concat(this.getBaseURL(), "/add"),
168
- data: data
169
- });
170
- }
171
155
  }, {
172
156
  key: "increment",
173
157
  value: function increment(key, count) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backendless",
3
- "version": "6.5.7",
3
+ "version": "6.5.8",
4
4
  "description": "Backendless JavaScript SDK for Node.js and the browser",
5
5
  "browser": "dist/backendless.js",
6
6
  "main": "lib/index.js",
@@ -40,36 +40,6 @@ export class ListStore extends HiveStore {
40
40
  })
41
41
  }
42
42
 
43
- set(value, index) {
44
- if (typeof index === 'undefined') {
45
- if (!value || !Array.isArray(value) || !value.length || !isHiveValueValid(value)) {
46
- throw new Error('Value must be provided and must be a list of valid JSON items.')
47
- }
48
-
49
- return this.app.request
50
- .put({
51
- url : this.getBaseURL(),
52
- data: value
53
- })
54
- }
55
-
56
- if (!isHiveValueValid(value)) {
57
- throw new Error('Value must be provided and must be one of types: string, number, boolean, object, array.')
58
- }
59
-
60
- if (typeof index !== 'number' || isNaN(index)) {
61
- throw new Error('Index must be a number.')
62
- }
63
-
64
- return this.app.request
65
- .put({
66
- url : `${this.getBaseURL()}/${index}`,
67
- data: {
68
- value
69
- }
70
- })
71
- }
72
-
73
43
  length() {
74
44
  return this.app.request
75
45
  .get({
@@ -119,22 +119,6 @@ export class MapStore extends HiveStore {
119
119
  })
120
120
  }
121
121
 
122
- add(data) {
123
- if (!Utils.isObject(data)) {
124
- throw new Error('Payload must be an object.')
125
- }
126
-
127
- if (!Object.keys(data).length) {
128
- throw new Error('Provided object must have at least 1 key.')
129
- }
130
-
131
- return this.app.request
132
- .put({
133
- url: `${this.getBaseURL()}/add`,
134
- data,
135
- })
136
- }
137
-
138
122
  increment(key, count) {
139
123
  if (!key || typeof key !== 'string') {
140
124
  throw new Error('Key must be provided and must be a string.')