Release 1.0.6 #4
24
.drone.yml
24
.drone.yml
@@ -37,6 +37,25 @@ steps:
|
|||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
- name: Build
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn build
|
||||||
|
- name: Send Build Status Notifications
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||||
|
"text": "[{{ repo.name }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
|
"username":"DroneBot"
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@@ -54,6 +73,11 @@ workspace:
|
|||||||
path: /drone/auth
|
path: /drone/auth
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Build
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn install
|
||||||
|
- yarn build
|
||||||
- name: Publish NPM
|
- name: Publish NPM
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
failure: ignore
|
failure: ignore
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -130,3 +130,6 @@ dist
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
|
# Project
|
||||||
|
lib/
|
||||||
|
|
||||||
|
|||||||
8
.npmignore
Normal file
8
.npmignore
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
src
|
||||||
|
tsconfig.json
|
||||||
|
tslint.json
|
||||||
|
.prettierrc
|
||||||
|
.yarnrc.yml
|
||||||
|
.drone.yml
|
||||||
|
babel.config.*
|
||||||
|
jest.config.*
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/auth-db",
|
"name": "@mifi/auth-db",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { FilterQuery } from 'mongoose';
|
import { FilterQuery } from 'mongoose';
|
||||||
|
|
||||||
import { Auth } from '..';
|
import { Auth } from '../model/auth';
|
||||||
import { Status } from '../constants/auth';
|
import { Status } from '../constants/auth';
|
||||||
import { AuthDocument } from '../schema/auth';
|
import { AuthDocument } from '../schema/auth';
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Types } from 'mongoose';
|
import { Types } from 'mongoose';
|
||||||
|
|
||||||
import { Auth } from '..';
|
import { Auth } from '../model/auth';
|
||||||
|
|
||||||
export const readOneById = async (id: Types.ObjectId) => Auth.findById(id);
|
export const readOneById = async (id: Types.ObjectId) => Auth.findById(id);
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Types } from 'mongoose';
|
import { Types } from 'mongoose';
|
||||||
|
|
||||||
import { Auth } from '..';
|
import { Auth } from '../model/auth';
|
||||||
|
|
||||||
export const readOneByRecord = async (record: Types.ObjectId) => Auth.findOne({ record });
|
export const readOneByRecord = async (record: Types.ObjectId) => Auth.findOne({ record });
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
import { Auth } from '..';
|
import { Auth } from '../model/auth';
|
||||||
|
|
||||||
export const readOneByUsername = async (username: string) => Auth.findOne({ username });
|
export const readOneByUsername = async (username: string) => Auth.findOne({ username });
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"outDir": "./dist/",
|
"outDir": "./lib/",
|
||||||
"rootDirs": ["lib"],
|
"rootDirs": ["src"],
|
||||||
"sourceMap": true
|
"sourceMap": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user