chomot 1.3.6 → 1.3.8

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.
@@ -4,12 +4,10 @@ describe("Cursor", () => {
4
4
  it("can create cursor", async () => {
5
5
  const timestamp = new Date().toISOString();
6
6
  const plainCursor = [
7
- { column: "created_at", mark: timestamp, dir: "desc" }
7
+ { column: "created_at", mark: timestamp, dir: "desc" },
8
8
  ];
9
9
  const cursor = createCursor(plainCursor);
10
10
  const decodedCursor = decodeCursor(cursor);
11
- expect(decodedCursor).toEqual(expect.arrayContaining([
12
- expect.objectContaining(plainCursor[0])
13
- ]));
11
+ expect(decodedCursor).toEqual(expect.arrayContaining([expect.objectContaining(plainCursor[0])]));
14
12
  });
15
13
  });
@@ -2,6 +2,5 @@ export * from "./app.factory";
2
2
  export * from "./auth.factory";
3
3
  export * from "./db.factory";
4
4
  export * from "./faker.factory";
5
- export * from "./ioredis.factory";
6
5
  export * from "./response.factory";
7
6
  export * from "./route.factory";
@@ -2,6 +2,5 @@ export * from "./app.factory";
2
2
  export * from "./auth.factory";
3
3
  export * from "./db.factory";
4
4
  export * from "./faker.factory";
5
- export * from "./ioredis.factory";
6
5
  export * from "./response.factory";
7
6
  export * from "./route.factory";
@@ -22,7 +22,7 @@ export async function getPublicKey() {
22
22
  }
23
23
  return appCryptography.publicKey;
24
24
  }
25
- async function getSalt() {
25
+ async function _getSalt() {
26
26
  if (!appCryptography.salt) {
27
27
  const sodium = await getSodium();
28
28
  const publicKey = await getPublicKey();
@@ -2,7 +2,7 @@ import { Scalar } from "@scalar/hono-api-reference";
2
2
  import { getPkgJson } from "../config/openapi";
3
3
  export function configureOpenapi(app) {
4
4
  const PackageJson = getPkgJson();
5
- if (!process.env.ENV?.startsWith("prod")) {
5
+ if (process.env.ENV && ["dev", "local"].includes(process.env.ENV)) {
6
6
  app
7
7
  .doc("/openapi.json", {
8
8
  openapi: "3.0.0",
@@ -1,3 +1,2 @@
1
1
  export { getConnInfo } from "@hono/node-server/conninfo";
2
2
  export { z } from "@hono/zod-openapi";
3
- export * from "bullmq";
@@ -1,3 +1,2 @@
1
1
  export { getConnInfo } from "@hono/node-server/conninfo";
2
2
  export { z } from "@hono/zod-openapi";
3
- export * from "bullmq";
@@ -1,5 +1,4 @@
1
1
  export * from "./app.types";
2
2
  export * from "./auth.types";
3
3
  export * from "./http.types";
4
- export * from "./ioredis.types";
5
4
  export * from "./route.types";
@@ -1,5 +1,4 @@
1
1
  export * from "./app.types";
2
2
  export * from "./auth.types";
3
3
  export * from "./http.types";
4
- export * from "./ioredis.types";
5
4
  export * from "./route.types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chomot",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -25,10 +25,8 @@
25
25
  "@hono/node-server": "^1.19.9",
26
26
  "@hono/zod-openapi": "^1.2.1",
27
27
  "@scalar/hono-api-reference": "^0.9.40",
28
- "bullmq": "^5.67.2",
29
28
  "hono": "^4.11.7",
30
29
  "hono-rate-limiter": "^0.5.3",
31
- "ioredis": "^5.9.2",
32
30
  "libsodium-wrappers": "^0.8.2"
33
31
  },
34
32
  "scripts": {
@@ -1,2 +0,0 @@
1
- import Redis, { type RedisOptions } from "ioredis";
2
- export declare const createIORedisClient: (args: RedisOptions) => Redis;
@@ -1,2 +0,0 @@
1
- import Redis from "ioredis";
2
- export const createIORedisClient = (args) => new Redis(args);
@@ -1 +0,0 @@
1
- export type { Redis } from "ioredis";
@@ -1 +0,0 @@
1
- export {};