hono 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ __export(jws_exports, {
22
22
  verifying: () => verifying
23
23
  });
24
24
  module.exports = __toCommonJS(jws_exports);
25
- var import_helper = require("../../helper");
25
+ var import_adapter = require("../../helper/adapter");
26
26
  var import_encode = require("../encode");
27
27
  var import_types = require("./types");
28
28
  var import_types2 = require("./types");
@@ -199,7 +199,7 @@ function getKeyAlgorithm(name) {
199
199
  }
200
200
  }
201
201
  function isCryptoKey(key) {
202
- const runtime = (0, import_helper.getRuntimeKey)();
202
+ const runtime = (0, import_adapter.getRuntimeKey)();
203
203
  if (runtime === "node" && !!crypto.webcrypto) {
204
204
  return key instanceof crypto.webcrypto.CryptoKey;
205
205
  }
@@ -1,5 +1,5 @@
1
1
  // src/utils/jwt/jws.ts
2
- import { getRuntimeKey } from "../../helper.js";
2
+ import { getRuntimeKey } from "../../helper/adapter/index.js";
3
3
  import { decodeBase64 } from "../encode.js";
4
4
  import { JwtAlgorithmNotImplemented } from "./types.js";
5
5
  import { CryptoKeyUsage } from "./types.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Ultrafast web framework for the Edges",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",
@@ -1,12 +0,0 @@
1
- export * from './helper/accepts';
2
- export * from './helper/adapter';
3
- export * from './helper/cookie';
4
- export * from './helper/css';
5
- export * from './helper/factory';
6
- export * from './helper/html';
7
- export * from './helper/streaming';
8
- export * from './helper/testing';
9
- export * from './helper/dev';
10
- export * from './adapter/deno/ssg';
11
- export * from './adapter/deno/websocket';
12
- export { decode as jwtDecode, sign as jwtSign, verify as jwtVerify } from './middleware/jwt';