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

@xylit/ssg

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylit/ssg - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "@xylit/ssg",
"version": "0.0.6",
"version": "0.0.7",
"description": "A pure static site generator",

@@ -5,0 +5,0 @@ "homepage": "https://ssg.xylit.dev/",

@@ -48,11 +48,12 @@ import { parse } from "acorn";

const url = new URL(urlStr);
const result = await next(urlStr, context);
if (!url.pathname.endsWith(".ssg.js")) return result;
if (!url.pathname.endsWith(".ssg.js")) return next(urlStr, context);
const { source } = await next(urlStr, { ...context, format: "module" });
return {
format: "module",
shortCircuit: true,
source: await compile(result.source.toString()),
source: await compile(source.toString()),
};
}
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