From d3210b73c9be3bcf6e9f5541f710f1a554de18e0 Mon Sep 17 00:00:00 2001 From: mifi Date: Tue, 23 May 2023 22:12:01 -0400 Subject: [PATCH] Fucked up paths --- lib/api/authenticate.ts | 2 +- lib/api/resetPasswordGet.ts | 4 ++-- lib/api/resetPasswordPost.ts | 4 ++-- lib/index.ts | 2 +- package.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/api/authenticate.ts b/lib/api/authenticate.ts index a630ac2..bec6a76 100644 --- a/lib/api/authenticate.ts +++ b/lib/api/authenticate.ts @@ -1,5 +1,5 @@ import { Auth, Log } from '..'; -import { Action } from '../../constants/action'; +import { Action } from '../constants/action'; import { getLoginToken } from '../utils/getLoginToken'; export const authenticate = async (username: string, password: string) => { diff --git a/lib/api/resetPasswordGet.ts b/lib/api/resetPasswordGet.ts index e8025a5..2854885 100644 --- a/lib/api/resetPasswordGet.ts +++ b/lib/api/resetPasswordGet.ts @@ -1,7 +1,7 @@ import { readOneByUsername } from '../dao/readOneByUsername'; import { Log, Token } from '..'; -import { TokenType } from '../../constants/tokens'; -import { Action } from '../../constants/action'; +import { TokenType } from '../constants/tokens'; +import { Action } from '../constants/action'; export const resetPasswordGet = async (username: string) => { const doc = await readOneByUsername(username); diff --git a/lib/api/resetPasswordPost.ts b/lib/api/resetPasswordPost.ts index c89e79f..63d28c2 100644 --- a/lib/api/resetPasswordPost.ts +++ b/lib/api/resetPasswordPost.ts @@ -1,11 +1,11 @@ import { Types } from 'mongoose'; import { Log, Strategy, Token } from '..'; -import { STRATEGIES } from '../../constants/strategies'; +import { STRATEGIES } from '../constants/strategies'; import { AuthDocument } from '../schema/auth'; import { getLoginToken } from '../utils/getLoginToken'; import { StrategyDocument } from '../schema/strategy'; -import { Action } from '../../constants/action'; +import { Action } from '../constants/action'; export const resetPasswordPost = async (token: string, password: string) => { const parentId = await Token.validateResetToken(token); diff --git a/lib/index.ts b/lib/index.ts index 19da8a1..8ca1ab7 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,6 +1,6 @@ import mongoose from 'mongoose'; -import { DB_HOST, DB_NAME, DB_PASSWORD, DB_PORT, DB_USERNAME } from '../constants/db'; +import { DB_HOST, DB_NAME, DB_PASSWORD, DB_PORT, DB_USERNAME } from './constants/db'; import { Auth } from './model/auth'; import { Log } from './model/log'; import { Strategy } from './model/strategy'; diff --git a/package.json b/package.json index 134933f..64bf157 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mifi/auth-db", - "version": "1.0.3", + "version": "1.0.4", "author": "mifi (Mike Fitzpatrick)", "license": "MIT", "scripts": {