Skip to content

Commit 5aa2c46

Browse files
author
khanh2906
committed
release v0.6.8
1 parent 086b9e1 commit 5aa2c46

File tree

10 files changed

+22
-24
lines changed

10 files changed

+22
-24
lines changed

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Version | Supported |
66
| ------- | ------------------ |
77
| 0.5.3 | :white_check_mark: |
8-
| 0.6.6 | :white_check_mark: |
8+
| 0.6.8 | :white_check_mark: |
99

1010

1111
## Reporting a Vulnerability

lib/stubs/template/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "bamimi",
3-
"version": "0.6.6",
3+
"version": "0.6.8",
44
"description": "Power framework for nodejs",
55
"main": "src/server.js",
6-
"bamimiVersion": "0.6.6",
6+
"bamimiVersion": "0.6.8",
77
"bin": {
88
"bamimi-enjoy-": "./dist/routes/cli/index.js",
99
"bamimi-enjoy-dev": "./src/routes/cli/index.js"

lib/stubs/template/src/app/http/requests/validationApi.res.js renamed to lib/stubs/template/src/app/http/requests/validationApi.req.js

File renamed without changes.

lib/stubs/template/src/app/http/requests/validationWeb.res.js renamed to lib/stubs/template/src/app/http/requests/validationWeb.req.js

File renamed without changes.

lib/stubs/template/src/configs/app.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,23 @@ require("dotenv").config();
33

44
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
55

6+
const serverConfig = {
7+
host: process.env.APP_HOST || "localhost",
8+
port: process.env.APP_PORT || process.env.PORT || 3000,
9+
ssl: process.env.APP_SSL || false,
10+
options: {
11+
key: "",
12+
cert: "",
13+
}
14+
};
15+
616
module.exports = {
717
name: process.env.APP_NAME || "BAMIMI",
818
debug: false,
9-
server: {
10-
host: process.env.APP_HOST || "localhost",
11-
port: process.env.APP_PORT || process.env.PORT || 3000,
12-
ssl: process.env.APP_SSL || false,
13-
options: {
14-
key: "",
15-
cert: "",
16-
},
17-
asset: process.env.APP_ASSET || `${this.host}:${this.port}`,
18-
url: process.env.APP_URL || `${this.host}:${this.port}`,
19-
},
20-
openBrowser: process.env.OPEN_BROWSER === 'true' ? true : false,
19+
server: serverConfig,
20+
asset: process.env.APP_ASSET || `${serverConfig.host}:${serverConfig.port}`,
21+
url: process.env.APP_URL || `${serverConfig.host}:${serverConfig.port}`,
22+
openBrowser: process.env.OPEN_BROWSER === 'true' ? true : false,
2123
useTableInformation: false,
2224
timeZone: process.env.TIME_ZONE || "America/Los_Angeles",
2325
staticCacheTime: 360000,

lib/stubs/template/src/utils/asset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
const config = require("@iConfigs/app");
33

44
module.exports = (publicPath = "") => {
5-
return `${config.server.asset}/${publicPath}`;
5+
return `${config.asset}/${publicPath}`;
66
};

lib/stubs/template/src/utils/file.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ const config = require('@iConfigs/file')
33
const path = require("path")
44

55
const getPublicPath = (filePath, storageType = null) => {
6-
if (storageType === "azureBlob" || config.use === "azureBlob") {
7-
return filePath
8-
}
9-
106
const storageUrl = storageType
117
? config.storages[storageType]['url']
128
: config.storages[config.use]['url']

lib/stubs/template/src/utils/url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = (path = '', params = {}) => {
66
if (path instanceof URL) {
77
url = path;
88
} else {
9-
url = new URL(`${config.server.url}/${path}`);
9+
url = new URL(`${config.url}/${path}`);
1010
}
1111

1212
for (const [key, value] of Object.entries(params)) {

lib/stubs/template/src/utils/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
2-
const ValidationWebResponse = require("@iApp/http/requests/validationWeb.res");
3-
const ValidationApiResponse = require("@iApp/http/requests/validationApi.res");
2+
const ValidationWebResponse = require("@iApp/http/requests/validationWeb.req");
3+
const ValidationApiResponse = require("@iApp/http/requests/validationApi.req");
44

55
module.exports = {
66
validateWeb: validations => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@knfs-tech/bamimi-cli",
3-
"version": "0.6.6",
3+
"version": "0.6.8",
44
"description": "Command line of Bamimi framework",
55
"bin": {
66
"bamimi-cli": "./bin/cli.js"

0 commit comments

Comments
 (0)