nginxwebnodeplugin 1.0.354 → 1.0.356

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/package.json +18 -16
  3. package/readme.md +1 -1
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("child_process"),require("clientnode"),require("https"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/regenerator","child_process","clientnode","https"],r);else{var n="object"==typeof exports?r(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("child_process"),require("clientnode"),require("https")):r(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/regenerator"],e.child_process,e.clientnode,e.https);for(var t in n)("object"==typeof exports?exports:e)[t]=n[t]}}(this,((e,r,n,t,o,a)=>(()=>{var i=[(e,r,n)=>{n.r(r),n.d(r,{checkReachability:()=>x,default:()=>y,loadService:()=>m,log:()=>b,nginx:()=>v,shouldExit:()=>h});var t=n(1),o=n.n(t),a=n(2),i=n.n(a),l=n(3),u=n.n(l),s=n(4),c=n(5),d=n(6);function p(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return f(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}e=n.hmd(e);var b=new c.Logger({name:"web-node.nginx"}),m=function(){var e=i()(u().mark((function e(r){var n,t,o,a,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.configuration.applicationServer,!(t=r.services).nginx){e.next=1;break}return e.abrupt("return",null);case 1:return o=(0,s.spawn)("nginx",[],{cwd:process.cwd(),env:process.env,shell:!0,stdio:"inherit"}),t.nginx=o,o.reload=function(){return new Promise((function(e,r){return(0,s.exec)("nginx -s reload",(function(n,t,o){n?(n.standardErrorOutput=o,r(n)):e(t)}))}))},a=new Promise((function(e,r){for(var t,a,i=p(c.CLOSE_EVENT_NAMES);!(t=i()).done;)a=t.value,o.on(a,(0,c.getProcessCloseHandler)(e,n.proxy.optional?e:r,{reason:o,process:o}))})),e.prev=2,e.next=3,x(n);case 3:e.next=6;break;case 4:if(e.prev=4,i=e.catch(2),!n.proxy.optional){e.next=5;break}b.warn("Nginx couldn't be started (or at least",'"'+n.proxy.url+'" could not be reached) but was',"marked as optional."),t.nginx=null,a=null,e.next=6;break;case 5:throw new Error('Could not acknowledge that nginx is running because "'+n.proxy.url+'" is not reachable: '+(0,c.represent)(i));case 6:return e.abrupt("return",{nginx:a});case 7:case"end":return e.stop()}}),e,null,[[2,4]])})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=i()(u().mark((function e(r){var n,t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.configuration,null===(t=r.services).nginx){e.next=1;break}return t.nginx.kill("SIGINT"),e.next=1,x(n.applicationServer,!0);case 1:delete t.nginx;case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n={}),e.proxy.url){var t=e.proxy.url.startsWith("https://"),a=o()({options:o()({redirect:"manual"},t?{agent:new d.Agent({rejectUnauthorized:!1})}:{}),pollIntervallInSeconds:.1,statusCodes:[100,101,102,200,201,202,203,204,205,206,207,208,226,300,301,302,303,304,305,306,307,308],timeoutInSeconds:3,wait:!0},n);return(r?c.checkUnreachability:c.checkReachability)(e.proxy.url,a)}return Promise.resolve(null)},v=e.exports;const y=v},r=>{r.exports=e},e=>{e.exports=r},e=>{e.exports=n},e=>{e.exports=t},e=>{e.exports=o},e=>{e.exports=a}],l={};function u(e){var r=l[e];if(void 0!==r)return r.exports;var n=l[e]={id:e,loaded:!1,exports:{}};return i[e](n,n.exports,u),n.loaded=!0,n.exports}return u.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return u.d(r,{a:r}),r},u.d=(e,r)=>{for(var n in r)u.o(r,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},u.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),u.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u(0)})()));
1
+ "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("child_process"),require("clientnode"),require("https"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/regenerator","child_process","clientnode","https"],r);else{var n="object"==typeof exports?r(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("child_process"),require("clientnode"),require("https")):r(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/regenerator"],e.child_process,e.clientnode,e.https);for(var t in n)("object"==typeof exports?exports:e)[t]=n[t]}}(this,((e,r,n,t,o,a)=>(()=>{var i=[(e,r,n)=>{n.r(r),n.d(r,{checkReachability:()=>x,default:()=>y,loadService:()=>m,log:()=>b,nginx:()=>v,shouldExit:()=>h});var t=n(1),o=n.n(t),a=n(2),i=n.n(a),l=n(3),u=n.n(l),s=n(4),c=n(5),d=n(6);function p(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return f(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}e=n.hmd(e);var b=new c.Logger({name:"web-node.nginx"}),m=function(){var e=i()(u().mark((function e(r){var n,t,o,a,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.configuration.applicationServer,!(t=r.services).nginx){e.next=1;break}return e.abrupt("return",null);case 1:return o=(0,s.spawn)("nginx",[],{cwd:process.cwd(),env:process.env,shell:!0,stdio:"inherit"}),t.nginx=o,o.reload=function(){return new Promise((function(e,r){return(0,s.exec)("nginx -s reload",(function(n,t,o){n?(n.standardErrorOutput=o,r(n)):e(t)}))}))},a=new Promise((function(e,r){for(var t,a,i=p(c.CLOSE_EVENT_NAMES);!(t=i()).done;)a=t.value,o.on(a,(0,c.getProcessCloseHandler)(e,n.proxy.optional?e:r,{reason:o,process:o}))})),e.prev=2,e.next=3,x(n);case 3:e.next=6;break;case 4:if(e.prev=4,i=e.catch(2),!n.proxy.optional){e.next=5;break}b.warn("Nginx couldn't be started (or at least",'"'+n.proxy.url+'" could not be reached) but was',"marked as optional."),t.nginx=null,a=null,e.next=6;break;case 5:throw new Error('Could not acknowledge that nginx is running because "'+n.proxy.url+'" is not reachable: '+(0,c.represent)(i),{cause:i});case 6:return e.abrupt("return",{nginx:a});case 7:case"end":return e.stop()}}),e,null,[[2,4]])})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=i()(u().mark((function e(r){var n,t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.configuration,null===(t=r.services).nginx){e.next=1;break}return t.nginx.kill("SIGINT"),e.next=1,x(n.applicationServer,!0);case 1:delete t.nginx;case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n={}),e.proxy.url){var t=e.proxy.url.startsWith("https://"),a=o()({options:o()({redirect:"manual"},t?{agent:new d.Agent({rejectUnauthorized:!1})}:{}),pollIntervallInSeconds:.1,statusCodes:[100,101,102,200,201,202,203,204,205,206,207,208,226,300,301,302,303,304,305,306,307,308],timeoutInSeconds:3,wait:!0},n);return(r?c.checkUnreachability:c.checkReachability)(e.proxy.url,a)}return Promise.resolve(null)},v=e.exports;const y=v},r=>{r.exports=e},e=>{e.exports=r},e=>{e.exports=n},e=>{e.exports=t},e=>{e.exports=o},e=>{e.exports=a}],l={};function u(e){var r=l[e];if(void 0!==r)return r.exports;var n=l[e]={id:e,loaded:!1,exports:{}};return i[e](n,n.exports,u),n.loaded=!0,n.exports}return u.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return u.d(r,{a:r}),r},u.d=(e,r)=>{for(var n in r)u.o(r,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},u.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),u.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u(0)})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nginxwebnodeplugin",
3
- "version": "1.0.354",
3
+ "version": "1.0.356",
4
4
  "description": "A nginx proxy server configuration template for webNode.",
5
5
  "keywords": [
6
6
  "web",
@@ -43,28 +43,30 @@
43
43
  "test": "weboptimizer test",
44
44
  "test:coverage": "yarn clear && weboptimizer test:coverage",
45
45
  "test:coverage:report": "yarn clear && weboptimizer test:coverage:report",
46
- "update:documentation": "documentation-website",
46
+ "update:documentation": "web-documentation",
47
47
  "watch": "weboptimizer build --watch"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/eslint-parser": "^7.28.6",
51
51
  "@babel/runtime": "^7.29.2",
52
+ "@eslint/js": "^10.0.1",
52
53
  "@stylistic/eslint-plugin": "^5.10.0",
53
- "@types/node": "^25.5.0",
54
- "@typescript-eslint/eslint-plugin": "^8.57.1",
55
- "@typescript-eslint/parser": "^8.57.1",
56
- "application-server-web-node-plugin": "^1.0.399",
57
- "clientnode": "^4.0.1359",
58
- "documentation-website": "^1.0.401",
59
- "eslint": "^10.1.0",
54
+ "@types/node": "^25.6.0",
55
+ "@types/webpack-env": "^1.18.8",
56
+ "@typescript-eslint/eslint-plugin": "^8.59.0",
57
+ "@typescript-eslint/parser": "^8.59.0",
58
+ "application-server-web-node-plugin": "^1.0.402",
59
+ "clientnode": "^4.0.1388",
60
+ "eslint": "^10.2.1",
60
61
  "eslint-config-google": "^0.14.0",
61
- "eslint-plugin-jsdoc": "^62.8.0",
62
+ "eslint-plugin-jsdoc": "^62.9.0",
62
63
  "jest": "^30.3.0",
63
64
  "jsdoc": "^4.0.5",
64
65
  "node-fetch": "^3.3.2",
65
- "typescript-eslint": "^8.57.1",
66
- "web-node": "^1.0.574",
67
- "weboptimizer": "^2.0.1651"
66
+ "typescript-eslint": "^8.59.0",
67
+ "web-documentation": "^1.0.2",
68
+ "web-node": "^1.0.581",
69
+ "weboptimizer": "^3.0.22"
68
70
  },
69
71
  "peerDependencies": {
70
72
  "@babel/runtime": "*",
@@ -78,8 +80,8 @@
78
80
  }
79
81
  },
