@5minds/node-red-contrib-processcube-elasticsearch 1.0.0 → 1.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.
@@ -1,25 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const winston = require('winston');
4
- const winstonElasticSearch = require('winston-elasticsearch');
5
-
6
- // TODO: MM winston-elasticsearch/index.js#112 wird die log als async function deklariert,
7
- // aber nicht als async aufgerufen
8
- process.on('unhandledRejection', (reason, promise) => {
9
- console.error(`Unhandled Rejection at ${promise} reason: ${reason}`, {});
10
- });
11
-
12
3
  module.exports = function (RED) {
13
-
14
- const logLevels = {
15
- levels: {
16
- Error: 0,
17
- Warning: 1,
18
- Information: 2,
19
- Debug: 3
20
- }
21
- };
22
-
4
+
23
5
  function raiseErrorAndSetNodeStatus(node, message) {
24
6
  node.error(message, {});
25
7
  node.status({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube-elasticsearch",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for Elasticsearch",
6
6
  "scripts": {