Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hilla/cli

Package Overview
Dependencies
Maintainers
7
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hilla/cli - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc