@theotherwillembotha/node-red-nginxproxymanager 0.0.52 → 0.0.55

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/README.md CHANGED
@@ -4,6 +4,17 @@ Node-RED nodes for managing [Nginx Proxy Manager](https://nginxproxymanager.com/
4
4
 
5
5
  ---
6
6
 
7
+ > [!IMPORTANT]
8
+ > **This plugin requires [`@theotherwillembotha/node-red-plugincore`](https://github.com/theotherwillembotha/nodered_plugincore) to be installed.**
9
+ >
10
+ > `node-red-plugincore` is declared as a dependency and npm will install it automatically alongside this package. However, due to a [known Node-RED limitation](https://github.com/node-red/node-red/issues/3529), packages that arrive as transitive npm dependencies are only discovered by the Node-RED runtime on the **next startup**.
11
+ >
12
+ > **You have two options:**
13
+ > - Install [`@theotherwillembotha/node-red-plugincore`](https://flows.nodered.org/node/@theotherwillembotha/node-red-plugincore) via the palette manager or `npm install` **first**, then install this plugin — both will be available immediately without a restart.
14
+ > - Install this plugin directly — `node-red-plugincore` will be installed automatically alongside it. **Restart Node-RED** once and both packages will be fully loaded.
15
+
16
+ ---
17
+
7
18
  ## Installation
8
19
 
9
20
  Either use the **Manage Palette** option in the Node-RED editor, or run the following in your Node-RED user directory (typically `~/.node-red`):
package/build/Plugins.js CHANGED
@@ -42,7 +42,7 @@ module.exports = function (RED) {
42
42
  RED.events.on('runtime-event', async (event) => {
43
43
  // startup deployment.
44
44
  if ("runtime-deploy" === event?.id && startupDeployment) {
45
- console.log("STARTUP DEPLOYMENT");
45
+ //console.log("STARTUP DEPLOYMENT");
46
46
  startupDeployment = false;
47
47
  const flows = await runtime.flows.getFlows({});
48
48
  await plugin.instance.onDeploy(flows);
@@ -50,7 +50,7 @@ module.exports = function (RED) {
50
50
 
51
51
  // stopping flows on redeployment.
52
52
  if ("runtime-state" === event?.id && event?.payload?.state === "stop" && event?.payload?.deploy) {
53
- console.log("REDEPLOY!");
53
+ //console.log("REDEPLOY!");
54
54
  const flows = await runtime.flows.getFlows({});
55
55
  await plugin.instance.onDeploy(flows);
56
56
  }
@@ -33,7 +33,7 @@ let NginxGetHostsNode = class NginxGetHostsNode extends node_red_plugincore_1.Ba
33
33
  exports.NginxGetHostsNode = NginxGetHostsNode;
34
34
  __decorate([
35
35
  (0, node_red_plugincore_3.Logger)(),
36
- __metadata("design:type", Object)
36
+ __metadata("design:type", node_red_plugincore_3.Log)
37
37
  ], NginxGetHostsNode.prototype, "log", void 0);
38
38
  __decorate([
39
39
  (0, node_red_plugincore_2.Metrics)({ name: "get_hosts_requests", type: node_red_plugincore_2.MetricType.Counter, description: "number of get hosts requests made" }),
@@ -31,7 +31,7 @@ let UpdateNginxHostNode = class UpdateNginxHostNode extends node_red_plugincore_
31
31
  exports.UpdateNginxHostNode = UpdateNginxHostNode;
32
32
  __decorate([
33
33
  (0, node_red_plugincore_3.Logger)(),
34
- __metadata("design:type", Object)
34
+ __metadata("design:type", node_red_plugincore_3.Log)
35
35
  ], UpdateNginxHostNode.prototype, "log", void 0);
36
36
  __decorate([
37
37
  (0, node_red_plugincore_2.Metrics)({ name: "request", type: node_red_plugincore_2.MetricType.Counter, description: "number of requests made" }),
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theotherwillembotha/node-red-nginxproxymanager",
3
- "version": "0.0.52",
3
+ "version": "0.0.55",
4
4
  "description": "Node-RED nodes for managing Nginx Proxy Manager hosts, built on node-red-plugincore.",
5
5
  "author": "Willem Botha (@theotherwillembotha)",
6
6
  "license": "ISC",
@@ -23,6 +23,7 @@
23
23
  "files": [
24
24
  "build/",
25
25
  "icons/",
26
+ "documentation/",
26
27
  "LICENSE",
27
28
  "README.md"
28
29
  ],
@@ -39,7 +40,7 @@
39
40
  "nodered": ">=4.0.0"
40
41
  },
41
42
  "dependencies": {
42
- "@theotherwillembotha/node-red-plugincore": "^0.0.52"
43
+ "@theotherwillembotha/node-red-plugincore": "^0.0.55"
43
44
  },
44
45
  "devDependencies": {
45
46
  "@theotherwillembotha/node-red-plugincore": "../nodered_plugincore",