From 56b31cb42f9d74ca2aebd9b3d6455519c3eebc30 Mon Sep 17 00:00:00 2001 From: Denys Bondarenko <58662935+denbon05@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:49:34 +0100 Subject: [PATCH] fix: constants import (#52) Co-authored-by: denys-bondarenko --- lib/index.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index 7b36cb5..4220950 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,10 +1,10 @@ -import * as constants from '@/constants'; import { formatOptions, shouldDataBeCached } from '@/helpers'; import MapStorage from '@/storage/Map'; import type { ICacheOptions } from '@/types/lcache'; import { buildCacheKey } from '@/utils'; import type { FastifyInstance, FastifyPluginCallback } from 'fastify'; import fp from 'fastify-plugin'; +import * as constants from './constants'; const defaultOpts: ICacheOptions = { ttlInMinutes: constants.TTL_IN_MINUTES, diff --git a/package.json b/package.json index 64ff5ce..65a6d8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fastify-lcache", - "version": "2.1.3", + "version": "2.1.4", "description": "Light cache plugin for fastify", "main": "dist/index.js", "types": "dist/index.d.ts",