@mainshopapp/common 1.0.1 → 1.0.4

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.
@@ -0,0 +1,9 @@
1
+ import { Document, Model } from 'mongoose';
2
+ export interface UserDoc extends Document {
3
+ name: string;
4
+ email: string;
5
+ password: string;
6
+ }
7
+ export interface UserModel extends Model<UserDoc> {
8
+ findByEmail(email: string): Promise<UserDoc>;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/build/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './middlewares/require-auth';
9
9
  export * from './middlewares/validate-request';
10
10
  export * from './middlewares/current-user';
11
11
  export * from './middlewares/uploader';
12
+ export * from './constants/auth/user.interfaces';
package/build/index.js CHANGED
@@ -25,7 +25,7 @@ __exportStar(require("./middlewares/require-auth"), exports);
25
25
  __exportStar(require("./middlewares/validate-request"), exports);
26
26
  __exportStar(require("./middlewares/current-user"), exports);
27
27
  __exportStar(require("./middlewares/uploader"), exports);
28
- // export * from './constants/auth/user.interfaces'
28
+ __exportStar(require("./constants/auth/user.interfaces"), exports);
29
29
  // export * from './services/authentication.service'
30
30
  // export * from './constants/globals';
31
31
  // export * from './constants/seller/product.interfaces'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mainshopapp/common",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -8,14 +8,16 @@
8
8
  "build/**/*"
9
9
  ],
10
10
  "scripts": {
11
- "clean": "del ./build/*",
11
+ "clean": "rimraf ./build",
12
12
  "build": "npm run clean && tsc",
13
- "pub": "git add . && git commit -m \"Update\" && npm version patch && npm run build && npm publish"
13
+ "prepub": "npm version patch --no-git-tag-version",
14
+ "pub": "git add . && git commit -m \"Update\" && npm run build && npm publish"
14
15
  },
15
16
  "keywords": [],
16
17
  "author": "",
17
18
  "license": "ISC",
18
19
  "dependencies": {
20
+ "@mainshopapp/common": "^1.0.1",
19
21
  "@types/express": "^4.17.14",
20
22
  "@types/express-validator": "^3.0.0",
21
23
  "@types/jsonwebtoken": "^8.5.9",
@@ -27,6 +29,6 @@
27
29
  "multer": "^1.4.5-lts.1"
28
30
  },
29
31
  "devDependencies": {
30
- "del-cli": "^5.0.0"
32
+ "rimraf": "^6.1.3"
31
33
  }
32
34
  }