diff --git a/package.json b/package.json index d8b727e..8f1110d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "directus-helpers", - "version": "1.2.0", + "version": "1.3.0", "description": "Helpers Directus Extensions", "author": "AntoXa PRO ", "homepage": "https://antoxahub.ru/antoxa/directus-helpers", @@ -32,8 +32,8 @@ "devDependencies": { "@directus/api": "latest", "@directus/extensions-sdk": "latest", - "prettier": "latest", - "vite": "latest", - "vite-plugin-dts": "latest" + "prettier": "^3.3.1", + "vite": "^5.2.12", + "vite-plugin-dts": "^3.9.1" } } diff --git a/src/services/factory.ts b/src/services/factory.ts index 6d699a0..7d63f3f 100644 --- a/src/services/factory.ts +++ b/src/services/factory.ts @@ -37,7 +37,7 @@ export class FactoryServices { return this._items[name] as ItemsService } - files() { + get files() { if (!this._files) { this._files = new this.opts.services.FilesService({ schema: this.opts.schema, @@ -47,7 +47,7 @@ export class FactoryServices { return this._files as FilesService } - users() { + get users() { if (!this._users) { this._users = new this.opts.services.UserService({ schema: this.opts.schema, diff --git a/src/types/hook.ts b/src/types/hook.ts index 1ed5665..d1ee0b9 100644 --- a/src/types/hook.ts +++ b/src/types/hook.ts @@ -1,4 +1,4 @@ -import type { PrimaryKey } from '@directus/api/dist/types' +import type { PrimaryKey } from '@directus/types' export type TFilterHandlerMeta = Record & { event: string | 'items.create' | 'items.update',