From 737d69e788a14cdbc7ff3c4bbd43cf6cddc46577 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 22 Aug 2025 16:11:42 +0200 Subject: [PATCH] make global module --- README.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- src/password.hasher.module.ts | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b53d998..326470c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ npm i --save @apihub24/password-hasher | -------------- | ------------------------------------------------------------------------------------------------- | | @nestjs/config | use the NestJs Config Module to get the Password Salt Rounds with key _PASSWORD_HASH_SALT_ROUNDS_ | +| Exported Injection Keys | +| -------------------------- | +| @apihub24/password_service | + ## Usage ```typescript diff --git a/package-lock.json b/package-lock.json index 240fe03..f582e3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apihub24/password-hasher", - "version": "1.0.6", + "version": "1.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apihub24/password-hasher", - "version": "1.0.6", + "version": "1.0.8", "license": "MIT", "dependencies": { "@apihub24/token-authentication": "^1.0.4", diff --git a/package.json b/package.json index c84135d..ea87d28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apihub24/password-hasher", - "version": "1.0.7", + "version": "1.0.8", "description": "", "main": "dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/password.hasher.module.ts b/src/password.hasher.module.ts index c494949..757c290 100644 --- a/src/password.hasher.module.ts +++ b/src/password.hasher.module.ts @@ -1,10 +1,11 @@ -import { DynamicModule, Module } from "@nestjs/common"; +import { DynamicModule, Global, Module } from "@nestjs/common"; import { PasswordHashService } from "./password.hash.service"; import { ConfigModule } from "@nestjs/config"; export const APIHUB24_PASSWORD_SERVICE_INJECTION_KEY = "@apihub24/password_service"; +@Global() @Module({}) export class PasswordHasherModule { static forRoot(): DynamicModule {