oipage 1.0.0-alpha.0 → 1.0.0-alpha.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/bin/resolve404.js CHANGED
@@ -1,9 +1,9 @@
1
1
  const { readdirSync, lstatSync, readFileSync } = require("fs");
2
2
  const { join } = require("path");
3
3
 
4
- const img_folder = "data:image/png;base64," + readFileSync("./images/folder.png").toString('base64');
5
- const img_file = "data:image/png;base64," + readFileSync("./images/file.png").toString('base64');
6
- const img_goback = "data:image/png;base64," + readFileSync("./images/goback.png").toString('base64');
4
+ const img_folder = "data:image/png;base64," + readFileSync(join(__dirname, "../images/folder.png")).toString('base64');
5
+ const img_file = "data:image/png;base64," + readFileSync(join(__dirname, "../images/file.png")).toString('base64');
6
+ const img_goback = "data:image/png;base64," + readFileSync(join(__dirname, "../images/goback.png")).toString('base64');
7
7
 
8
8
  module.exports = function (filePath) {
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oipage",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "description": "前端网页或应用快速开发助手,包括开发服务器、辅助命令、实用API等",
5
5
  "sideEffects": false,
6
6
  "scripts": {