22 <a href =" https://nestjs.com/ " target =" blank " ><img src =" https://nestjs.com/img/logo_text.svg " width =" 200 " alt =" Nest Logo " /></a ><br /><a href =" https://supabase.com/ " target =" blank " ><img src =" https://user-images.githubusercontent.com/8291514/213727225-56186826-bee8-43b5-9b15-86e839d89393.png#gh-dark-mode-only " width =" 500 " alt =" Supabase " ></a >
33</p >
44
5+ ![ Test] ( https://github.com/adrianmjim/nestjs-supabase-js/actions/workflows/codecov_test.yml/badge.svg )
6+ [ ![ codecov] ( https://codecov.io/gh/Adrianmjim/nestjs-supabase-js/graph/badge.svg?token=jNHEDepqm7 )] ( https://codecov.io/gh/Adrianmjim/nestjs-supabase-js )
7+ [ ![ NPM Version] ( https://badge.fury.io/js/nestjs-supabase-js.svg?style=flat )] ( https://npmjs.org/package/nestjs-supabase-js )
8+ [ ![ NPM Download Stats] ( https://nodei.co/npm/nestjs-supabase-js.png?downloads=true )] ( https://www.npmjs.com/package/nestjs-supabase-js )
9+
510## Description
611
712The [ Supabase] ( https://github.com/supabase/supabase-js ) module for [ NestJS] ( https://github.com/nestjs/nest ) .
@@ -12,17 +17,17 @@ First install the dependencies via `npm`, `pnpm` or `yarn`:
1217
1318npm:
1419``` bash
15- $ npm i -s @nest/common @supabase/supabase-js nest-supabase
20+ $ npm i -s @nest/common @supabase/supabase-js nest-supabase-js
1621```
1722
1823pnpm:
1924``` bash
20- $ pnpm add @nest/common @supabase/supabase-js nest-supabase
25+ $ pnpm add @nest/common @supabase/supabase-js nest-supabase-js
2126```
2227
2328yarn:
2429``` bash
25- $ yarn add @nest/common @supabase/supabase-js nest-supabase
30+ $ yarn add @nest/common @supabase/supabase-js nest-supabase-js
2631```
2732
2833## Configuration
@@ -31,7 +36,7 @@ First, import the module into your NestJS application and configure it using the
3136
3237``` typescript
3338import { Module } from ' @nestjs/common' ;
34- import { SupabaseModule } from ' nestjs-supabase' ;
39+ import { SupabaseModule } from ' nestjs-supabase-js ' ;
3540
3641@Module ({
3742 imports: [
@@ -48,7 +53,7 @@ Or, You can configure it asynchronously as follows:
4853
4954``` typescript
5055import { Module } from ' @nestjs/common' ;
51- import { SupabaseModule } from ' nestjs-supabase' ;
56+ import { SupabaseModule } from ' nestjs-supabase-js ' ;
5257
5358@Module ({
5459 imports: [
@@ -71,7 +76,7 @@ In certain situations, we will need to connect to different Supabase projects, w
7176
7277``` typescript
7378import { Module } from ' @nestjs/common' ;
74- import { SupabaseModule } from ' nestjs-supabase' ;
79+ import { SupabaseModule } from ' nestjs-supabase-js ' ;
7580
7681@Module ({
7782 imports: [
@@ -100,7 +105,7 @@ Or asynchronously:
100105
101106``` typescript
102107import { Module } from ' @nestjs/common' ;
103- import { SupabaseModule } from ' nestjs-supabase' ;
108+ import { SupabaseModule } from ' nestjs-supabase-js ' ;
104109
105110@Module ({
106111 imports: [
@@ -135,7 +140,7 @@ First, inject the client into the module where you want to use it:
135140
136141``` typescript
137142import { Module } from ' @nestjs/common' ;
138- import { SupabaseModule } from ' nestjs-supabase' ;
143+ import { SupabaseModule } from ' nestjs-supabase-js ' ;
139144
140145@Module ({
141146 imports: [
@@ -149,7 +154,7 @@ Or, for a specific connection:
149154
150155``` typescript
151156import { Module } from ' @nestjs/common' ;
152- import { SupabaseModule } from ' nestjs-supabase' ;
157+ import { SupabaseModule } from ' nestjs-supabase-js ' ;
153158
154159@Module ({
155160 imports: [
@@ -177,7 +182,7 @@ Or, for a specific connection:
177182
178183``` typescript
179184import { SupabaseClient } from ' @supabase/supabase-js' ;
180- import { InjectSupabaseClient } from ' nestjs-supabase' ;
185+ import { InjectSupabaseClient } from ' nestjs-supabase-js ' ;
181186
182187export class CatService {
183188 constructor (
@@ -195,7 +200,7 @@ It's also possible to use the InjectSupabaseClient decorator to inject the Supab
195200
196201``` typescript
197202import { SupabaseClient } from ' @supabase/supabase-js' ;
198- import { InjectSupabaseClient } from ' nestjs-supabase' ;
203+ import { InjectSupabaseClient } from ' nestjs-supabase-js ' ;
199204
200205export class CatService {
201206 constructor (
@@ -208,7 +213,7 @@ export class CatService {
208213}
209214```
210215
211- ## 🤝 Contributing
216+ ## 🤝 Contributing [ ![ contributions welcome ] ( https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat )] ( https://github.com/adrianmjim/nestjs-supabase-js/issues )
212217
213218Contributions, issues and feature requests are welcome.
214219
@@ -218,7 +223,7 @@ Contributions, issues and feature requests are welcome.
218223
219224- Github: [ @adrianmjim ] ( https://github.com/adrianmjim )
220225
221- See also the list of contributors who [ participated] ( https://github.com/adrianmjim/nestjs-supabase/contributors ) in this project.
226+ See also the list of contributors who [ participated] ( https://github.com/adrianmjim/nestjs-supabase-js /contributors ) in this project.
222227
223228## Show Your Support
224229
0 commit comments