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

solid-ssr

Package Overview
Dependencies
Maintainers
1
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-ssr - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

6

package.json
{
"name": "solid-ssr",
"description": "Utilities to help with SSR",
"version": "1.7.1",
"version": "1.7.2",
"author": "Ryan Carniato",

@@ -29,4 +29,4 @@ "license": "MIT",

"rollup-plugin-copy": "^3.4.0",
"babel-preset-solid": "1.7.4",
"solid-js": "1.7.4"
"babel-preset-solid": "1.7.7",
"solid-js": "1.7.7"
},

@@ -33,0 +33,0 @@ "scripts": {

@@ -1,2 +0,2 @@

export type StaticConfig = { entry: string, output: string, url: string }
export default function renderStatic(config: StaticConfig | StaticConfig[]): Promise<void>;
export type StaticConfig = { entry: string; output: string; url: string };
export default function renderStatic(config: StaticConfig | StaticConfig[]): Promise<void>;

@@ -11,3 +11,9 @@ import { resolve } from "path";

async function run({ entry, output, url }) {
const { stdout, stderr } = await exec("node", [pathToRunner, entry, output, url, "--trace-warnings"]);
const { stdout, stderr } = await exec("node", [
pathToRunner,
entry,
output,
url,
"--trace-warnings"
]);
if (stdout.length) console.log(stdout);

@@ -21,2 +27,2 @@ if (stderr.length) console.log(stderr);

} else await run(config);
};
}
import { dirname, join } from "path";
import { writeFile, mkdir } from "fs"
import { writeFile, mkdir } from "fs";

@@ -7,6 +7,6 @@ async function write() {

const res = await server({ url: process.argv[4] });
mkdir(dirname(process.argv[3]), {recursive: true}, () =>
mkdir(dirname(process.argv[3]), { recursive: true }, () =>
writeFile(process.argv[3], res, () => process.exit(0))
);
}
write();
write();
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