New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kalastatic

Package Overview
Dependencies
Maintainers
0
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kalastatic - npm Package Compare versions

Comparing version

to
6.0.0-alpha5

2

package.json

@@ -5,3 +5,3 @@ {

"repository": "https://github.com/kalamuna/kalastatic.git",
"version": "6.0.0-alpha3",
"version": "6.0.0-alpha5",
"type": "module",

@@ -8,0 +8,0 @@ "license": "MIT",

@@ -196,5 +196,2 @@ // This script would exist within the node module and doesn't need to be invoked during a real project

}
else {
console.error(`kalastatic: Library stylesheet file missing: ${library} ${source} expects "${filename}"`);
}
}

@@ -209,5 +206,2 @@

}
else {
console.error(`kalastatic: Library JavaScript file missing: ${library} ${source} expects "${filename}"`);
}
}

@@ -234,5 +228,10 @@ };

const renderData = {};
config = config || {};
config.destination = config.destination || 'build';
// Add the base url if set by the environmetn and / otherwise.
// TODO: The `base_url` variable will be deprecated in favor of `env.base_url`.
renderData.base_url = process.env.base_url || "";
// Add all the environment variables to the `env` object in the render data.
renderData.env = process.env;

@@ -285,5 +284,7 @@ // Delete all the destination files/directories in each source and assets so we don't get orphans.

// Process each source into its corresponding destination.
const source = config.source
const source = config.source;
let stats = await fs.stat(config.source);
const destination = config.destination;
const pages = await findTwigPages(config.source);
const pages = stats.isFile() ? [config.source] : await findTwigPages(config.source);
for (const page of pages) {

@@ -290,0 +291,0 @@ const compiledHtml = await compileTwig(source, page, renderData, config).catch(err => console.log(err.message));