@abtnode/router-provider 1.8.6 → 1.8.9

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.
@@ -151,6 +151,11 @@ class DefaultProvider extends BaseProvider {
151
151
  fs.writeFileSync(`${this.wwwDir}/404.html`, get404Template(nodeInfo));
152
152
  fs.writeFileSync(`${this.wwwDir}/502.html`, get502Template(nodeInfo));
153
153
  fs.writeFileSync(`${this.wwwDir}/5xx.html`, get5xxTemplate(nodeInfo));
154
+ // 将 @abtnode/router-templates/lib/styles (font 相关样式) 复制到 www/router-template-styles 中
155
+ fs.copySync(
156
+ `${path.dirname(require.resolve('@abtnode/router-templates/package.json'))}/lib/styles`,
157
+ `${this.wwwDir}/router-template-styles`
158
+ );
154
159
  }
155
160
 
156
161
  getLogFilesForToday() {
@@ -643,6 +643,11 @@ class NginxProvider extends BaseProvider {
643
643
  fs.writeFileSync(`${this.wwwDir}/404.html`, get404Template(nodeInfo));
644
644
  fs.writeFileSync(`${this.wwwDir}/502.html`, get502Template(nodeInfo));
645
645
  fs.writeFileSync(`${this.wwwDir}/5xx.html`, get5xxTemplate(nodeInfo));
646
+ // 将 @abtnode/router-templates/lib/styles (font 相关样式) 复制到 www/router-template-styles 中
647
+ fs.copySync(
648
+ `${path.dirname(require.resolve('@abtnode/router-templates/package.json'))}/lib/styles`,
649
+ `${this.wwwDir}/router-template-styles`
650
+ );
646
651
  }
647
652
 
648
653
  _copyConfigFiles() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/router-provider",
3
- "version": "1.8.6",
3
+ "version": "1.8.9",
4
4
  "description": "Routing engine implementations for abt node",
5
5
  "author": "polunzh <polunzh@gmail.com>",
6
6
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
@@ -32,35 +32,35 @@
32
32
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/constant": "1.8.6",
36
- "@abtnode/logger": "1.8.6",
37
- "@abtnode/router-templates": "1.8.6",
38
- "@abtnode/util": "1.8.6",
35
+ "@abtnode/constant": "1.8.9",
36
+ "@abtnode/logger": "1.8.9",
37
+ "@abtnode/router-templates": "1.8.9",
38
+ "@abtnode/util": "1.8.9",
39
39
  "axios": "^0.27.2",
40
- "debug": "^4.3.3",
41
- "find-process": "^1.4.3",
42
- "fkill": "^7.0.1",
43
- "fs-extra": "^10.0.1",
40
+ "debug": "^4.3.4",
41
+ "find-process": "^1.4.7",
42
+ "fkill": "^7.2.1",
43
+ "fs-extra": "^10.1.0",
44
44
  "get-port": "^5.1.1",
45
45
  "http-proxy": "^1.18.1",
46
46
  "is-valid-domain": "^0.1.6",
47
47
  "lodash": "^4.17.21",
48
- "lru-cache": "^7.4.0",
49
- "moment": "^2.29.1",
50
- "nginx-conf": "^1.5.0",
48
+ "lru-cache": "^7.13.2",
49
+ "moment": "^2.29.4",
50
+ "nginx-conf": "^1.7.0",
51
51
  "object-hash": "^3.0.0",
52
52
  "port-used": "^2.0.8",
53
53
  "promise-retry": "^2.0.1",
54
- "shelljs": "^0.8.4",
55
- "tar": "^6.1.0",
54
+ "shelljs": "^0.8.5",
55
+ "tar": "^6.1.11",
56
56
  "url-join": "^4.0.1",
57
57
  "uuid": "^8.3.2",
58
58
  "valid-url": "^1.0.9"
59
59
  },
60
60
  "devDependencies": {
61
61
  "bluebird": "^3.7.2",
62
- "fs-extra": "^10.0.1",
63
- "needle": "^3.0.0"
62
+ "fs-extra": "^10.1.0",
63
+ "needle": "^3.1.0"
64
64
  },
65
- "gitHead": "070dad4ce5e12c8961399788f9d206bf7d9d263f"
65
+ "gitHead": "1846a1f0bae2f870f3fe635b1f17ed06867d370d"
66
66
  }