node-pluginsmanager-plugin 7.0.0 → 7.0.1

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.
@@ -177,7 +177,7 @@ class Server extends MediatorUser_1.default {
177
177
  const apiVersion = this._Descriptor.info.version;
178
178
  const contentType = req.headers["content-type"] ?? req.headers["Content-Type"] ?? "";
179
179
  const { responses } = operation; // response is "any", had to specify the type to avoid lint errors
180
- const contentLengthParsed = parseInt(req.headers["content-length"], 10);
180
+ const contentLengthParsed = Number.parseInt(req.headers["content-length"], 10);
181
181
  this._log("info", ""
182
182
  + "=> [" + req.validatedIp + "] " + req.url + " (" + req.method.toUpperCase() + ")"
183
183
  + ("undefined" !== typeof operationId ? node_os_1.EOL + "operationId : " + operationId : "")
@@ -312,7 +312,7 @@ class Server extends MediatorUser_1.default {
312
312
  case "integer":
313
313
  // error returned, not an integer
314
314
  if (null !== (0, checkInteger_1.checkIntegerSync)("request.params['" + key + "']", req.params[key])) {
315
- const value = parseInt(req.params[key], 10);
315
+ const value = Number.parseInt(req.params[key], 10);
316
316
  if (!Number.isNaN(value)) {
317
317
  req.params[key] = value;
318
318
  }
@@ -323,7 +323,7 @@ class Server extends MediatorUser_1.default {
323
323
  break;
324
324
  case "number":
325
325
  if ("number" !== typeof req.params[key]) {
326
- const value = parseFloat(req.params[key]);
326
+ const value = Number.parseFloat(req.params[key]);
327
327
  if (!Number.isNaN(value)) {
328
328
  req.params[key] = value;
329
329
  }
@@ -28,7 +28,7 @@ function extractBody(req) {
28
28
  resolve("");
29
29
  }
30
30
  else {
31
- const contentLength = parseInt(req.headers["content-length"], 10);
31
+ const contentLength = Number.parseInt(req.headers["content-length"], 10);
32
32
  if (contentLength !== Buffer.byteLength(queryData)) {
33
33
  reject(new Error("\"Content-Length\" header (" + Buffer.byteLength(queryData) + ")"
34
34
  + " is not as expected (" + req.headers["content-length"] + ")."
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "node-pluginsmanager-plugin",
4
- "version": "7.0.0",
4
+ "version": "7.0.1",
5
5
  "description": "An abstract parent plugin for node-pluginsmanager.",
6
6
 
7
7
  "type": "commonjs",