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

folonite.js

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

folonite.js - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"name": "folonite.js",
"version": "1.3.0",
"version": "1.3.1",
"description": "Folonite.js - The first lightweight framework that integrates dynamic server-side rendering (SSR), streaming capabilities, and an external component marketplace.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -25,3 +25,3 @@ #!/usr/bin/env node

// Search for components/templates based on a keyword (like 'navbar')
// Search for components/templates based on a keyword
function searchMarketplace(keyword) {

@@ -39,3 +39,7 @@ fetchMarketplace((err, marketplace) => {

const results = marketplace.filter(item => item.tags.includes(keyword.toLowerCase()));
const results = marketplace.filter(item =>
item.tags.includes(keyword.toLowerCase()) ||
item.name.toLowerCase().includes(keyword.toLowerCase()) ||
item.description.toLowerCase().includes(keyword.toLowerCase())
);

@@ -112,3 +116,10 @@ if (results.length === 0) {

const filePath = path.resolve(`./downloads/${item.name}.js`);
const downloadsDir = path.resolve('./downloads');
const filePath = path.join(downloadsDir, `${item.name}.js`);
// Ensure the downloads directory exists
if (!fs.existsSync(downloadsDir)) {
fs.mkdirSync(downloadsDir, { recursive: true });
}
const file = fs.createWriteStream(filePath);

@@ -123,3 +134,3 @@

}).on('error', (err) => {
fs.unlink(filePath);
fs.unlink(filePath, () => {}); // Remove the file if an error occurs
console.error(`Error downloading "${name}": ${err.message}`);

@@ -126,0 +137,0 @@ });

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