pm2@6.0.10

This commit is contained in:
Unitech 2025-09-02 16:25:56 +02:00
parent d88b73560c
commit 7b022de8fd
3 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,8 @@
## 6.0.10
- revert #5971 #6031
## 6.0.9
- updates all typescript definitions

View File

@ -200,8 +200,9 @@ Config._valid = function(key, value, sch){
// If first type is Array, but current is String, try to split them.
if(scht.length > 1 && type != scht[0] && type == '[object String]'){
if(scht[0] == '[object Array]') {
value = value.split(/([\w\-]+\="[^"]*")|([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s/)
// unfortunately, js does not support lookahead RegExp (/(?<!\\)\s+/) now (until next ver).
value = value.split(/((?<![\w\-])([\w\-]+\="[^"]*")|(?<![\w\-])([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s )/)
//value = value.split(/((?<![\w\-])([\w\-]+\="[^"]*")|(?<![\w\-])([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s )/)
.filter(function(v){
return v && v.trim();
});

View File

@ -1,7 +1,7 @@
{
"name": "pm2",
"preferGlobal": true,
"version": "6.0.9",
"version": "6.0.10",
"engines": {
"node": ">=16.0.0"
},