Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "@hilla/cli", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A CLI for creating Hilla applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -16,3 +16,3 @@ #!/usr/bin/env node | ||
"--latest", | ||
"Use the latest release. By default uses the latest LTS release" | ||
"Use the latest release - this is the default" | ||
) | ||
@@ -25,3 +25,3 @@ .option("--pre", "Use the latest pre release (if available)") | ||
.option("--auth", "Add authentication support to the application") | ||
.option("--push", "Add experimental push support") | ||
.option("--push", "Add push support / reactive endpoints to the application") | ||
.option( | ||
@@ -35,2 +35,3 @@ "--git", | ||
) | ||
.option("--server <server>", "For internal testing only") | ||
.arguments("<projectName>") | ||
@@ -79,12 +80,11 @@ .action(async function (projectName) { | ||
try { | ||
const response = await fetch( | ||
`https://start.vaadin.com/dl?preset=${preset}&projectName=${projectName}`, | ||
{ | ||
headers: { | ||
"User-Agent": `Hilla CLI`, | ||
method: "GET", | ||
"Accept-Encoding": "gzip", | ||
}, | ||
} | ||
); | ||
const host = options.server || "start.vaadin.com"; | ||
const url = `https://${host}/dl?preset=${preset}&projectName=${projectName}`; | ||
const response = await fetch(url, { | ||
headers: { | ||
"User-Agent": `Hilla CLI`, | ||
method: "GET", | ||
"Accept-Encoding": "gzip", | ||
}, | ||
}); | ||
if (!response.ok) { | ||
@@ -91,0 +91,0 @@ if (response.status == 404) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4099