backendless 6.6.0 → 6.6.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.
@@ -1 +1,399 @@
1
+ /*! ../helpers/regeneratorRuntime */
2
+
3
+ /*! ../transport */
4
+
5
+ /*! ./assertThisInitialized.js */
6
+
7
+ /*! ./client */
8
+
9
+ /*! ./config */
10
+
11
+ /*! ./constants */
12
+
13
+ /*! ./debug */
14
+
15
+ /*! ./getPrototypeOf.js */
16
+
17
+ /*! ./keys */
18
+
19
+ /*! ./listeners */
20
+
21
+ /*! ./manager */
22
+
23
+ /*! ./methods */
24
+
25
+ /*! ./on */
26
+
27
+ /*! ./polling */
28
+
29
+ /*! ./polling-jsonp */
30
+
31
+ /*! ./polling-xhr */
32
+
33
+ /*! ./scope-connector */
34
+
35
+ /*! ./session */
36
+
37
+ /*! ./setPrototypeOf.js */
38
+
39
+ /*! ./socket */
40
+
41
+ /*! ./subscriptions */
42
+
43
+ /*! ./superPropBase.js */
44
+
45
+ /*! ./transport */
46
+
47
+ /*! ./transports/index */
48
+
49
+ /*! ./typeof.js */
50
+
51
+ /*! ./url */
52
+
53
+ /*! ./utf8 */
54
+
55
+ /*! ./utils */
56
+
57
+ /*! ./websocket */
58
+
59
+ /*! @babel/runtime/helpers/applyDecoratedDescriptor */
60
+
61
+ /*! @babel/runtime/helpers/asyncToGenerator */
62
+
63
+ /*! @babel/runtime/helpers/classCallCheck */
64
+
65
+ /*! @babel/runtime/helpers/createClass */
66
+
67
+ /*! @babel/runtime/helpers/defineProperty */
68
+
69
+ /*! @babel/runtime/helpers/get */
70
+
71
+ /*! @babel/runtime/helpers/getPrototypeOf */
72
+
73
+ /*! @babel/runtime/helpers/inherits */
74
+
75
+ /*! @babel/runtime/helpers/interopRequireDefault */
76
+
77
+ /*! @babel/runtime/helpers/possibleConstructorReturn */
78
+
79
+ /*! @babel/runtime/helpers/typeof */
80
+
81
+ /*! @babel/runtime/regenerator */
82
+
83
+ /*! after */
84
+
85
+ /*! arraybuffer.slice */
86
+
87
+ /*! backendless-request */
88
+
89
+ /*! backo2 */
90
+
91
+ /*! base64-arraybuffer */
92
+
93
+ /*! blob */
94
+
95
+ /*! component-bind */
96
+
97
+ /*! component-emitter */
98
+
99
+ /*! component-inherit */
100
+
101
+ /*! debug */
102
+
103
+ /*! engine.io-client */
104
+
105
+ /*! engine.io-parser */
106
+
107
+ /*! has-binary2 */
108
+
109
+ /*! has-cors */
110
+
1
111
  /*! https://mths.be/utf8js v2.1.2 by @mathias */
