🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@stricjs/jsx

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stricjs/jsx - npm Package Compare versions

Comparing version
1.0.4
to
1.0.5
+7
-4
package.json
{
"name": "@stricjs/jsx",
"version": "1.0.4",
"version": "1.0.5",
"repository": {

@@ -14,10 +14,13 @@ "url": "https://github.com/bunsvr/jsx"

"@types/react": "^15.7.12",
"@stricjs/router": "^1.0.6",
"@stricjs/router": "^1.0.7",
"@types/react-dom": "^18.0.10",
"react-dom": "^18.2.0",
"@stricjs/core": "^1.0.3",
"@stricjs/utils": "^1.0.4"
"@stricjs/utils": "^1.0.4",
"@stricjs/pages": "^1.0.1"
},
"peerDependencies": {
"esbuild": ">=^0.16.10"
"esbuild": ">=^0.16.10",
"@types/react": ">=^15.7.12",
"@types/react-dom": ">=^18.0.10"
},

@@ -24,0 +27,0 @@ "description": "Support multi-page rendering with React",

@@ -1,15 +0,7 @@

/// <reference types="bun-types" />
import esbuild from "esbuild";
import Bun from "bun";
import { Router } from "@stricjs/router";
import { Template } from "./types";
export declare class PageRouter<T = any> {
import { PageRouter as PRouter } from "@stricjs/pages";
export declare class PageRouter<T = any> extends PRouter<T> {
private readonly build;
readonly src: string;
readonly out: string;
readonly dev: boolean;
readonly root: string;
private routesData;
private readonly app;
readonly router: Router<T>;
readonly template: Template;

@@ -20,7 +12,9 @@ /**

constructor(build?: esbuild.BuildOptions);
set(field: "src" | "out" | "root", value: string): this;
set(field: "dev", value: boolean): this;
set(field: "router", value: Router<T>): this;
set(field: "template", value: Template): this;
/**
* Set private fields
* @param field
* @param value
*/
set(field: string, value: any): this;
/**
* Route a static page

@@ -41,10 +35,2 @@ * @param path The pathname

load(streamOpts?: BlobPropertyBag & ResponseInit): Promise<this>;
/**
* Serve the app
*/
serve(): Promise<Bun.Server>;
/**
* Return the fetch handler
*/
fetch(): (request: Request<any>, server: Bun.Server) => Promise<Response>;
}

Sorry, the diff of this file is too big to display