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

hono

Package Overview
Dependencies
Maintainers
1
Versions
343
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 1.2.1 to 1.2.2

dist/compose.test.d.ts

2

dist/hono.d.ts

@@ -13,3 +13,3 @@ /// <reference types="@cloudflare/workers-types" />

}
export declare type Handler<RequestParamKeyType = string, E = Env> = (c: Context<RequestParamKeyType, E>, next?: Next) => Response | Promise<Response> | void | Promise<void>;
export declare type Handler<RequestParamKeyType = string, E = Env> = (c: Context<RequestParamKeyType, E>, next: Next) => Response | Promise<Response> | void | Promise<void>;
export declare type NotFoundHandler<E = Env> = (c: Context<string, E>) => Response;

@@ -16,0 +16,0 @@ export declare type ErrorHandler<E = Env> = (err: Error, c: Context<string, E>) => Response;

@@ -8,3 +8,3 @@ import type { Context } from '../../context';

}
declare module '@/context' {
declare module '../../context' {
interface Context {

@@ -11,0 +11,0 @@ cookie: (name: string, value: string, options?: CookieOptions) => void;

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

const graphql_1 = require("graphql");
const parse_body_1 = require("../../middleware/graphql-server/parse-body");
const parse_body_1 = require("./parse-body");
const graphqlServer = (options) => {

@@ -10,0 +10,0 @@ var _a, _b;

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

export { RegExpRouter } from '../../router/reg-exp-router/router';
export { RegExpRouter } from './router';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RegExpRouter = void 0;
var router_1 = require("../../router/reg-exp-router/router");
var router_1 = require("./router");
Object.defineProperty(exports, "RegExpRouter", { enumerable: true, get: function () { return router_1.RegExpRouter; } });

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

const router_1 = require("../../router");
const trie_1 = require("../../router/reg-exp-router/trie");
const trie_1 = require("./trie");
const emptyParam = {};

@@ -8,0 +8,0 @@ const nullMatcher = [/^$/, []];

@@ -1,4 +0,4 @@

import type { ParamMap, Context } from '../../router/reg-exp-router/node';
import { Node } from '../../router/reg-exp-router/node';
export type { ParamMap } from '../../router/reg-exp-router/node';
import type { ParamMap, Context } from './node';
import { Node } from './node';
export type { ParamMap } from './node';
export declare type ReplacementMap = number[];

@@ -5,0 +5,0 @@ interface InitOptions {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Trie = void 0;
const node_1 = require("../../router/reg-exp-router/node");
const node_1 = require("./node");
class Trie {

@@ -6,0 +6,0 @@ constructor({ reverse } = { reverse: false }) {

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

export { TrieRouter } from '../../router/trie-router/router';
export { TrieRouter } from './router';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TrieRouter = void 0;
var router_1 = require("../../router/trie-router/router");
var router_1 = require("./router");
Object.defineProperty(exports, "TrieRouter", { enumerable: true, get: function () { return router_1.TrieRouter; } });
import { Router } from '../../router';
import type { Result } from '../../router';
import { Node } from '../../router/trie-router/node';
import { Node } from './node';
export declare class TrieRouter<T> extends Router<T> {

@@ -5,0 +5,0 @@ node: Node<T>;

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

const router_1 = require("../../router");
const node_1 = require("../../router/trie-router/node");
const node_1 = require("./node");
class TrieRouter extends router_1.Router {

@@ -8,0 +8,0 @@ constructor() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bufferToString = exports.timingSafeEqual = exports.equal = void 0;
const crypto_1 = require("../utils/crypto");
const crypto_1 = require("./crypto");
const equal = (a, b) => {

@@ -6,0 +6,0 @@ if (a === b) {

{
"name": "hono",
"version": "1.2.1",
"version": "1.2.2",
"description": "Ultrafast web framework for Cloudflare Workers.",

@@ -14,4 +14,4 @@ "main": "dist/index.js",

"lint:fix": "eslint --ext js,ts src .eslintrc.js --fix",
"build": "rimraf dist && tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"watch": "tsc -w --project tsconfig.build.json & tsc-alias -w -p tsconfig.build.json",
"build": "rimraf dist && tsc",
"watch": "tsc -w",
"prepublishOnly": "yarn build"

@@ -135,3 +135,2 @@ },

"ts-jest": "^27.1.4",
"tsc-alias": "^1.6.7",
"typescript": "^4.6.3"

@@ -138,0 +137,0 @@ },

@@ -90,3 +90,3 @@ <div align="center">

const app = new Hono()
app.use('*', etag(), (logger())
app.use('*', etag(), logger())
```

@@ -93,0 +93,0 @@

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