@modern-js/server-core 3.10.0 → 3.10.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.
@@ -31,6 +31,7 @@ __webpack_require__.d(__webpack_exports__, {
31
31
  ServerBase: ()=>ServerBase,
32
32
  createServerBase: ()=>createServerBase
33
33
  });
34
+ const fileReader_namespaceObject = require("@modern-js/runtime-utils/fileReader");
34
35
  const server_namespaceObject = require("@modern-js/plugin/server");
35
36
  const external_hono_namespaceObject = require("hono");
36
37
  const external_context_js_namespaceObject = require("./context.js");
@@ -111,6 +112,7 @@ class ServerBase {
111
112
  }
112
113
  constructor(options){
113
114
  _class_private_method_init(this, _applyMiddlewares);
115
+ this.fileReader = fileReader_namespaceObject.fileReader;
114
116
  this.plugins = [];
115
117
  this.serverContext = null;
116
118
  this.serverOptions = options;
@@ -1,3 +1,4 @@
1
+ import { fileReader } from "@modern-js/runtime-utils/fileReader";
1
2
  import { server as server_server } from "@modern-js/plugin/server";
2
3
  import { Hono } from "hono";
3
4
  import { run } from "./context.mjs";
@@ -78,6 +79,7 @@ class ServerBase {
78
79
  }
79
80
  constructor(options){
80
81
  _class_private_method_init(this, _applyMiddlewares);
82
+ this.fileReader = fileReader;
81
83
  this.plugins = [];
82
84
  this.serverContext = null;
83
85
  this.serverOptions = options;
@@ -1,4 +1,5 @@
1
1
  import "node:module";
2
+ import { fileReader } from "@modern-js/runtime-utils/fileReader";
2
3
  import { server as server_server } from "@modern-js/plugin/server";
3
4
  import { Hono } from "hono";
4
5
  import { run } from "./context.mjs";
@@ -79,6 +80,7 @@ class ServerBase {
79
80
  }
80
81
  constructor(options){
81
82
  _class_private_method_init(this, _applyMiddlewares);
83
+ this.fileReader = fileReader;
82
84
  this.plugins = [];
83
85
  this.serverContext = null;
84
86
  this.serverOptions = options;
@@ -9,6 +9,7 @@ export interface ServerBaseOptions extends ServerCreateOptions {
9
9
  }
10
10
  export declare class ServerBase<E extends Env = any> {
11
11
  #private;
12
+ readonly fileReader: import("@modern-js/runtime-utils/fileReader").FileReader;
12
13
  serverOptions: ServerBaseOptions;
13
14
  private app;
14
15
  private plugins;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.10.0",
18
+ "version": "3.10.1",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "exports": {
@@ -71,9 +71,9 @@
71
71
  "flatted": "^3.4.4",
72
72
  "hono": "^4.11.7",
73
73
  "ts-deepmerge": "8.0.0",
74
- "@modern-js/plugin": "3.10.0",
75
- "@modern-js/runtime-utils": "3.10.0",
76
- "@modern-js/utils": "3.10.0"
74
+ "@modern-js/plugin": "3.10.1",
75
+ "@modern-js/utils": "3.10.1",
76
+ "@modern-js/runtime-utils": "3.10.1"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@types/cloneable-readable": "^2.0.3",
@@ -82,7 +82,7 @@
82
82
  "http-proxy-middleware": "^2.0.10",
83
83
  "typescript": "^5",
84
84
  "@modern-js/rslib": "2.68.10",
85
- "@modern-js/types": "3.10.0",
85
+ "@modern-js/types": "3.10.1",
86
86
  "@scripts/rstest-config": "2.66.0"
87
87
  },
88
88
  "sideEffects": false,