qcobjects-cli 2.4.26 → 2.4.29
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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.29
|
|
@@ -128,6 +128,62 @@ try {
|
|
|
128
128
|
logger.debug("Something went wrong trying to load config.json file in your project");
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
(async function (){
|
|
132
|
+
const path = require("path");
|
|
133
|
+
const projectPath = CONFIG.get("projectPath", `${process.cwd()}/`);
|
|
134
|
+
const loadDefaultRoutes = async () => {
|
|
135
|
+
let backend = CONFIG.get("backend");
|
|
136
|
+
if (typeof backend === "undefined"){
|
|
137
|
+
backend = {};
|
|
138
|
+
}
|
|
139
|
+
if (typeof backend.routes === "undefined"){
|
|
140
|
+
backend.routes = [];
|
|
141
|
+
}
|
|
142
|
+
backend.routes = backend.routes.concat([
|
|
143
|
+
{
|
|
144
|
+
"name":"QCObjects.js",
|
|
145
|
+
"description":"Redirection of QCObjects.js",
|
|
146
|
+
"path":"^/QCObjects.js$",
|
|
147
|
+
"microservice":"com.qcobjects.backend.microservice.static",
|
|
148
|
+
"redirect_to": "./node_modules/qcobjects/QCObjects.js",
|
|
149
|
+
"responseHeaders":{
|
|
150
|
+
},
|
|
151
|
+
"cors":{
|
|
152
|
+
"allow_origins":"*"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name":"QCObjects-SDK.js",
|
|
157
|
+
"description":"Redirection of QCObjects SDK",
|
|
158
|
+
"path":"^/js/packages/QCObjects-SDK.js$",
|
|
159
|
+
"microservice":"com.qcobjects.backend.microservice.static",
|
|
160
|
+
"redirect_to": "./node_modules/qcobjects-sdk/QCObjects-SDK.js",
|
|
161
|
+
"responseHeaders":{
|
|
162
|
+
},
|
|
163
|
+
"cors":{
|
|
164
|
+
"allow_origins":"*"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name":"QCObjects-SDK Components",
|
|
169
|
+
"description":"Redirection of QCObjects SDK",
|
|
170
|
+
"path":"^/qcobjects-sdk/(.*)$",
|
|
171
|
+
"microservice":"com.qcobjects.backend.microservice.static",
|
|
172
|
+
"redirect_to": "./node_modules/qcobjects-sdk/$1",
|
|
173
|
+
"responseHeaders":{},
|
|
174
|
+
"cors":{
|
|
175
|
+
"allow_origins":"*"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
]);
|
|
180
|
+
CONFIG.set("backend", backend);
|
|
181
|
+
|
|
182
|
+
return;
|
|
183
|
+
};
|
|
184
|
+
await loadDefaultRoutes();
|
|
185
|
+
})().then (()=>logger.info("Default routes loaded"));
|
|
186
|
+
|
|
131
187
|
(async function (){
|
|
132
188
|
/* Auto Discover dependencies (lib, handlers, commands) */
|
|
133
189
|
const path = require("path");
|
|
@@ -183,4 +239,4 @@ try {
|
|
|
183
239
|
await loadLibs();
|
|
184
240
|
await loadHandlers();
|
|
185
241
|
await loadCommands();
|
|
186
|
-
})().then (()=>logger.info("Dependencies loaded"));
|
|
242
|
+
})().then (()=>logger.info("Dependencies loaded"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.29",
|
|
4
4
|
"description": "qcobjects cli command line tool",
|
|
5
5
|
"main": "qcobjects-cli.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"commander": "^2.20.3",
|
|
14
14
|
"mime": "^2.4.7",
|
|
15
|
-
"qcobjects": "^2.4.
|
|
15
|
+
"qcobjects": "^2.4.52",
|
|
16
16
|
"qcobjects-sdk": "^2.4.26",
|
|
17
17
|
"yaml": "^1.10.2"
|
|
18
18
|
},
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"eslint": "^8.35.0",
|
|
21
21
|
"eslint-config-qcobjects": "^0.0.23",
|
|
22
22
|
"jasmine": "^3.99.0",
|
|
23
|
-
"qcobjects": "^2.4.
|
|
23
|
+
"qcobjects": "^2.4.52",
|
|
24
24
|
"qcobjects-sdk": "^2.4.26"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"qcobjects": "^2.4.
|
|
27
|
+
"qcobjects": "^2.4.52",
|
|
28
28
|
"qcobjects-sdk": "^2.4.26"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|