@hellocoop/express 1.2.0 → 1.2.2
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.
- package/dist/lib/config.js +2 -2
- package/package.json +1 -1
package/dist/lib/config.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getApiRoute = exports.getAuthApiRoute = exports.getLogoutApiRoute = exports.getLoginApiRoute = exports.getConfig = exports.configure = exports.isConfigured = void 0;
|
|
7
7
|
const core_1 = require("@hellocoop/core");
|
|
8
8
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
9
|
-
dotenv_1.default.config(
|
|
9
|
+
dotenv_1.default.config();
|
|
10
10
|
const HELLO_API_ROUTE = process.env.HELLO_API_ROUTE || '/api/hellocoop';
|
|
11
11
|
const HELLO_DOMAIN = process.env.HELLO_DOMAIN || 'hello.coop';
|
|
12
12
|
const _configuration = {
|
|
@@ -52,7 +52,7 @@ const configure = function (config) {
|
|
|
52
52
|
_configuration.provider_hint = config.provider_hint;
|
|
53
53
|
exports.isConfigured = true;
|
|
54
54
|
if (!_configuration.clientId) {
|
|
55
|
-
const message = 'No HELLO_CLIENT_ID was in environment or client_id in hello.config
|
|
55
|
+
const message = 'No HELLO_CLIENT_ID was in environment or client_id in hello.config';
|
|
56
56
|
_configuration.error = [message];
|
|
57
57
|
console.error(message);
|
|
58
58
|
exports.isConfigured = false;
|