@joystick.js/db-canary 0.0.0-canary.2230 → 0.0.0-canary.2231
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import s from"./logger.js";const{create_context_logger:t}=s("development_mode"),n=t(),l=()=>process.env.NODE_ENV==="development",r=(e,o)=>{console.log(`
|
|
1
|
+
import s from"./logger.js";const{create_context_logger:t}=s("development_mode"),n=t(),l=()=>process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",r=(e,o)=>{console.log(`
|
|
2
2
|
JoystickDB Development Mode
|
|
3
3
|
`),console.log("Development environment detected (NODE_ENV=development)."),console.log(`Security features have been bypassed for local development.
|
|
4
4
|
`),console.log("Default admin user created:"),console.log(" Username: admin"),console.log(` Password: password
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joystick.js/db-canary",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-canary.
|
|
5
|
-
"canary_version": "0.0.0-canary.
|
|
4
|
+
"version": "0.0.0-canary.2231",
|
|
5
|
+
"canary_version": "0.0.0-canary.2230",
|
|
6
6
|
"description": "JoystickDB - A minimalist database server for the Joystick framework",
|
|
7
7
|
"main": "./dist/server/index.js",
|
|
8
8
|
"scripts": {
|
|
@@ -12,10 +12,10 @@ const log = create_context_logger();
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Checks if the server is running in development mode.
|
|
15
|
-
* @returns {boolean} True if NODE_ENV is set to 'development'
|
|
15
|
+
* @returns {boolean} True if NODE_ENV is set to 'development' or 'test'
|
|
16
16
|
*/
|
|
17
17
|
const is_development_mode = () => {
|
|
18
|
-
return process.env.NODE_ENV === 'development';
|
|
18
|
+
return process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test';
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/**
|