@pogo-vcs/pogo 0.6.0 → 0.8.0

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.
Files changed (3) hide show
  1. package/README.md +6 -5
  2. package/lib.js +12 -0
  3. package/package.json +14 -13
package/README.md CHANGED
@@ -108,11 +108,12 @@ For running the server, you need to have a PostgreSQL database running and the f
108
108
  | `pogo describe` | | `desc`, `rephrase` | Set the description for the current change. |
109
109
  | `pogo edit` | | `checkout` | Sets the specified revision as the working-copy revision. |
110
110
  | `pogo gc` | | | Run garbage collection on the server. |
111
- | `pogo info` | | | Display the current working copy status. |
112
- | `pogo init` | | | Initialize a new repository. |
113
- | `pogo log` | | | Show the change history. |
114
- | `pogo new` | | | Create a new change based on one or more parent changes. |
115
- | `pogo push` | | | Push a change to the repository. |
111
+ | `pogo info` | | | Display the current working copy status. |
112
+ | `pogo init` | | | Initialize a new repository. |
113
+ | `pogo log` | | | Show the change history. |
114
+ | `pogo new` | | | Create a new change based on one or more parent changes. |
115
+ | `pogo visibility` | | | Set repository visibility to public or private. |
116
+ | `pogo push` | | | Push a change to the repository. |
116
117
  | `pogo rm` | | | Remove a change from the repository. |
117
118
  | `pogo serve` | | | Start the Pogo server. |
118
119
  | `pogo whoami` | | | Show the personal access token being used for the current repository. |
package/lib.js CHANGED
@@ -6,8 +6,18 @@ const path = require("path");
6
6
  const JSZip = require("jszip");
7
7
  const tar = require("tar");
8
8
  const axios = require("axios");
9
+ const ProxyAgent = require("proxy-agent");
9
10
  const { spawnSync } = require("child_process");
10
11
 
12
+ const proxyUrl =
13
+ process.env.HTTPS_PROXY ||
14
+ process.env.https_proxy ||
15
+ process.env.HTTP_PROXY ||
16
+ process.env.http_proxy ||
17
+ null;
18
+
19
+ const agent = proxyUrl ? new ProxyAgent(proxyUrl) : undefined;
20
+
11
21
  const getArchive = () => {
12
22
  let target = `${process.platform}-${process.arch}`;
13
23
  const archive = archives[target];
@@ -180,6 +190,8 @@ const download = async (url, filename) => {
180
190
  url: url,
181
191
  responseType: "stream",
182
192
  timeout: 300000, // 5min
193
+ httpAgent: agent,
194
+ httpsAgent: agent,
183
195
  });
184
196
 
185
197
  const writer = fs.createWriteStream(filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pogo-vcs/pogo",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "A centralized version control system that is simple and easy to use.",
5
5
  "scripts": {
6
6
  "postinstall": "node install.js",
@@ -31,79 +31,80 @@
31
31
  "dependencies": {
32
32
  "axios": "^1.8.2",
33
33
  "jszip": "^3.10.1",
34
+ "proxy-agent": "^6.5.0",
34
35
  "tar": "^7.4.3"
35
36
  },
36
37
  "archives": {
37
38
  "darwin-arm64": {
38
39
  "name": "pogo_Darwin_arm64.tar.gz",
39
- "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.6.0/pogo_Darwin_arm64.tar.gz",
40
+ "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.8.0/pogo_Darwin_arm64.tar.gz",
40
41
  "bins": [
41
42
  "pogo"
42
43
  ],
43
44
  "format": "tar.gz",
44
45
  "checksum": {
45
46
  "algorithm": "sha256",
46
- "digest": "2e18115c3112796fdd86671c3c31f94dd6dc9353c9afa9560e44257a11a0179b"
47
+ "digest": "d8ff19e485297ab401b09b60c8f47f2e13d471932c712346cc01f2ec2134694f"
47
48
  }
48
49
  },
49
50
  "darwin-x64": {
50
51
  "name": "pogo_Darwin_x86_64.tar.gz",
51
- "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.6.0/pogo_Darwin_x86_64.tar.gz",
52
+ "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.8.0/pogo_Darwin_x86_64.tar.gz",
52
53
  "bins": [
53
54
  "pogo"
54
55
  ],
55
56
  "format": "tar.gz",
56
57
  "checksum": {
57
58
  "algorithm": "sha256",
58
- "digest": "d71479757fb604b9ae5b0276104a2187c7e7dad5886fe5433a4f6c72f08c2fc0"
59
+ "digest": "e24f3145eca5395d34a6c4cba5f376c946f7e65c64e9d38324c0757effb7625b"
59
60
  }
60
61
  },
61
62
  "linux-arm64": {
62
63
  "name": "pogo_Linux_arm64.tar.gz",
63
- "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.6.0/pogo_Linux_arm64.tar.gz",
64
+ "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.8.0/pogo_Linux_arm64.tar.gz",
64
65
  "bins": [
65
66
  "pogo"
66
67
  ],
67
68
  "format": "tar.gz",
68
69
  "checksum": {
69
70
  "algorithm": "sha256",
70
- "digest": "eaed52459112a21a274c02d7cf54d04f4cd393d863f017a8f6b5f16d2c223265"
71
+ "digest": "fb073773054864dd9cd69a58c5ce987155e1efd5aac3bc731b7f5d3ae8302a42"
71
72
  }
72
73
  },
73
74
  "linux-x64": {
74
75
  "name": "pogo_Linux_x86_64.tar.gz",
75
- "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.6.0/pogo_Linux_x86_64.tar.gz",
76
+ "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.8.0/pogo_Linux_x86_64.tar.gz",
76
77
  "bins": [
77
78
  "pogo"
78
79
  ],
79
80
  "format": "tar.gz",
80
81
  "checksum": {
81
82
  "algorithm": "sha256",
82
- "digest": "2b65299e5208403fb0fd7f66baf70c713a55fb7698b47a9822b468104d6e9942"
83
+ "digest": "a46f88781734a917cfda87cc26197072b16cf4ba6a0f54da82da0c437bd44294"
83
84
  }
84
85
  },
85
86
  "win32-arm64": {
86
87
  "name": "pogo_Windows_arm64.zip",
87
- "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.6.0/pogo_Windows_arm64.zip",
88
+ "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.8.0/pogo_Windows_arm64.zip",
88
89
  "bins": [
89
90
  "pogo.exe"
90
91
  ],
91
92
  "format": "zip",
92
93
  "checksum": {
93
94
  "algorithm": "sha256",
94
- "digest": "9843d7a91e0d7d87c0b9a5657d25d3fb207e752e4d40bcda6c0597800bfab551"
95
+ "digest": "0ef5bd3794a8c7790ee314794355cfa7a380695b2be11a0c58f1802039664faa"
95
96
  }
96
97
  },
97
98
  "win32-x64": {
98
99
  "name": "pogo_Windows_x86_64.zip",
99
- "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.6.0/pogo_Windows_x86_64.zip",
100
+ "url": "https://github.com/pogo-vcs/pogo/releases/download/v0.8.0/pogo_Windows_x86_64.zip",
100
101
  "bins": [
101
102
  "pogo.exe"
102
103
  ],
103
104
  "format": "zip",
104
105
  "checksum": {
105
106
  "algorithm": "sha256",
106
- "digest": "24ce10b59e64aecd35d768f75574a8000d64e5ce090ab6df63c3d12f3c6127b0"
107
+ "digest": "254c337f8020fff2aafc7a6d34afb0fd77e3f8cb8a1db652c7c9ddc467d7b1e9"
107
108
  }
108
109
  }
109
110
  }