backendless 6.6.1 → 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.
- package/backendless.d.ts +0 -2
- package/dist/backendless.js +2 -21
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/data/store.js +0 -7
- package/es/index.js +1 -13
- package/lib/data/store.js +0 -7
- package/lib/index.js +1 -13
- package/package.json +1 -1
- package/src/data/store.js +1 -13
- package/src/index.js +0 -13
package/backendless.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ declare module Backendless {
|
|
|
6
6
|
type JSONValue = string | number | boolean | { [x: string]: JSONValue } | Array<JSONValue>
|
|
7
7
|
|
|
8
8
|
let debugMode: boolean;
|
|
9
|
-
let useTableClassesFromGlobalScope: boolean;
|
|
10
9
|
let serverURL: string;
|
|
11
10
|
let appId: string;
|
|
12
11
|
let apiKey: string;
|
|
@@ -39,7 +38,6 @@ declare module Backendless {
|
|
|
39
38
|
domain?: string;
|
|
40
39
|
debugMode?: boolean;
|
|
41
40
|
XMLHttpRequest?: XMLHttpRequest;
|
|
42
|
-
useTableClassesFromGlobalScope?: boolean;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
/**
|
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 6.6.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 6.6.2
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -17436,13 +17436,6 @@ var convertToClientRecords = function () {
|
|
|
17436
17436
|
delete source[prop].__subID;
|
|
17437
17437
|
} else {
|
|
17438
17438
|
var Model = context.classToTableMap[source[prop].___class];
|
|
17439
|
-
|
|
17440
|
-
if (!Model && context.app.useTableClassesFromGlobalScope && _utils["default"].globalScope[source[prop].___class]) {
|
|
17441
|
-
// eslint-disable-next-line no-console
|
|
17442
|
-
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');
|
|
17443
|
-
Model = _utils["default"].globalScope[source[prop].___class];
|
|
17444
|
-
}
|
|
17445
|
-
|
|
17446
17439
|
target[prop] = Model ? new Model() : {};
|
|
17447
17440
|
|
|
17448
17441
|
if (__subID && !context.subIds[__subID]) {
|
|
@@ -20265,10 +20258,7 @@ var DEFAULT_PROPS = {
|
|
|
20265
20258
|
apiURI: '/api',
|
|
20266
20259
|
debugMode: false,
|
|
20267
20260
|
standalone: false,
|
|
20268
|
-
XMLHttpRequest: typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined
|
|
20269
|
-
//TODO: this is a temporary to disable getting DataTable classes from the global scope
|
|
20270
|
-
//TODO: it will be removed in the nearest future
|
|
20271
|
-
useTableClassesFromGlobalScope: true
|
|
20261
|
+
XMLHttpRequest: typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined
|
|
20272
20262
|
};
|
|
20273
20263
|
var STATELESS_PROPS = ['appId', 'apiKey', 'domain'];
|
|
20274
20264
|
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;
|
|
@@ -20514,15 +20504,6 @@ var Backendless = /*#__PURE__*/function () {
|
|
|
20514
20504
|
},
|
|
20515
20505
|
set: function set(appPath) {
|
|
20516
20506
|
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');
|
|
20517
|
-
} ///--------useTableClassesFromGlobalScope-------///
|
|
20518
|
-
|
|
20519
|
-
}, {
|
|
20520
|
-
key: "useTableClassesFromGlobalScope",
|
|
20521
|
-
get: function get() {
|
|
20522
|
-
return this.__useTableClassesFromGlobalScope;
|
|
20523
|
-
},
|
|
20524
|
-
set: function set(useTableClassesFromGlobalScope) {
|
|
20525
|
-
this.__useTableClassesFromGlobalScope = !!useTableClassesFromGlobalScope;
|
|
20526
20507
|
} ///--------debugMode-------///
|
|
20527
20508
|
|
|
20528
20509
|
}, {
|