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

hono

Package Overview
Dependencies
Maintainers
1
Versions
342
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hono - npm Package Compare versions

Comparing version 4.0.7 to 4.0.8

3

dist/cjs/helper/ssg/index.js

@@ -32,3 +32,2 @@ "use strict";

var import_utils = require("../../client/utils");
var import_buffer = require("../../utils/buffer");
var import_mime = require("../../utils/mime");

@@ -143,3 +142,3 @@ var import_utils2 = require("./utils");

} else if (content instanceof ArrayBuffer) {
await fsModule.writeFile(filePath, (0, import_buffer.bufferToString)(content));
await fsModule.writeFile(filePath, new Uint8Array(content));
}

@@ -146,0 +145,0 @@ files.push(filePath);

@@ -32,3 +32,3 @@ "use strict";

var import_html = require("../helper/html");
const jsxAttr = (name, value) => (0, import_html.raw)(name + '="' + import_html.html`${value}` + '"');
const jsxAttr = (name, value) => typeof value === "string" ? (0, import_html.raw)(name + '="' + import_html.html`${value}` + '"') : import_html.html`${name}="${value}"`;
const jsxEscape = (value) => value;

@@ -35,0 +35,0 @@ // Annotate the CommonJS export names for ESM import in node:

@@ -31,2 +31,5 @@ "use strict";

const reader = _readable.getReader();
this.abortSubscribers.push(async () => {
await reader.cancel();
});
this.responseReadable = new ReadableStream({

@@ -33,0 +36,0 @@ async pull(controller) {

// src/helper/ssg/index.ts
import { replaceUrlParam } from "../../client/utils.js";
import { bufferToString } from "../../utils/buffer.js";
import { getExtension } from "../../utils/mime.js";

@@ -113,3 +112,3 @@ import { joinPaths, dirname, filterStaticGenerateRoutes } from "./utils.js";

} else if (content instanceof ArrayBuffer) {
await fsModule.writeFile(filePath, bufferToString(content));
await fsModule.writeFile(filePath, new Uint8Array(content));
}

@@ -116,0 +115,0 @@ files.push(filePath);

@@ -5,3 +5,3 @@ // src/jsx/jsx-runtime.ts

import { raw, html } from "../helper/html/index.js";
var jsxAttr = (name, value) => raw(name + '="' + html`${value}` + '"');
var jsxAttr = (name, value) => typeof value === "string" ? raw(name + '="' + html`${value}` + '"') : html`${name}="${value}"`;
var jsxEscape = (value) => value;

@@ -8,0 +8,0 @@ export {

@@ -70,4 +70,4 @@ import type { Context } from '../../context';

*/
export interface ToSSGInterface<E extends Env = Env, S extends Schema = {}, BasePath extends string = '/'> {
(app: Hono<E, S, BasePath>, fsModule: FileSystemModule, options?: ToSSGOptions): Promise<ToSSGResult>;
export interface ToSSGInterface {
(app: Hono<any, any, any>, fsModule: FileSystemModule, options?: ToSSGOptions): Promise<ToSSGResult>;
}

@@ -74,0 +74,0 @@ /**

@@ -5,3 +5,3 @@ export { jsxDEV as jsx, Fragment } from './jsx-dev-runtime';

export { html as jsxTemplate };
export declare const jsxAttr: (name: string, value: string) => import("../utils/html").HtmlEscapedString;
export declare const jsxAttr: (name: string, value: string | Promise<string>) => import("../utils/html").HtmlEscapedString | Promise<import("../utils/html").HtmlEscapedString>;
export declare const jsxEscape: (value: string) => string;

@@ -9,2 +9,5 @@ // src/utils/stream.ts

const reader = _readable.getReader();
this.abortSubscribers.push(async () => {
await reader.cancel();
});
this.responseReadable = new ReadableStream({

@@ -11,0 +14,0 @@ async pull(controller) {

{
"name": "hono",
"version": "4.0.7",
"version": "4.0.8",
"description": "Ultrafast web framework for the Edges",

@@ -523,2 +523,3 @@ "main": "dist/cjs/index.js",

"eslint": "^8.55.0",
"glob": "7.2.3",
"jsdom": "^22.1.0",

@@ -525,0 +526,0 @@ "msw": "1.3.2",

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