112
+
113
+ /*! indexof */
114
+
115
+ /*! isarray */
116
+
117
+ /*! ms */
118
+
119
+ /*! parseqs */
120
+
121
+ /*! parseuri */
122
+
123
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
124
+
125
+ /*! socket.io-client */
126
+
127
+ /*! socket.io-parser */
128
+
129
+ /*! to-array */
130
+
131
+ /*! ws */
132
+
133
+ /*! xmlhttprequest-ssl */
134
+
135
+ /*! yeast */
136
+
137
+ /*!********************!*\
138
+ !*** ws (ignored) ***!
139
+ \********************/
140
+
141
+ /*!**********************!*\
142
+ !*** ./src/index.js ***!
143
+ \**********************/
144
+
145
+ /*!**********************!*\
146
+ !*** ./src/utils.js ***!
147
+ \**********************/
148
+
149
+ /*!***********************!*\
150
+ !*** ./src/client.js ***!
151
+ \***********************/
152
+
153
+ /*!***********************!*\
154
+ !*** ./src/config.js ***!
155
+ \***********************/
156
+
157
+ /*!***********************!*\
158
+ !*** ./src/socket.js ***!
159
+ \***********************/
160
+
161
+ /*!************************!*\
162
+ !*** ./src/methods.js ***!
163
+ \************************/
164
+
165
+ /*!************************!*\
166
+ !*** ./src/session.js ***!
167
+ \************************/
168
+
169
+ /*!**************************!*\
170
+ !*** ./src/constants.js ***!
171
+ \**************************/
172
+
173
+ /*!**************************!*\
174
+ !*** ./src/listeners.js ***!
175
+ \**************************/
176
+
177
+ /*!******************************!*\
178
+ !*** ./src/socket-parser.js ***!
179
+ \******************************/
180
+
181
+ /*!******************************!*\
182
+ !*** ./src/subscriptions.js ***!
183
+ \******************************/
184
+
185
+ /*!********************************!*\
186
+ !*** ./src/scope-connector.js ***!
187
+ \********************************/
188
+
189
+ /*!**********************************!*\
190
+ !*** ./node_modules/ms/index.js ***!
191
+ \**********************************/
192
+
193
+ /*!************************************!*\
194
+ !*** ./node_modules/blob/index.js ***!
195
+ \************************************/
196
+
197
+ /*!*************************************!*\
198
+ !*** ./node_modules/after/index.js ***!
199
+ \*************************************/
200
+
201
+ /*!*************************************!*\
202
+ !*** ./node_modules/yeast/index.js ***!
203
+ \*************************************/
204
+
205
+ /*!**************************************!*\
206
+ !*** ./node_modules/backo2/index.js ***!
207
+ \**************************************/
208
+
209
+ /*!***************************************!*\
210
+ !*** ./node_modules/indexof/index.js ***!
211
+ \***************************************/
212
+
213
+ /*!***************************************!*\
214
+ !*** ./node_modules/isarray/index.js ***!
215
+ \***************************************/
216
+
217
+ /*!***************************************!*\
218
+ !*** ./node_modules/parseqs/index.js ***!
219
+ \***************************************/
220
+
221
+ /*!****************************************!*\
222
+ !*** ./node_modules/has-cors/index.js ***!
223
+ \****************************************/
224
+
225
+ /*!****************************************!*\
226
+ !*** ./node_modules/parseuri/index.js ***!
227
+ \****************************************/
228
+
229
+ /*!****************************************!*\
230
+ !*** ./node_modules/to-array/index.js ***!
231
+ \****************************************/
232
+
233
+ /*!*****************************************!*\
234
+ !*** ./node_modules/debug/src/debug.js ***!
235
+ \*****************************************/
236
+
237
+ /*!*******************************************!*\
238
+ !*** ./node_modules/debug/src/browser.js ***!
239
+ \*******************************************/
240
+
241
+ /*!*******************************************!*\
242
+ !*** ./node_modules/has-binary2/index.js ***!
243
+ \*******************************************/
244
+
245
+ /*!**********************************************!*\
246
+ !*** ./node_modules/component-bind/index.js ***!
247
+ \**********************************************/
248
+
249
+ /*!*************************************************!*\
250
+ !*** ./node_modules/arraybuffer.slice/index.js ***!
251
+ \*************************************************/
252
+
253
+ /*!*************************************************!*\
254
+ !*** ./node_modules/component-emitter/index.js ***!
255
+ \*************************************************/
256
+
257
+ /*!*************************************************!*\
258
+ !*** ./node_modules/component-inherit/index.js ***!
259
+ \*************************************************/
260
+
261
+ /*!*************************************************!*\
262
+ !*** ./node_modules/socket.io-client/lib/on.js ***!
263
+ \*************************************************/
264
+
265
+ /*!**************************************************!*\
266
+ !*** ./node_modules/socket.io-client/lib/url.js ***!
267
+ \**************************************************/
268
+
269
+ /*!***************************************************!*\
270
+ !*** ./node_modules/engine.io-parser/lib/keys.js ***!
271
+ \***************************************************/
272
+
273
+ /*!***************************************************!*\
274
+ !*** ./node_modules/engine.io-parser/lib/utf8.js ***!
275
+ \***************************************************/
276
+
277
+ /*!****************************************************!*\
278
+ !*** ./node_modules/@babel/runtime/helpers/get.js ***!
279
+ \****************************************************/
280
+
281
+ /*!****************************************************!*\
282
+ !*** ./node_modules/engine.io-client/lib/index.js ***!
283
+ \****************************************************/
284
+
285
+ /*!****************************************************!*\
286
+ !*** ./node_modules/socket.io-client/lib/index.js ***!
287
+ \****************************************************/
288
+
289
+ /*!*****************************************************!*\
290
+ !*** ./node_modules/engine.io-client/lib/socket.js ***!
291
+ \*****************************************************/
292
+
293
+ /*!*****************************************************!*\
294
+ !*** ./node_modules/socket.io-client/lib/socket.js ***!
295
+ \*****************************************************/
296
+
297
+ /*!******************************************************!*\
298
+ !*** ./node_modules/engine.io-parser/lib/browser.js ***!
299
+ \******************************************************/
300
+
301
+ /*!******************************************************!*\
302
+ !*** ./node_modules/socket.io-client/lib/manager.js ***!
303
+ \******************************************************/
304
+
305
+ /*!*******************************************************!*\
306
+ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
307
+ \*******************************************************/
308
+
309
+ /*!********************************************************!*\
310
+ !*** ./node_modules/engine.io-client/lib/transport.js ***!
311
+ \********************************************************/
312
+
313
+ /*!*********************************************************!*\
314
+ !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
315
+ \*********************************************************/
316
+
317
+ /*!**********************************************************!*\
318
+ !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
319
+ \**********************************************************/
320
+
321
+ /*!************************************************************!*\
322
+ !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
323
+ \************************************************************/
324
+
325
+ /*!*************************************************************!*\
326
+ !*** ./node_modules/engine.io-client/lib/xmlhttprequest.js ***!
327
+ \*************************************************************/
328
+
329
+ /*!**************************************************************!*\
330
+ !*** ./node_modules/@babel/runtime/helpers/superPropBase.js ***!
331
+ \**************************************************************/
332
+
333
+ /*!***************************************************************!*\
334
+ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
335
+ \***************************************************************/
336
+
337
+ /*!***************************************************************!*\
338
+ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
339
+ \***************************************************************/
340
+
341
+ /*!***************************************************************!*\
342
+ !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
343
+ \***************************************************************/
344
+
345
+ /*!***************************************************************!*\
346
+ !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
347
+ \***************************************************************/
348
+
349
+ /*!***************************************************************!*\
350
+ !*** ./node_modules/engine.io-client/lib/transports/index.js ***!
351
+ \***************************************************************/
352
+
353
+ /*!*****************************************************************!*\
354
+ !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
355
+ \*****************************************************************/
356
+
357
+ /*!*****************************************************************!*\
358
+ !*** ./node_modules/engine.io-client/lib/transports/polling.js ***!
359
+ \*****************************************************************/
360
+
361
+ /*!*******************************************************************!*\
362
+ !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
363
+ \*******************************************************************/
364
+
365
+ /*!*******************************************************************!*\
366
+ !*** ./node_modules/base64-arraybuffer/lib/base64-arraybuffer.js ***!
367
+ \*******************************************************************/
368
+
369
+ /*!*******************************************************************!*\
370
+ !*** ./node_modules/engine.io-client/lib/transports/websocket.js ***!
371
+ \*******************************************************************/
372
+
373
+ /*!*********************************************************************!*\
374
+ !*** ./node_modules/engine.io-client/lib/transports/polling-xhr.js ***!
375
+ \*********************************************************************/
376
+
377
+ /*!**********************************************************************!*\
378
+ !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
379
+ \**********************************************************************/
380
+
381
+ /*!**********************************************************************!*\
382
+ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
383
+ \**********************************************************************/
384
+
385
+ /*!**********************************************************************!*\
386
+ !*** ./node_modules/backendless-request/dist/backendless-request.js ***!
387
+ \**********************************************************************/
388
+
389
+ /*!***********************************************************************!*\
390
+ !*** ./node_modules/engine.io-client/lib/transports/polling-jsonp.js ***!
391
+ \***********************************************************************/
392
+
393
+ /*!*************************************************************************!*\
394
+ !*** ./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js ***!
395
+ \*************************************************************************/
396
+
397
+ /*!**************************************************************************!*\
398
+ !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
399
+ \**************************************************************************/
package/es/data/store.js CHANGED
@@ -928,13 +928,6 @@ var convertToClientRecords = function () {
928
928
  delete source[prop].__subID;
929
929
  } else {
930
930
  var Model = context.classToTableMap[source[prop].___class];
931
-
932
- if (!Model && context.app.useTableClassesFromGlobalScope && _utils["default"].globalScope[source[prop].___class]) {
933
- // eslint-disable-next-line no-console
934
- console.warn('Resolving DataTable classes from the global scope is deprecated ' + 'and it won\'t be supported in the nearest future. ' + 'Instead, you should register your DataTable classes ' + 'using the following method Backendless.Data.mapTableToClass');
935
- Model = _utils["default"].globalScope[source[prop].___class];
936
- }
937
-
938
931
  target[prop] = Model ? new Model() : {};
939
932
 
940
933
  if (__subID && !context.subIds[__subID]) {
package/es/index.js CHANGED
@@ -35,10 +35,7 @@ var DEFAULT_PROPS = {
35
35
  apiURI: '/api',
36
36
  debugMode: false,
37
37
  standalone: false,
38
- XMLHttpRequest: typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined,
39
- //TODO: this is a temporary to disable getting DataTable classes from the global scope
40
- //TODO: it will be removed in the nearest future
41
- useTableClassesFromGlobalScope: true
38
+ XMLHttpRequest: typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined
42
39
  };
43
40
  var STATELESS_PROPS = ['appId', 'apiKey', 'domain'];
44
41
  var root = (typeof self === "undefined" ? "undefined" : (0, _typeof2["default"])(self)) === 'object' && self.self === self && self || (typeof global === "undefined" ? "undefined" : (0, _typeof2["default"])(global)) === 'object' && global.global === global && global;
@@ -284,15 +281,6 @@ var Backendless = /*#__PURE__*/function () {
284
281
  },
285
282
  set: function set(appPath) {
286
283
  throw new Error("Setting '".concat(appPath, "' value to Backendless.appPath directly is not possible, ") + 'instead you must use Backendless.initApp(APP_ID, API_KEY) for setup the value');
287
- } ///--------useTableClassesFromGlobalScope-------///
288
-
289
- }, {
290
- key: "useTableClassesFromGlobalScope",
291
- get: function get() {
292
- return this.__useTableClassesFromGlobalScope;
293
- },
294
- set: function set(useTableClassesFromGlobalScope) {
295
- this.__useTableClassesFromGlobalScope = !!useTableClassesFromGlobalScope;
296
284
  } ///--------debugMode-------///
297
285
 
298
286
  }, {
package/lib/data/store.js CHANGED
@@ -928,13 +928,6 @@ var convertToClientRecords = function () {
928
928
  delete source[prop].__subID;
929
929
  } else {
930
930
  var Model = context.classToTableMap[source[prop].___class];
931
-
932
- if (!Model && context.app.useTableClassesFromGlobalScope && _utils["default"].globalScope[source[prop].___class]) {
933
- // eslint-disable-next-line no-console
934
- console.warn('Resolving DataTable classes from the global scope is deprecated ' + 'and it won\'t be supported in the nearest future. ' + 'Instead, you should register your DataTable classes ' + 'using the following method Backendless.Data.mapTableToClass');
935
- Model = _utils["default"].globalScope[source[prop].___class];
936
- }
937
-
938
931
  target[prop] = Model ? new Model() : {};
939
932
 
940
933
  if (__subID && !context.subIds[__subID]) {
package/lib/index.js CHANGED
@@ -35,10 +35,7 @@ var DEFAULT_PROPS = {
35
35
  apiURI: '/api',
36
36
  debugMode: false,
37
37
  standalone: false,
38
- XMLHttpRequest: typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined,
39
- //TODO: this is a temporary to disable getting DataTable classes from the global scope
40
- //TODO: it will be removed in the nearest future
41
- useTableClassesFromGlobalScope: true
38
+ XMLHttpRequest: typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined
42
39
  };
43
40
  var STATELESS_PROPS = ['appId', 'apiKey', 'domain'];
44
41
  var root = (typeof self === "undefined" ? "undefined" : (0, _typeof2["default"])(self)) === 'object' && self.self === self && self || (typeof global === "undefined" ? "undefined" : (0, _typeof2["default"])(global)) === 'object' && global.global === global && global;
@@ -284,15 +281,6 @@ var Backendless = /*#__PURE__*/function () {
284
281
  },
285
282
  set: function set(appPath) {
286
283
  throw new Error("Setting '".concat(appPath, "' value to Backendless.appPath directly is not possible, ") + 'instead you must use Backendless.initApp(APP_ID, API_KEY) for setup the value');
287
- } ///--------useTableClassesFromGlobalScope-------///
288
-
289
- }, {
290
- key: "useTableClassesFromGlobalScope",
291
- get: function get() {
292
- return this.__useTableClassesFromGlobalScope;
293
- },
294
- set: function set(useTableClassesFromGlobalScope) {
295
- this.__useTableClassesFromGlobalScope = !!useTableClassesFromGlobalScope;
296
284
  } ///--------debugMode-------///
297
285
 
298
286
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backendless",
3
- "version": "6.6.0",
3
+ "version": "6.6.2",
4
4
  "description": "Backendless JavaScript SDK for Node.js and the browser",
5
5
  "browser": "dist/backendless.js",
6
6
  "main": "lib/index.js",
@@ -92,6 +92,6 @@
92
92
  "dependencies": {
93
93
  "@babel/runtime": "^7.14.6",
94
94
  "backendless-request": "^0.4.1",
95
- "backendless-rt-client": "0.1.0"
95
+ "backendless-rt-client": "0.2.0"
96
96
  }
97
97
  }
package/src/data/store.js CHANGED
@@ -449,19 +449,7 @@ const convertToClientRecords = (() => {
449
449
  delete source[prop].__subID
450
450
 
451
451
  } else {
452
- let Model = context.classToTableMap[source[prop].___class]
453
-
454
- if (!Model && context.app.useTableClassesFromGlobalScope && Utils.globalScope[source[prop].___class]) {
455
- // eslint-disable-next-line no-console
456
- console.warn(
457
- 'Resolving DataTable classes from the global scope is deprecated ' +
458
- 'and it won\'t be supported in the nearest future. ' +
459
- 'Instead, you should register your DataTable classes ' +
460
- 'using the following method Backendless.Data.mapTableToClass'
461
- )
462
-
463
- Model = Utils.globalScope[source[prop].___class]
464
- }
452
+ const Model = context.classToTableMap[source[prop].___class]
465
453
 
466
454
  target[prop] = Model ? new Model() : {}
467
455
 
package/src/index.js CHANGED
@@ -15,10 +15,6 @@ const DEFAULT_PROPS = {
15
15
  XMLHttpRequest: typeof XMLHttpRequest !== 'undefined'
16
16
  ? XMLHttpRequest
17
17
  : undefined,
18
-
19
- //TODO: this is a temporary to disable getting DataTable classes from the global scope
20
- //TODO: it will be removed in the nearest future
21
- useTableClassesFromGlobalScope: true,
22
18
  }
23
19
 
24
20
  const STATELESS_PROPS = ['appId', 'apiKey', 'domain']
@@ -260,15 +256,6 @@ class Backendless {
260
256
  )
261
257
  }
262
258
 
263
- ///--------useTableClassesFromGlobalScope-------///
264
- get useTableClassesFromGlobalScope() {
265
- return this.__useTableClassesFromGlobalScope
266
- }
267
-
268
- set useTableClassesFromGlobalScope(useTableClassesFromGlobalScope) {
269
- this.__useTableClassesFromGlobalScope = !!useTableClassesFromGlobalScope
270
- }
271
-
272
259
  ///--------debugMode-------///
273
260
  get debugMode() {
274
261
  return this.__debugMode