@ffflorian/gh-open 3.1.3 → 3.1.5
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/README.md +3 -2
- package/RepositoryService.js.map +1 -1
- package/cli.js +4 -4
- package/cli.js.map +1 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/package.json +14 -63
- package/CHANGELOG.md +0 -92
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# gh-open [](https://www.npmjs.com/package/@ffflorian/gh-open)
|
|
2
2
|
|
|
3
3
|
Open a GitHub repository in your browser.
|
|
4
4
|
|
|
@@ -14,11 +14,12 @@ Usage: gh-open [options] [directory]
|
|
|
14
14
|
Open a GitHub repository in your browser. Opens pull requests by default.
|
|
15
15
|
|
|
16
16
|
Options:
|
|
17
|
+
-d, --debug Enable debug logging
|
|
17
18
|
-p, --print Just print the URL
|
|
18
19
|
-b, --branch Open the branch tree (and not the PR)
|
|
19
20
|
-t, --timeout <number> Set a custom timeout for HTTP requests
|
|
20
21
|
-v, --version output the version number
|
|
21
|
-
-h, --help
|
|
22
|
+
-h, --help display help for command
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
## Test
|
package/RepositoryService.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryService.js","sourceRoot":"","sources":["../src/RepositoryService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAuC;AACvC,mCAAmC;AACnC,6BAA6B;AAE7B,iDAA4C;AAO5C,MAAa,iBAAiB;IAW5B,YAAY,OAAiB;QAPZ,WAAM,GAAG;YACxB,OAAO,EAAE,IAAI,MAAM,CAAC,wDAAwD,EAAE,GAAG,CAAC;YAClF,SAAS,EAAE,IAAI,MAAM,CAAC,gCAAgC,EAAE,IAAI,CAAC;YAC7D,WAAW,EAAE,IAAI,MAAM,CAAC,4EAA4E,CAAC;YACrG,MAAM,EAAE,IAAI,MAAM,CAAC,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,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;YAE5C,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF;AAhHD,8CAgHC"}
|
package/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
const
|
|
13
|
+
const commander_1 = require("commander");
|
|
14
14
|
const findUp = require("find-up");
|
|
15
15
|
const fs = require("fs");
|
|
16
16
|
const open = require("open");
|
|
@@ -22,7 +22,7 @@ const packageJsonPath = fs.existsSync(defaultPackageJsonPath)
|
|
|
22
22
|
: path.join(__dirname, '../package.json');
|
|
23
23
|
const packageJson = fs.readFileSync(packageJsonPath, 'utf-8');
|
|
24
24
|
const { description, name, version } = JSON.parse(packageJson);
|
|
25
|
-
|
|
25
|
+
commander_1.program
|
|
26
26
|
.name(name.replace(/^@[^/]+\//, ''))
|
|
27
27
|
.description(description)
|
|
28
28
|
.option('-d, --debug', 'Enable debug logging')
|
|
@@ -32,8 +32,8 @@ commander
|
|
|
32
32
|
.arguments('[directory]')
|
|
33
33
|
.version(version, '-v, --version')
|
|
34
34
|
.parse(process.argv);
|
|
35
|
-
const resolvedBaseDir = path.resolve(
|
|
36
|
-
const commanderOptions =
|
|
35
|
+
const resolvedBaseDir = path.resolve(commander_1.program.args[0] || '.');
|
|
36
|
+
const commanderOptions = commander_1.program.opts();
|
|
37
37
|
void (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
38
38
|
try {
|
|
39
39
|
const gitDir = yield findUp('.git', { cwd: resolvedBaseDir, type: 'directory' });
|
package/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":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
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
package/package.json
CHANGED
|
@@ -4,45 +4,18 @@
|
|
|
4
4
|
"gh-open": "cli.js"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"axios": "
|
|
8
|
-
"commander": "
|
|
7
|
+
"axios": "1.3.1",
|
|
8
|
+
"commander": "10.0.0",
|
|
9
9
|
"find-up": "5.0.0",
|
|
10
10
|
"logdown": "3.3.1",
|
|
11
|
-
"open": "8.0
|
|
11
|
+
"open": "8.4.0"
|
|
12
12
|
},
|
|
13
13
|
"description": "Open a GitHub repository in your browser. Opens pull requests by default.",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"@semantic-release/git": "9.0.0",
|
|
20
|
-
"@types/jasmine": "3.6.4",
|
|
21
|
-
"@types/node": "~14",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "4.0.0",
|
|
23
|
-
"@typescript-eslint/parser": "3.10.1",
|
|
24
|
-
"babel-eslint": "10.1.0",
|
|
25
|
-
"eslint": "7.21.0",
|
|
26
|
-
"eslint-config-prettier": "8.1.0",
|
|
27
|
-
"eslint-plugin-import": "2.22.1",
|
|
28
|
-
"eslint-plugin-jasmine": "4.1.2",
|
|
29
|
-
"eslint-plugin-jsdoc": "32.2.0",
|
|
30
|
-
"eslint-plugin-no-unsanitized": "3.1.4",
|
|
31
|
-
"eslint-plugin-prettier": "3.3.1",
|
|
32
|
-
"eslint-plugin-simple-import-sort": "7.0.0",
|
|
33
|
-
"eslint-plugin-sort-keys-fix": "1.1.1",
|
|
34
|
-
"eslint-plugin-typescript-sort-keys": "1.5.0",
|
|
35
|
-
"http-status-codes": "2.1.4",
|
|
36
|
-
"husky": "4.3.8",
|
|
37
|
-
"jasmine": "3.6.4",
|
|
38
|
-
"lint-staged": "10.5.4",
|
|
39
|
-
"nock": "13.0.10",
|
|
40
|
-
"prettier": "2.2.1",
|
|
41
|
-
"publish-flat": "1.4.1",
|
|
42
|
-
"rimraf": "3.0.2",
|
|
43
|
-
"semantic-release": "17.4.0",
|
|
44
|
-
"ts-node": "9.1.1",
|
|
45
|
-
"typescript": "4.2.2"
|
|
15
|
+
"http-status-codes": "2.2.0",
|
|
16
|
+
"nock": "13.3.0",
|
|
17
|
+
"rimraf": "4.1.2",
|
|
18
|
+
"typescript": "4.9.5"
|
|
46
19
|
},
|
|
47
20
|
"engines": {
|
|
48
21
|
"node": ">= 10.9"
|
|
@@ -69,42 +42,20 @@
|
|
|
69
42
|
"typescript"
|
|
70
43
|
],
|
|
71
44
|
"license": "GPL-3.0",
|
|
72
|
-
"lint-staged": {
|
|
73
|
-
"*.{json,md,yml}": [
|
|
74
|
-
"prettier --write"
|
|
75
|
-
],
|
|
76
|
-
"spec/**/*.ts": [
|
|
77
|
-
"eslint --config .eslintrc.spec.json --fix"
|
|
78
|
-
],
|
|
79
|
-
"src/**/*.ts": [
|
|
80
|
-
"eslint --fix"
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
45
|
"main": "index.js",
|
|
84
46
|
"name": "@ffflorian/gh-open",
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
"extends": "@ffflorian/semantic-release-config"
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"directory": "flattened"
|
|
88
49
|
},
|
|
89
|
-
"repository": "https://github.com/ffflorian/gh-open
|
|
50
|
+
"repository": "https://github.com/ffflorian/node-packages/tree/main/packages/gh-open",
|
|
90
51
|
"scripts": {
|
|
91
52
|
"build": "tsc",
|
|
92
53
|
"clean": "rimraf dist",
|
|
93
54
|
"dist": "yarn clean && yarn build",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"fix:ts": "yarn lint:ts --fix && yarn lint:ts:spec --fix",
|
|
97
|
-
"fix:ts:spec": "yarn lint:ts:spec --fix",
|
|
98
|
-
"flatten": "publish-flat -o flattened",
|
|
99
|
-
"lint": "yarn lint:ts && yarn lint:ts:spec && yarn lint:other",
|
|
100
|
-
"lint:other": "yarn prettier --list-different",
|
|
101
|
-
"lint:ts": "eslint --ignore-path .gitignore --ext .ts src/",
|
|
102
|
-
"lint:ts:spec": "eslint --ignore-path .gitignore --ext .ts --config .eslintrc.spec.json spec/",
|
|
103
|
-
"postversion": "node ../node_modules/publish-flat/cli-copy.js -i package.json -o ../package.json version",
|
|
104
|
-
"prettier": "prettier \"*.{json,md,yml}\"",
|
|
105
|
-
"release": "semantic-release",
|
|
55
|
+
"flatten": "node ../publish-flat/dist/cli.js -o flattened",
|
|
56
|
+
"postversion": "node ../publish-flat/dist/cli-copy.js -o flattened/package.json version",
|
|
106
57
|
"start": "ts-node src/cli.ts -d",
|
|
107
|
-
"test": "ts-node -P tsconfig.jasmine.json node_modules/.bin/jasmine"
|
|
58
|
+
"test": "ts-node -P tsconfig.jasmine.json ../../node_modules/.bin/jasmine"
|
|
108
59
|
},
|
|
109
|
-
"version": "3.1.
|
|
60
|
+
"version": "3.1.5"
|
|
110
61
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
## [3.1.2](https://github.com/ffflorian/gh-open/compare/v3.1.1...v3.1.2) (2021-03-03)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* Trim gitHead file content ([1db7b34](https://github.com/ffflorian/gh-open/commit/1db7b34180e1937e2bb83ccc3a87d04919a4d85f))
|
|
7
|
-
|
|
8
|
-
## [3.1.1](https://github.com/ffflorian/gh-open/compare/v3.1.0...v3.1.1) (2019-09-06)
|
|
9
|
-
|
|
10
|
-
### Bug Fixes
|
|
11
|
-
|
|
12
|
-
- Use postversion on publishing ([2688019](https://github.com/ffflorian/gh-open/commit/2688019))
|
|
13
|
-
|
|
14
|
-
# [3.1.0](https://github.com/ffflorian/gh-open/compare/v3.0.0...v3.1.0) (2019-09-04)
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
- Add debug logging ([#173](https://github.com/ffflorian/gh-open/issues/173)) ([d026546](https://github.com/ffflorian/gh-open/commit/d026546))
|
|
19
|
-
|
|
20
|
-
# [3.0.0](https://github.com/ffflorian/gh-open/compare/v2.2.0...v3.0.0) (2019-09-04)
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
- Use class for RepositoryService (BREAKING) ([#176](https://github.com/ffflorian/gh-open/issues/176)) ([93eede4](https://github.com/ffflorian/gh-open/commit/93eede4))
|
|
25
|
-
|
|
26
|
-
### BREAKING CHANGES
|
|
27
|
-
|
|
28
|
-
- Repository Service is now a class.
|
|
29
|
-
|
|
30
|
-
# [2.2.0](https://github.com/ffflorian/gh-open/compare/v2.1.1...v2.2.0) (2019-09-02)
|
|
31
|
-
|
|
32
|
-
### Features
|
|
33
|
-
|
|
34
|
-
- Add custom HTTP timeout ([#172](https://github.com/ffflorian/gh-open/issues/172)) ([34b05f7](https://github.com/ffflorian/gh-open/commit/34b05f7))
|
|
35
|
-
|
|
36
|
-
## [2.1.1](https://github.com/ffflorian/gh-open/compare/v2.1.0...v2.1.1) (2019-08-28)
|
|
37
|
-
|
|
38
|
-
### Bug Fixes
|
|
39
|
-
|
|
40
|
-
- Still open after get request failed ([ed808a9](https://github.com/ffflorian/gh-open/commit/ed808a9))
|
|
41
|
-
|
|
42
|
-
# [2.1.0](https://github.com/ffflorian/gh-open/compare/v2.0.0...v2.1.0) (2019-08-26)
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
|
-
- Open pull request ([#164](https://github.com/ffflorian/gh-open/issues/164)) ([902d595](https://github.com/ffflorian/gh-open/commit/902d595))
|
|
47
|
-
|
|
48
|
-
# [2.0.0](https://github.com/ffflorian/gh-open/compare/v1.3.2...v2.0.0) (2019-07-17)
|
|
49
|
-
|
|
50
|
-
### Features
|
|
51
|
-
|
|
52
|
-
- Set ES6 as target and require Node >= 10.9 ([#134](https://github.com/ffflorian/gh-open/issues/134)) ([97b6509](https://github.com/ffflorian/gh-open/commit/97b6509))
|
|
53
|
-
|
|
54
|
-
### BREAKING CHANGES
|
|
55
|
-
|
|
56
|
-
- Node.js >= 10.9 is required.
|
|
57
|
-
|
|
58
|
-
## [1.3.2](https://github.com/ffflorian/gh-open/compare/v1.3.1...v1.3.2) (2019-07-07)
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
- Postpublish script ([eda803b](https://github.com/ffflorian/gh-open/commit/eda803b))
|
|
63
|
-
|
|
64
|
-
## [1.3.1](https://github.com/ffflorian/gh-open/compare/v1.3.0...v1.3.1) (2019-06-13)
|
|
65
|
-
|
|
66
|
-
### Bug Fixes
|
|
67
|
-
|
|
68
|
-
- package.json path in CLI ([0bd35c4](https://github.com/ffflorian/gh-open/commit/0bd35c4))
|
|
69
|
-
|
|
70
|
-
# [1.3.0](https://github.com/ffflorian/gh-open/compare/v1.2.1...v1.3.0) (2019-06-12)
|
|
71
|
-
|
|
72
|
-
### Features
|
|
73
|
-
|
|
74
|
-
- Omit dist directory ([9c079d2](https://github.com/ffflorian/gh-open/commit/9c079d2))
|
|
75
|
-
|
|
76
|
-
## [1.2.1](https://github.com/ffflorian/gh-open/compare/v1.2.0...v1.2.1) (2019-05-28)
|
|
77
|
-
|
|
78
|
-
### Bug Fixes
|
|
79
|
-
|
|
80
|
-
- Use directory option in find-up ([e0729de](https://github.com/ffflorian/gh-open/commit/e0729de))
|
|
81
|
-
|
|
82
|
-
# [1.2.0](https://github.com/ffflorian/gh-open/compare/v1.1.3...v1.2.0) (2019-05-27)
|
|
83
|
-
|
|
84
|
-
### Features
|
|
85
|
-
|
|
86
|
-
- Force release ([d5b7f69](https://github.com/ffflorian/gh-open/commit/d5b7f69))
|
|
87
|
-
|
|
88
|
-
## [1.1.3](https://github.com/ffflorian/gh-open/compare/v1.1.2...v1.1.3) (2019-03-23)
|
|
89
|
-
|
|
90
|
-
### Bug Fixes
|
|
91
|
-
|
|
92
|
-
- fullUrl regex and add tests ([#33](https://github.com/ffflorian/gh-open/issues/33)) ([f1ccb3a](https://github.com/ffflorian/gh-open/commit/f1ccb3a))
|