git-userhub 2.2.0 → 2.2.2
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/install.js +1 -3
- package/package.json +12 -2
package/install.js
CHANGED
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
const https = require('https');
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
|
-
const { execSync } = require('child_process');
|
|
7
6
|
const os = require('os');
|
|
8
|
-
const zlib = require('zlib');
|
|
9
7
|
const tar = require('tar');
|
|
10
8
|
const pkg = require('./package.json');
|
|
11
9
|
|
|
12
|
-
const REPO =
|
|
10
|
+
const REPO = pkg.config.repo;
|
|
13
11
|
const BIN_DIR = path.join(__dirname, 'bin');
|
|
14
12
|
|
|
15
13
|
// Detect platform and architecture
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-userhub",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Switch Git accounts in one command. No config editing. No SSH key chaos.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"git-user": "bin/git-user.js"
|
|
@@ -44,5 +44,15 @@
|
|
|
44
44
|
"cpu": [
|
|
45
45
|
"x64",
|
|
46
46
|
"arm64"
|
|
47
|
-
]
|
|
47
|
+
],
|
|
48
|
+
"socket": {
|
|
49
|
+
"allowedNetworkHosts": [
|
|
50
|
+
"api.github.com",
|
|
51
|
+
"github.com",
|
|
52
|
+
"objects.githubusercontent.com"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"config": {
|
|
56
|
+
"repo": "divyo-argha/git-user"
|
|
57
|
+
}
|
|
48
58
|
}
|