From 9280aa628dcfad5c1750b0ea2d059b917e031da3 Mon Sep 17 00:00:00 2001 From: Julien Date: Sat, 15 Jul 2023 22:18:47 +0200 Subject: [PATCH] chore: add headers --- factories/redis_manager.ts | 9 +++++++++ src/redis_manager.ts | 9 +++++++++ src/types/main.ts | 13 ------------- test/redis_connection.spec.ts | 9 +++++++++ test/redis_manager.spec.ts | 9 +++++++++ 5 files changed, 36 insertions(+), 13 deletions(-) diff --git a/factories/redis_manager.ts b/factories/redis_manager.ts index cdd436b..a7f4891 100644 --- a/factories/redis_manager.ts +++ b/factories/redis_manager.ts @@ -1,3 +1,12 @@ +/* + * @adonisjs/redis + * + * (c) AdonisJS + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { EmitterFactory } from '@adonisjs/core/factories/events' import { Application } from '@adonisjs/core/app' import RedisManager from '../src/redis_manager.js' diff --git a/src/redis_manager.ts b/src/redis_manager.ts index c3b0b95..b6bbb5f 100644 --- a/src/redis_manager.ts +++ b/src/redis_manager.ts @@ -1,3 +1,12 @@ +/* + * @adonisjs/redis + * + * (c) AdonisJS + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { ApplicationService, EmitterService } from '@adonisjs/core/types' import RedisConnection from './redis_connection.js' import { pubsubMethods } from './pubsub_methods.js' diff --git a/src/types/main.ts b/src/types/main.ts index 968f2c3..8d4c609 100644 --- a/src/types/main.ts +++ b/src/types/main.ts @@ -16,19 +16,6 @@ import { RawRedisConnection } from '../redis_connection.js' import { Emitter } from '@adonisjs/core/events' import { RawRedisManager } from '../redis_manager.js' -/* - |-------------------------------------------------------------------------- - | Helpers - |-------------------------------------------------------------------------- - */ -/** - * Returns factory for a given connection by inspecting it's config. - */ -// type GetConnectionFactoryType = -// RedisConnectionsList[T] extends RedisClusterConfig -// ? RedisClusterConnectionContract -// : RedisConnectionContract - /** * Pubsub subscriber */ diff --git a/test/redis_connection.spec.ts b/test/redis_connection.spec.ts index 5f72bdb..0ecadda 100644 --- a/test/redis_connection.spec.ts +++ b/test/redis_connection.spec.ts @@ -1,3 +1,12 @@ +/* + * @adonisjs/redis + * + * (c) AdonisJS + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import RedisConnection from '../src/redis_connection.js' import { test } from '@japa/runner' import { BASE_URL } from './redis_manager.spec.js' diff --git a/test/redis_manager.spec.ts b/test/redis_manager.spec.ts index eda4a5d..cef6794 100644 --- a/test/redis_manager.spec.ts +++ b/test/redis_manager.spec.ts @@ -1,3 +1,12 @@ +/* + * @adonisjs/redis + * + * (c) AdonisJS + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { test } from '@japa/runner' import { AppFactory } from '@adonisjs/core/factories/app' import { RedisManagerFactory } from '../factories/redis_manager.js'