nginxwebnodeplugin 1.0.365 → 1.0.367
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/index.js +4 -4
- package/package.json +20 -20
- package/readme.md +30 -3
package/index.js
CHANGED
|
@@ -13,9 +13,9 @@ import { Agent as __WEBPACK_EXTERNAL_MODULE_https_Agent__ } from "https";
|
|
|
13
13
|
// -*- coding: utf-8 -*-
|
|
14
14
|
/** @module nginx-web-node-plugin *//* !
|
|
15
15
|
region header
|
|
16
|
-
[Project page](https://
|
|
16
|
+
[Project page](https://tsickert.com/nginx-web-node-plugin)
|
|
17
17
|
|
|
18
|
-
Copyright Torben Sickert (info["~at~"]
|
|
18
|
+
Copyright Torben Sickert (info["~at~"]tsickert.com) 16.12.2012
|
|
19
19
|
|
|
20
20
|
License
|
|
21
21
|
-------
|
|
@@ -25,7 +25,7 @@ import { Agent as __WEBPACK_EXTERNAL_MODULE_https_Agent__ } from "https";
|
|
|
25
25
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
26
26
|
endregion
|
|
27
27
|
*/// region imports
|
|
28
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,
|
|
28
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var i=r.call(t,e||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,u=!0;return{s:function s(){t=t.call(r)},n:function n(){u=!0;var r=t.next();return r.done?{done:!0}:{value:r.value,done:u=!1}},e:function e(r){o=!0,a=r},f:function f(){try{u||null==t.return||t.return()}finally{if(o)throw a}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}};// endregion
|
|
29
29
|
var log=new __WEBPACK_EXTERNAL_MODULE_clientnode_Logger__({name:"web-node.nginx"});// region plugins/classes
|
|
30
30
|
/**
|
|
31
31
|
* Launches an application server und triggers all some pluginable hooks on
|
|
@@ -46,7 +46,7 @@ var log=new __WEBPACK_EXTERNAL_MODULE_clientnode_Logger__({name:"web-node.nginx"
|
|
|
46
46
|
*/reject(error);/*
|
|
47
47
|
eslint-enable
|
|
48
48
|
@typescript-eslint/prefer-promise-reject-errors
|
|
49
|
-
*/}else resolve(standardOutput)})})};promise=new Promise(function(resolve,reject){var _iterator=_createForOfIteratorHelper(__WEBPACK_EXTERNAL_MODULE_clientnode_CLOSE_EVENT_NAMES__),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var closeEventName=_step.value;nginx.on(closeEventName,__WEBPACK_EXTERNAL_MODULE_clientnode_getProcessCloseHandler__(resolve,configuration.proxy.optional?resolve:reject,{reason:nginx,process:nginx}))}}catch(err){_iterator.e(err)}finally{_iterator.f()}});_context.p=2;_context.n=3;return checkReachability(configuration);case 3:_context.n=6;break;case 4:_context.p=4;_t=_context.v;if(!configuration.proxy.optional){_context.n=5;break}log.warn("Nginx couldn't be started (or at least","\"".concat(configuration.proxy.url,"\" could not be reached) but was"),"marked as optional.");services.nginx=null;promise=null;_context.n=6;break;case 5:throw new Error("Could not acknowledge that nginx is running because "+"\"".concat(configuration.proxy.url,"\" is not reachable: ")+__WEBPACK_EXTERNAL_MODULE_clientnode_represent__(_t),{cause:_t});case 6:return _context.a(2,{nginx:promise})}},_callee,null,[[2,4]])}));function loadService(_x){return _loadService.apply(this,arguments)}return loadService}();/**
|
|
49
|
+
*/}else resolve(standardOutput)})})};promise=new Promise(function(resolve,reject){var _iterator=_createForOfIteratorHelper(__WEBPACK_EXTERNAL_MODULE_clientnode_CLOSE_EVENT_NAMES__),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var closeEventName=_step.value;nginx.on(closeEventName,__WEBPACK_EXTERNAL_MODULE_clientnode_getProcessCloseHandler__(resolve,configuration.proxy.optional?resolve:reject,{reason:nginx,process:nginx}))}}catch(err){_iterator.e(err)}finally{_iterator.f()}});_context.p=2;_context.n=3;return checkReachability(configuration);case 3:_context.n=6;break;case 4:_context.p=4;_t=_context.v;if(!configuration.proxy.optional){_context.n=5;break}void log.warn("Nginx couldn't be started (or at least","\"".concat(configuration.proxy.url,"\" could not be reached) but was"),"marked as optional.");services.nginx=null;promise=null;_context.n=6;break;case 5:throw new Error("Could not acknowledge that nginx is running because "+"\"".concat(configuration.proxy.url,"\" is not reachable: ")+__WEBPACK_EXTERNAL_MODULE_clientnode_represent__(_t),{cause:_t});case 6:return _context.a(2,{nginx:promise})}},_callee,null,[[2,4]])}));function loadService(_x){return _loadService.apply(this,arguments)}return loadService}();/**
|
|
50
50
|
* Application will be closed soon.
|
|
51
51
|
* @param state - Application state.
|
|
52
52
|
* @param state.configuration - Applications configuration.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nginxwebnodeplugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.367",
|
|
4
4
|
"description": "A nginx proxy server configuration template for webNode.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"configuration",
|
|
11
11
|
"template"
|
|
12
12
|
],
|
|
13
|
-
"homepage": "https://
|
|
13
|
+
"homepage": "https://tsickert.com/nginx-web-node-plugin",
|
|
14
14
|
"bugs": {
|
|
15
|
-
"email": "info@
|
|
15
|
+
"email": "info@tsickert.com",
|
|
16
16
|
"url": "https://github.com/thaibault/nginx-web-node-plugin/issues"
|
|
17
17
|
},
|
|
18
18
|
"license": "CC-BY-3.0",
|
|
19
19
|
"author": {
|
|
20
|
-
"email": "info@
|
|
20
|
+
"email": "info@tsickert.com",
|
|
21
21
|
"name": "Torben Sickert",
|
|
22
|
-
"url": "https://
|
|
22
|
+
"url": "https://tsickert.com"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "weboptimizer build:types && weboptimizer build",
|
|
38
|
-
"check": "yarn check:types
|
|
38
|
+
"check": "yarn check:types && yarn lint",
|
|
39
39
|
"check:types": "weboptimizer check:types",
|
|
40
40
|
"clear": "weboptimizer clear",
|
|
41
41
|
"document": "weboptimizer document",
|
|
@@ -50,25 +50,25 @@
|
|
|
50
50
|
"watch": "weboptimizer build --watch"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@babel/eslint-parser": "^8.0.
|
|
53
|
+
"@babel/eslint-parser": "^8.0.7",
|
|
54
54
|
"@eslint/js": "^10.0.1",
|
|
55
55
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
56
|
-
"@types/node": "^26.5
|
|
56
|
+
"@types/node": "^26.6.5",
|
|
57
57
|
"@types/webpack-env": "^1.18.8",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
59
|
-
"@typescript-eslint/parser": "^8.
|
|
60
|
-
"application-server-web-node-plugin": "^1.0.
|
|
61
|
-
"clientnode": "^4.0.
|
|
62
|
-
"eslint": "^10.
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.71.2",
|
|
59
|
+
"@typescript-eslint/parser": "^8.71.2",
|
|
60
|
+
"application-server-web-node-plugin": "^1.0.415",
|
|
61
|
+
"clientnode": "^4.0.1523",
|
|
62
|
+
"eslint": "^10.13.0",
|
|
63
63
|
"eslint-config-google": "^0.14.0",
|
|
64
|
-
"eslint-plugin-jsdoc": "^
|
|
65
|
-
"jest": "^30.5.
|
|
64
|
+
"eslint-plugin-jsdoc": "^65.3.8",
|
|
65
|
+
"jest": "^30.5.2",
|
|
66
66
|
"jsdoc": "^4.0.5",
|
|
67
67
|
"node-fetch": "^3.3.2",
|
|
68
|
-
"typescript-eslint": "^8.
|
|
69
|
-
"web-documentation": "^1.0.
|
|
70
|
-
"web-node": "^1.0.
|
|
71
|
-
"weboptimizer": "^4.0.
|
|
68
|
+
"typescript-eslint": "^8.71.2",
|
|
69
|
+
"web-documentation": "^1.0.61",
|
|
70
|
+
"web-node": "^1.0.629",
|
|
71
|
+
"weboptimizer": "^4.0.89"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"application-server-web-node-plugin": "*",
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
-
"packageManager": "yarn@4.18.
|
|
147
|
+
"packageManager": "yarn@4.18.1+sha512.b2e1e7524f654f2749d32b4ebcb4622473cb5bcbc485df2007e12a154e50162a4d795526768bc5f5b8f81717bfd79deb2472813d86fb5ae2eb551fa9c872b08f"
|
|
148
148
|
}
|
package/readme.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- !/usr/bin/env markdown
|
|
2
2
|
-*- coding: utf-8 -*-
|
|
3
3
|
region header
|
|
4
|
-
Copyright Torben Sickert (info["~at~"]
|
|
4
|
+
Copyright Torben Sickert (info["~at~"]tsickert.com) 16.12.2012
|
|
5
5
|
|
|
6
6
|
License
|
|
7
7
|
-------
|
|
@@ -10,7 +10,8 @@ This library written by Torben Sickert stands under a creative commons naming
|
|
|
10
10
|
3.0 unported license. See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
11
11
|
endregion -->
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
<!--|deDE:Projektstatus-->
|
|
14
|
+
Project Status
|
|
14
15
|
--------------
|
|
15
16
|
|
|
16
17
|
[](https://www.npmjs.com/package/nginx-web-node-plugin)
|
|
@@ -26,9 +27,35 @@ Project status
|
|
|
26
27
|
[](https://coveralls.io/github/thaibault/nginx-web-node-plugin)
|
|
27
28
|
|
|
28
29
|
[](https://github.com/thaibault/nginx-web-node-plugin/actions/workflows/deploy-web-documentation.yaml)
|
|
29
|
-
[](https://tsickert.com/nginx-web-node-plugin)
|
|
30
31
|
|
|
32
|
+
<!--|deDE:Verwendung-->
|
|
31
33
|
Use case
|
|
32
34
|
--------
|
|
33
35
|
|
|
34
36
|
Nginx server as WebNode plugin.
|
|
37
|
+
|
|
38
|
+
<div class="wd-table-of-contents">
|
|
39
|
+
<h2 id="content">Content<!--deDE:Inhalt--><!--frFR:Contenu--></h2>
|
|
40
|
+
<!--wd-table-of-contents-->
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
Installation
|
|
44
|
+
------------
|
|
45
|
+
|
|
46
|
+
You can install via package manager, simply download the compiled version as
|
|
47
|
+
zip file here and inject or request via CDN in HTML:
|
|
48
|
+
<!--deDE:
|
|
49
|
+
Sie können das Paket über den Paketmanager installieren oder einfach die
|
|
50
|
+
kompilierte Version als ZIP-Datei hier herunterladen und in HTML einbinden
|
|
51
|
+
oder über ein CDN abrufen:
|
|
52
|
+
-->
|
|
53
|
+
<!--frFR:
|
|
54
|
+
Vous pouvez installer le paquet via le gestionnaire de paquets ou
|
|
55
|
+
simplement télécharger ici la version compilée sous forme de fichier ZIP,
|
|
56
|
+
puis l'intégrer dans une page HTML ou la récupérer via un CDN:
|
|
57
|
+
-->
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm install nginx-web-node-plugin
|
|
61
|
+
```
|