qcobjects-sdk 2.4.13 → 2.4.15

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 CHANGED
@@ -72,6 +72,44 @@
72
72
  ];
73
73
  } else {
74
74
  // non-browsers environment
75
+ (function loadBackendSDKRoutes(){
76
+ if (!loadBackendSDKRoutes.loaded){
77
+ let backend = CONFIG.get("backend");
78
+ if (typeof backend === "undefined"){
79
+ backend = {};
80
+ }
81
+ if (typeof backend.routes === "undefined"){
82
+ backend.routes = [];
83
+ }
84
+ backend.routes = backend.routes.concat([
85
+ {
86
+ "name":"QCObjects-SDK",
87
+ "description":"Redirection of QCObjects SDK",
88
+ "path":"^/qcobjects-sdk/(.*)$",
89
+ "microservice":"com.qcobjects.backend.microservice.static",
90
+ "redirect_to": "./node_modules/qcobjects-sdk/$1",
91
+ "responseHeaders":{},
92
+ "cors":{
93
+ "allow_origins":"*"
94
+ }
95
+ },
96
+ {
97
+ "name":"QCObjects-SDK.js",
98
+ "description":"Redirection of QCObjects SDK",
99
+ "path":"^/js/packages/QCObjects-SDK.js$",
100
+ "microservice":"com.qcobjects.backend.microservice.static",
101
+ "redirect_to": "./node_modules/qcobjects-sdk/QCObjects-SDK.js",
102
+ "responseHeaders":{},
103
+ "cors":{
104
+ "allow_origins":"*"
105
+ }
106
+ }
107
+ ]);
108
+ CONFIG.set("backend", backend);
109
+ loadBackendSDKRoutes.loaded = true;
110
+ }
111
+ })();
112
+
75
113
  var _relative_path_ = "qcobjects-sdk/js/";
76
114
  _imports_ = [
77
115
  Import(_relative_path_ + "org.qcobjects.models", function () {}, external),
@@ -85,6 +123,8 @@
85
123
  Import(_relative_path_ + "org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
86
124
  Import(_relative_path_ + "org.qcobjects.cloud.auth.session.data", function () {}, external)
87
125
  ];
126
+
127
+
88
128
  }
89
129
  _top._sdk_ = Promise.all(_imports_).then(function () {
90
130
  CONFIG.set("useSDK", true);
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.13
1
+ 2.4.15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects-sdk",
3
- "version": "2.4.13",
3
+ "version": "2.4.15",
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": {