qcobjects-sdk 2.3.33 → 2.3.34
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/QCObjects-SDK.js +12 -7
- package/VERSION +1 -1
- package/package.json +1 -1
package/QCObjects-SDK.js
CHANGED
|
@@ -25,9 +25,14 @@
|
|
|
25
25
|
(function(_top) {
|
|
26
26
|
"use strict";
|
|
27
27
|
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
28
|
-
var remoteImportsPath =
|
|
29
|
-
var
|
|
30
|
-
|
|
28
|
+
var remoteImportsPath = CONFIG.get("remoteImportsPath");
|
|
29
|
+
var relativeImportPath = CONFIG.get("relativeImportPath");
|
|
30
|
+
var external = (!CONFIG.get("useLocalSDK"))?(true):(false);
|
|
31
|
+
if (external){
|
|
32
|
+
CONFIG.set("remoteImportsPath","https://sdk.qcobjects.dev/js/");
|
|
33
|
+
} else {
|
|
34
|
+
CONFIG.set("relativeImportPath","qcobjects-sdk/js/");
|
|
35
|
+
}
|
|
31
36
|
if (typeof _top._DOMCreateElement === "undefined"){
|
|
32
37
|
_top._DOMCreateElement = function (elementName) {
|
|
33
38
|
var _ret_;
|
|
@@ -63,7 +68,7 @@
|
|
|
63
68
|
Import("org.qcobjects.tools.canvas",function (){},external),
|
|
64
69
|
Import("org.qcobjects.tools.layouts",function (){},external),
|
|
65
70
|
Import("org.qcobjects.cloud.auth.session.usertoken",function (){},external),
|
|
66
|
-
Import("org.qcobjects.cloud.auth.session.data",function (){},external)
|
|
71
|
+
Import("org.qcobjects.cloud.auth.session.data",function (){},external)
|
|
67
72
|
];
|
|
68
73
|
} else {
|
|
69
74
|
// non-browsers environment
|
|
@@ -82,9 +87,9 @@
|
|
|
82
87
|
];
|
|
83
88
|
}
|
|
84
89
|
_top._sdk_ = Promise.all(_imports_).then(function (){
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
CONFIG.set("useSDK",true);
|
|
91
|
+
CONFIG.set("remoteImportsPath",remoteImportsPath);
|
|
92
|
+
CONFIG.set("relativeImportPath",relativeImportPath);
|
|
88
93
|
_top.__start__();
|
|
89
94
|
|
|
90
95
|
});
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.3.
|
|
1
|
+
2.3.34
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-sdk",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.34",
|
|
4
4
|
"description": "QCObjects SDK is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using QCObjects, Cross Browser Javascript Framework for MVC Patterns",
|
|
5
5
|
"main": "QCObjects-SDK.js",
|
|
6
6
|
"scripts": {
|