@abtnode/router-provider 1.5.13 → 1.15.17

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.
@@ -854,7 +854,7 @@ NginxProvider.check = async ({ configDir = '' } = {}) => {
854
854
  if (nginxStatus.running && !nginxStatus.ownByABTNode) {
855
855
  result.available = false;
856
856
  result.error =
857
- 'seems a nginx daemon is already running on your machine, a controlled nginx is required by ABT Node to work properly, please terminate the running nginx daemon before try again.';
857
+ 'seems a nginx daemon is already running on your machine, a controlled nginx is required by Blocklet Server to work properly, please terminate the running nginx daemon before try again.';
858
858
 
859
859
  return result;
860
860
  }
@@ -896,7 +896,9 @@ NginxProvider.check = async ({ configDir = '' } = {}) => {
896
896
 
897
897
  if (missingModules.length > 0) {
898
898
  result.available = false;
899
- result.error = `ABT Node depends on some modules of Nginx that are not compiled: ${missingModules.join(', ')}`;
899
+ result.error = `Blocklet Server depends on some modules of Nginx that are not compiled: ${missingModules.join(
900
+ ', '
901
+ )}`;
900
902
  return result;
901
903
  }
902
904
 
package/lib/www/404.html CHANGED
@@ -1,29 +1,25 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>404 - Blocklet Server</title>
7
+ <style>
8
+ html {
9
+ font-size: 16px;
10
+ }
3
11
 
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>404 - ABT Node</title>
8
- <style>
9
- html {
10
- font-size: 16px;
11
- }
12
+ h1 {
13
+ color: #00c2c4;
14
+ font-size: 3.8rem;
15
+ }
16
+ </style>
17
+ </head>
12
18
 
13
- h1 {
14
- color: #00c2c4;
15
- font-size: 3.8rem;
16
- }
17
- </style>
18
- </head>
19
-
20
- <body>
21
- <center>
22
- <h1>404</h1>
23
- <h2>
24
- We can't find the page that you're looking for
25
- </h2>
26
- </center>
27
- </body>
28
-
29
- </html>
19
+ <body>
20
+ <center>
21
+ <h1>404</h1>
22
+ <h2>We can't find the page that you're looking for</h2>
23
+ </center>
24
+ </body>
25
+ </html>
package/lib/www/502.html CHANGED
@@ -1,33 +1,29 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>502 - Blocklet Server</title>
7
+ <style>
8
+ html {
9
+ font-size: 16px;
10
+ }
3
11
 
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>502 - ABT Node</title>
8
- <style>
9
- html {
10
- font-size: 16px;
11
- }
12
+ h1 {
13
+ color: #00c2c4;
14
+ font-size: 3.8rem;
15
+ }
16
+ </style>
17
+ </head>
12
18
 
13
- h1 {
14
- color: #00c2c4;
15
- font-size: 3.8rem;
16
- }
17
- </style>
18
- </head>
19
-
20
- <body>
21
- <center>
22
- <h1>Error 502</h1>
23
- <h2>
24
- Bad gateway: Upstream Blocklet or Daemon service is not available!
25
- </h2>
26
- <div>
27
- Checkout ABT Node Documentation: <a
28
- href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
29
- </div>
30
- </center>
31
- </body>
32
-
33
- </html>
19
+ <body>
20
+ <center>
21
+ <h1>Error 502</h1>
22
+ <h2>Bad gateway: Upstream Blocklet or Daemon service is not available!</h2>
23
+ <div>
24
+ Checkout Blocklet Server Documentation:
25
+ <a href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
26
+ </div>
27
+ </center>
28
+ </body>
29
+ </html>
package/lib/www/5xx.html CHANGED
@@ -1,31 +1,29 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Error - Blocklet Server</title>
7
+ <style>
8
+ html {
9
+ font-size: 16px;
10
+ }
3
11
 
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>Error - ABT Node</title>
8
- <style>
9
- html {
10
- font-size: 16px;
11
- }
12
+ h1 {
13
+ color: #00c2c4;
14
+ font-size: 3.8rem;
15
+ }
16
+ </style>
17
+ </head>
12
18
 
13
- h1 {
14
- color: #00c2c4;
15
- font-size: 3.8rem;
16
- }
17
- </style>
18
- </head>
19
-
20
- <body>
21
- <center>
22
- <h1>Oops!</h1>
23
- <h2>Something went wrong</h2>
24
- <div>
25
- Checkout ABT Node Documentation: <a
26
- href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
27
- </div>
28
- </center>
29
- </body>
30
-
31
- </html>
19
+ <body>
20
+ <center>
21
+ <h1>Oops!</h1>
22
+ <h2>Something went wrong</h2>
23
+ <div>
24
+ Checkout Blocklet Server Documentation:
25
+ <a href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
26
+ </div>
27
+ </center>
28
+ </body>
29
+ </html>
@@ -1,29 +1,25 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>404 - Blocklet Server</title>
7
+ <style>
8
+ html {
9
+ font-size: 16px;
10
+ }
3
11
 
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>404 - ABT Node</title>
8
- <style>
9
- html {
10
- font-size: 16px;
11
- }
12
+ h1 {
13
+ color: #00c2c4;
14
+ font-size: 3.8rem;
15
+ }
16
+ </style>
17
+ </head>
12
18
 
13
- h1 {
14
- color: #00c2c4;
15
- font-size: 3.8rem;
16
- }
17
- </style>
18
- </head>
19
-
20
- <body>
21
- <center>
22
- <h1>404</h1>
23
- <h2>
24
- We can't find the page that you're looking for
25
- </h2>
26
- </center>
27
- </body>
28
-
29
- </html>
19
+ <body>
20
+ <center>
21
+ <h1>404</h1>
22
+ <h2>We can't find the page that you're looking for</h2>
23
+ </center>
24
+ </body>
25
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/router-provider",
3
- "version": "1.5.13",
3
+ "version": "1.15.17",
4
4
  "description": "Routing engine implementations for abt node",
5
5
  "author": "polunzh <polunzh@gmail.com>",
6
6
  "homepage": "https://github.com/ArcBlock/abt-node#readme",
@@ -32,10 +32,10 @@
32
32
  "url": "https://github.com/ArcBlock/abt-node/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/constant": "1.5.13",
36
- "@abtnode/logger": "1.5.13",
37
- "@abtnode/router-templates": "1.5.13",
38
- "@abtnode/util": "1.5.13",
35
+ "@abtnode/constant": "1.15.17",
36
+ "@abtnode/logger": "1.15.17",
37
+ "@abtnode/router-templates": "1.15.17",
38
+ "@abtnode/util": "1.15.17",
39
39
  "axios": "^0.21.4",
40
40
  "debug": "^4.3.2",
41
41
  "find-process": "^1.4.3",
@@ -52,5 +52,5 @@
52
52
  "devDependencies": {
53
53
  "fs-extra": "^10.0.0"
54
54
  },
55
- "gitHead": "abb145ffccdab4a9496a9e8a4dbc617306e17b84"
55
+ "gitHead": "22715c3ea74d0230f3413162a17f491614b6735a"
56
56
  }