create-sip 1.3.8 → 1.3.9

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.
@@ -2,9 +2,9 @@ import Sequelize from 'sequelize'
2
2
  import dotenvFlow from 'dotenv-flow'
3
3
 
4
4
  if (process.env.NODE_ENV === 'test') {
5
- dotenv.config({ path: '.env.test' })
5
+ dotenvFlow.config({ path: '.env.test' })
6
6
  }else {
7
- dotenv.config()
7
+ dotenvFlow.config()
8
8
  }
9
9
 
10
10
  const sequelize = new Sequelize(
@@ -1,7 +1,7 @@
1
1
  import app from './app.js'
2
2
  import dotenvFlow from 'dotenv-flow'
3
3
 
4
- dotenv.config()
4
+ dotenvFlow.config()
5
5
 
6
6
  const PORT = process.env.APP_PORT || 8000
7
7
 
@@ -1,6 +1,6 @@
1
1
  import jwt from 'jsonwebtoken';
2
2
  import dotenvFlow from 'dotenv-flow';
3
- dotenv.config()
3
+ dotenvFlow.config()
4
4
 
5
5
  const verifyToken = (req, res, next) => {
6
6
  let authData = req.headers.authorization;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sip",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "main": "index.js",
5
5
  "bin": {
6
6
  "create-sip": "create-sip.js"