hotelme-nuxt-logger 1.1.0 → 1.1.1
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/module.json +1 -1
- package/dist/runtime/logger.js +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/runtime/logger.js
CHANGED
|
@@ -8,8 +8,8 @@ export var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
|
8
8
|
LogLevel2["Fatal"] = "Fatal";
|
|
9
9
|
return LogLevel2;
|
|
10
10
|
})(LogLevel || {});
|
|
11
|
-
const PROJECT_NAME = process.env.NUXT_PUBLIC_PROJECT_NAME || "hotelme";
|
|
12
|
-
const PID = process.pid;
|
|
11
|
+
const PROJECT_NAME = import.meta.server ? process.env.NUXT_PUBLIC_PROJECT_NAME || "hotelme" : "hotelme";
|
|
12
|
+
const PID = import.meta.server ? process.pid : void 0;
|
|
13
13
|
export function getRequestId() {
|
|
14
14
|
return uuidv4().replace(/-/g, "");
|
|
15
15
|
}
|