oipage 1.4.0 → 1.4.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/CHANGELOG CHANGED
@@ -92,3 +92,8 @@ v1.4.0:
92
92
  (仅对内使用,未正式对外暴露API相关文档)
93
93
  * 添加304是否启用开关
94
94
  * 应用市场(website内置网站)
95
+ v1.4.1:
96
+ date:2025-09-02
97
+ changes:
98
+ - 修复bug
99
+ 1、修复开发服务器大文件丢失文件大小问题
package/bin/serve.js CHANGED
@@ -112,6 +112,9 @@ module.exports = function (config) {
112
112
  // 对于大文件,使用流读取
113
113
  else {
114
114
  sendType = "Stream";
115
+
116
+ responseHeader['Content-Length'] = fileInfo.size
117
+
115
118
  response.writeHead('200', responseHeader);
116
119
  createReadStream(filePath).pipe(response);
117
120
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * animation of OIPage v1.4.0
2
+ * animation of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * cmdlog of OIPage v1.4.0
2
+ * cmdlog of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * disk of OIPage v1.4.0
2
+ * disk of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * format of OIPage v1.4.0
2
+ * format of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * json of OIPage v1.4.0
2
+ * json of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
  const {reader} = require("../reader/index.js");
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * logform of OIPage v1.4.0
2
+ * logform of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
  const {linelog} = require("../cmdlog/index.js");
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * reader of OIPage v1.4.0
2
+ * reader of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * throttle of OIPage v1.4.0
2
+ * throttle of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oipage",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "前端网页或应用快速开发助手,包括开发服务器、辅助命令、实用API等",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * XMLHttpRequest of OIPage v1.4.0
2
+ * XMLHttpRequest of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * animation of OIPage v1.4.0
2
+ * animation of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * format of OIPage v1.4.0
2
+ * format of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
package/web/json/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * json of OIPage v1.4.0
2
+ * json of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
  import {reader} from "../reader/index.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * onReady of OIPage v1.4.0
2
+ * onReady of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * performChunk of OIPage v1.4.0
2
+ * performChunk of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * reader of OIPage v1.4.0
2
+ * reader of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * style of OIPage v1.4.0
2
+ * style of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * throttle of OIPage v1.4.0
2
+ * throttle of OIPage v1.4.1
3
3
  * git+https://github.com/oi-contrib/OIPage.git
4
4
  */
5
5