@revolut/web-cli
Advanced tools
Comparing version
{ | ||
"name": "@revolut/web-cli", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "description": "Interactive CLI tool for web projects to provide automation for various tasks", |
@@ -50,5 +50,3 @@ "use strict"; | ||
[TemplatePlaceholder.AppName]: appName, | ||
[TemplatePlaceholder.SentryReportUri]: sentryReportUri | ||
? `report-uri ${sentryReportUri};` | ||
: '', | ||
[TemplatePlaceholder.SentryReportUri]: sentryReportUri, | ||
}; | ||
@@ -64,3 +62,3 @@ } | ||
function applyPlaceholders(text, values) { | ||
return Object.entries(values).reduce((result, [key, value]) => replaceAll(result, key, value), text); | ||
return Object.entries(values).reduce((result, [key, value]) => replaceAll(result, key, value !== null && value !== void 0 ? value : ''), text); | ||
} | ||
@@ -67,0 +65,0 @@ function copyTemplate(appPath, { appDomain, appName, sentryReportUri }) { |
{ | ||
"name": "@revolut/web-cli", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "description": "Interactive CLI tool for web projects to provide automation for various tasks", |
@@ -71,5 +71,3 @@ import { Command } from 'commander' | ||
[TemplatePlaceholder.AppName]: appName, | ||
[TemplatePlaceholder.SentryReportUri]: sentryReportUri | ||
? `report-uri ${sentryReportUri};` | ||
: '', | ||
[TemplatePlaceholder.SentryReportUri]: sentryReportUri, | ||
} | ||
@@ -92,3 +90,3 @@ } | ||
return Object.entries(values).reduce( | ||
(result, [key, value]) => replaceAll(result, key, value), | ||
(result, [key, value]) => replaceAll(result, key, value ?? ''), | ||
text, | ||
@@ -95,0 +93,0 @@ ) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
860144
0.87%381
0.53%4
-20%3488
-0.11%