80
82
  "engines": {
81
- "node": ">=20",
82
- "npm": ">=10",
83
+ "node": ">=24",
84
+ "npm": ">=11",
83
85
  "yarn": ">=4"
84
86
  },
85
87
  "resolutions": {
@@ -147,5 +149,5 @@
147
149
  }
148
150
  }
149
151
  },
150
- "packageManager": "yarn@4.12.0+sha512.f45ab632439a67f8bc759bf32ead036a1f413287b9042726b7cc4818b7b49e14e9423ba49b18f9e06ea4941c1ad062385b1d8760a8d5091a1a31e5f6219afca8"
152
+ "packageManager": "yarn@4.14.1+sha512.64df448055b2d37ba269d7db535a469b8da93f8ef1140c25fd7a83c00a8fbaacb214ca0e02553b92a2c54cef78bb67d0b4817fab02001df0e24fac0faccc3b42"
151
153
  }
package/readme.md CHANGED
@@ -25,7 +25,7 @@ Project status
25
25
 
26
26
  [![code coverage](https://img.shields.io/coverallsCoverage/github/thaibault/nginx-web-node-plugin?label=code%20coverage&style=for-the-badge)](https://coveralls.io/github/thaibault/nginx-web-node-plugin)
27
27
 
28
- [![deploy documentation website](https://img.shields.io/github/actions/workflow/status/thaibault/nginx-web-node-plugin/deploy-documentation-website.yaml?label=deploy%20documentation%20website&style=for-the-badge)](https://github.com/thaibault/nginx-web-node-plugin/actions/workflows/deploy-documentation-website.yaml)
28
+ [![deploy web documentation](https://img.shields.io/github/actions/workflow/status/thaibault/nginx-web-node-plugin/deploy-web-documentation.yaml?label=deploy%20web%20documentation&style=for-the-badge)](https://github.com/thaibault/nginx-web-node-plugin/actions/workflows/deploy-web-documentation.yaml)
29
29
  [![documentation website](https://img.shields.io/website-up-down-green-red/https/torben.website/nginx-web-node-plugin.svg?label=documentation-website&style=for-the-badge)](https://torben.website/nginx-web-node-plugin)
30
30
 
31
31
  Use case