hono-camelcase 0.2.0 → 0.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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createMiddleware } from "hono/factory";
2
- import { convertObjectKeysToCamelCase } from "./lib";
2
+ import { convertObjectKeysToCamelCase } from "./lib.js";
3
3
  export const enforceCamelCase = createMiddleware(async (c, next) => {
4
4
  await next();
5
5
  const response = await c.res.json();
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, test } from "vitest";
2
- import { convertObjectKeysToCamelCase } from "./lib";
2
+ import { convertObjectKeysToCamelCase } from "./lib.js";
3
3
  describe("JSON camelCase enforcement", () => {
4
4
  test("Convert snake_case to camelCase", () => {
5
5
  const result = convertObjectKeysToCamelCase({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono-camelcase",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Hono middleware to enforce camelCase in JSON responses.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",