@modern-js/server-core 2.67.7 → 2.67.8

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.
@@ -107,7 +107,7 @@ const initMonitorsPlugin = () => ({
107
107
  const injectloggerPlugin = (inputLogger) => ({
108
108
  name: "@modern-js/inject-logger",
109
109
  setup(api) {
110
- const logger = inputLogger || console;
110
+ const logger = inputLogger;
111
111
  return {
112
112
  prepare() {
113
113
  const { middlewares } = api.useAppContext();
@@ -125,7 +125,7 @@ var injectloggerPlugin = function(inputLogger) {
125
125
  return {
126
126
  name: "@modern-js/inject-logger",
127
127
  setup: function setup(api) {
128
- var logger = inputLogger || console;
128
+ var logger = inputLogger;
129
129
  return {
130
130
  prepare: function prepare() {
131
131
  var middlewares = api.useAppContext().middlewares;
@@ -81,7 +81,7 @@ const initMonitorsPlugin = () => ({
81
81
  const injectloggerPlugin = (inputLogger) => ({
82
82
  name: "@modern-js/inject-logger",
83
83
  setup(api) {
84
- const logger = inputLogger || console;
84
+ const logger = inputLogger;
85
85
  return {
86
86
  prepare() {
87
87
  const { middlewares } = api.useAppContext();
@@ -1,6 +1,6 @@
1
1
  import type { Logger } from '@modern-js/types';
2
2
  import type { Context, Next, ServerEnv, ServerPluginLegacy } from '../types';
3
3
  export declare const initMonitorsPlugin: () => ServerPluginLegacy;
4
- export declare const injectloggerPlugin: (inputLogger?: Logger) => ServerPluginLegacy;
4
+ export declare const injectloggerPlugin: (inputLogger: Logger) => ServerPluginLegacy;
5
5
  export declare const injectServerTiming: () => ServerPluginLegacy;
6
6
  export declare function requestLatencyMiddleware(): (c: Context<ServerEnv>, next: Next) => Promise<void>;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.67.7",
18
+ "version": "2.67.8",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -54,10 +54,10 @@
54
54
  "flatted": "^3.2.9",
55
55
  "hono": "^3.12.2",
56
56
  "ts-deepmerge": "7.0.2",
57
- "@modern-js/plugin": "2.67.7",
58
- "@modern-js/plugin-v2": "2.67.7",
59
- "@modern-js/runtime-utils": "2.67.7",
60
- "@modern-js/utils": "2.67.7"
57
+ "@modern-js/plugin": "2.67.8",
58
+ "@modern-js/plugin-v2": "2.67.8",
59
+ "@modern-js/runtime-utils": "2.67.8",
60
+ "@modern-js/utils": "2.67.8"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/cloneable-readable": "^2.0.3",
@@ -68,9 +68,9 @@
68
68
  "jest": "^29",
69
69
  "ts-jest": "^29.1.0",
70
70
  "typescript": "^5",
71
- "@modern-js/types": "2.67.7",
72
- "@scripts/build": "2.66.0",
73
- "@scripts/jest-config": "2.66.0"
71
+ "@modern-js/types": "2.67.8",
72
+ "@scripts/jest-config": "2.66.0",
73
+ "@scripts/build": "2.66.0"
74
74
  },
75
75
  "sideEffects": false,
76
76
  "publishConfig": {