diff --git a/zefie_wtvp_minisrv/app.js b/zefie_wtvp_minisrv/app.js index 091f8825..1cf6d2d8 100644 --- a/zefie_wtvp_minisrv/app.js +++ b/zefie_wtvp_minisrv/app.js @@ -382,7 +382,7 @@ const runScriptInVM = function (script_data, user_contextObj = {}, privileged = "service_vaults": service_vaults, "service_deps": service_deps, "ssid_sessions": ssid_sessions, - "moveArrayKey": wtvshared.moveArrayKey, + "moveArrayKey": wtvshared.moveArrayKey, // deprecated - use wtvshared.moveArrayKey() instead "cwd": (filename) ? path.dirname(filename) : __dirname, // current working directory // Our prototype overrides diff --git a/zefie_wtvp_minisrv/includes/depreciated.json b/zefie_wtvp_minisrv/includes/depreciated.json index 333d1fa9..53ebadda 100644 --- a/zefie_wtvp_minisrv/includes/depreciated.json +++ b/zefie_wtvp_minisrv/includes/depreciated.json @@ -14,5 +14,13 @@ "message": "getServiceString() is deprecated and will be removed", "removeVersion": "0.9.80", "replacement": "Use wtvshared.getServiceString() instead" - } + }, + { + "id": "moveArrayKey", + "pattern": "(? ( path.isAbsolute(vault) ? path.resolve(vault) : path.resolve(process.cwd(), vault) )); @@ -307,6 +307,7 @@ function main() { console.log(JSON.stringify(payload, null, 2)); } else { console.log('ServiceVault deprecation scan'); + console.log('- Deprecation count: ' + deprecationPatterns.length); console.log(`- Vault roots: ${vaultsToScan.length}`); console.log(`- Missing vault roots: ${missingVaults.length}`); console.log(`- Files scanned: ${filesToScan.length}`);