@maximemrf/adonisjs-jwt 0.0.11 → 0.0.12

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.
package/package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "@maximemrf/adonisjs-jwt",
3
3
  "description": "",
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "engines": {
6
6
  "node": ">=20.6.0"
7
7
  },
8
8
  "type": "module",
9
9
  "files": [
10
10
  "build/src",
11
- "build/providers",
12
11
  "build/stubs",
13
- "build/services",
14
12
  "build/index.d.ts",
15
13
  "build/index.js"
16
14
  ],
17
15
  "exports": {
18
16
  ".": "./build/index.js",
19
17
  "./types": "./build/src/types.js",
20
- "./jwt_provider": "./build/providers/jwt.js",
21
- "./services/jwt": "./build/services/jwt.js",
22
18
  "./jwt_config": "./build/src/define_config.js"
23
19
  },
24
20
  "scripts": {
@@ -1,11 +0,0 @@
1
- import type { ApplicationService } from '@adonisjs/core/types';
2
- export default class JwtProvider {
3
- protected app: ApplicationService;
4
- constructor(app: ApplicationService);
5
- register(): void;
6
- }
7
- declare module '@adonisjs/core/types' {
8
- interface ContainerBindings {
9
- 'max/jwt': any;
10
- }
11
- }
@@ -1,12 +0,0 @@
1
- import { jwtGuard } from '../src/define_config.js';
2
- export default class JwtProvider {
3
- app;
4
- constructor(app) {
5
- this.app = app;
6
- }
7
- register() {
8
- this.app.container.singleton('max/jwt', async () => {
9
- return jwtGuard;
10
- });
11
- }
12
- }
@@ -1,2 +0,0 @@
1
- declare let guard: any;
2
- export { guard as default };
@@ -1,9 +0,0 @@
1
- import app from '@adonisjs/core/services/app';
2
- let guard;
3
- /**
4
- * Returns a singleton instance
5
- */
6
- await app.booted(async () => {
7
- guard = await app.container.make('max/jwt');
8
- });
9
- export { guard as default };