remult 0.15.1 → 0.15.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.
|
@@ -9,6 +9,8 @@ export function createRemultServer(options) {
|
|
|
9
9
|
if (!options) {
|
|
10
10
|
options = {};
|
|
11
11
|
}
|
|
12
|
+
if (options.logApiEndPoints === undefined)
|
|
13
|
+
options.logApiEndPoints = true;
|
|
12
14
|
actionInfo.runningOnServer = true;
|
|
13
15
|
if (options.defaultGetLimit) {
|
|
14
16
|
DataApi.defaultGetLimit = options.defaultGetLimit;
|
|
@@ -113,7 +115,7 @@ class RemultServerImplementation {
|
|
|
113
115
|
add(key, dataApiFactory, r) {
|
|
114
116
|
let myRoute = this.options.rootPath + '/' + key;
|
|
115
117
|
if (this.options.logApiEndPoints)
|
|
116
|
-
console.log(myRoute);
|
|
118
|
+
console.log("[remult] " + myRoute);
|
|
117
119
|
r.route(myRoute)
|
|
118
120
|
.get(this.process((c, req, res) => dataApiFactory(c).httpGet(res, req))).put(this.process(async (c, req, res, orig) => dataApiFactory(c).put(res, '', orig.body)))
|
|
119
121
|
.delete(this.process(async (c, req, res, orig) => dataApiFactory(c).delete(res, '')))
|
|
@@ -170,7 +172,7 @@ class RemultServerImplementation {
|
|
|
170
172
|
})();
|
|
171
173
|
this.backendMethodsOpenApi.push({ path: myUrl, allowed, tag });
|
|
172
174
|
if (this.options.logApiEndPoints)
|
|
173
|
-
console.log(myUrl);
|
|
175
|
+
console.log("[remult] " + myUrl);
|
|
174
176
|
if (queue) {
|
|
175
177
|
this.hasQueue = true;
|
|
176
178
|
this.queue.mapQueuedAction(myUrl, what);
|
package/package.json
CHANGED
package/server/expressBridge.js
CHANGED
|
@@ -13,6 +13,8 @@ function createRemultServer(options) {
|
|
|
13
13
|
if (!options) {
|
|
14
14
|
options = {};
|
|
15
15
|
}
|
|
16
|
+
if (options.logApiEndPoints === undefined)
|
|
17
|
+
options.logApiEndPoints = true;
|
|
16
18
|
server_action_1.actionInfo.runningOnServer = true;
|
|
17
19
|
if (options.defaultGetLimit) {
|
|
18
20
|
data_api_1.DataApi.defaultGetLimit = options.defaultGetLimit;
|
|
@@ -163,7 +165,7 @@ var RemultServerImplementation = /** @class */ (function () {
|
|
|
163
165
|
var _this = this;
|
|
164
166
|
var myRoute = this.options.rootPath + '/' + key;
|
|
165
167
|
if (this.options.logApiEndPoints)
|
|
166
|
-
console.log(myRoute);
|
|
168
|
+
console.log("[remult] " + myRoute);
|
|
167
169
|
r.route(myRoute)
|
|
168
170
|
.get(this.process(function (c, req, res) {
|
|
169
171
|
return dataApiFactory(c).httpGet(res, req);
|
|
@@ -266,7 +268,7 @@ var RemultServerImplementation = /** @class */ (function () {
|
|
|
266
268
|
})();
|
|
267
269
|
_this.backendMethodsOpenApi.push({ path: myUrl, allowed: allowed, tag: tag });
|
|
268
270
|
if (_this.options.logApiEndPoints)
|
|
269
|
-
console.log(myUrl);
|
|
271
|
+
console.log("[remult] " + myUrl);
|
|
270
272
|
if (queue) {
|
|
271
273
|
_this.hasQueue = true;
|
|
272
274
|
_this.queue.mapQueuedAction(myUrl, what);
|