@stricjs/jsx
Advanced tools
+7
-4
| { | ||
| "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", |
+8
-22
@@ -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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
12
-14.29%316891
-0.08%3
200%11
10%1376
-0.86%