-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsupport.js
71 lines (68 loc) · 3.82 KB
/
support.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
'use strict';
var util = require('util');
var bb = require('./');
var formats = [
'birkenfeld/sphinx#1.2.3',
'birkenfeld/sphinx#branch',
'birkenfeld/sphinx',
'git+https://bitbucket.org/birkenfeld/sphinx.git',
'git+ssh://bitbucket.org/birkenfeld/sphinx.git',
'git://bitbucket.org/birkenfeld/sphinx',
'git://bitbucket.org/birkenfeld/sphinx.git',
'[email protected]:birkenfeld/sphinx.git#1.2.3',
'[email protected]:birkenfeld/sphinx.git#v1.2.3',
'[email protected]:birkenfeld/sphinx.git',
'[email protected]:birkenfeld/sphinx#4.5.6',
'[email protected]:birkenfeld/sphinx#v4.5.6',
'[email protected]:birkenfeld/sphinx',
'bitbucket:birkenfeld/sphinx',
'http://bitbucket.org/birkenfeld',
'http://bitbucket.org/birkenfeld/sphinx',
'http://bitbucket.org/birkenfeld/sphinx.git',
'http://bitbucket.org/birkenfeld/sphinx/src',
'http://bitbucket.org/birkenfeld/sphinx/src/6affb32647b1f762ebe40f5dac175e7aa7a15f09/?at=stable',
'http://bitbucket.org/birkenfeld/sphinx/src/6affb32647b1f762ebe40f5dac175e7aa7a15f09/sphinx/directives/code.py?at=stable&fileviewer=file-view-default',
'https://bitbucket.org/birkenfeld/sphinx/src/6affb32647b1f762ebe40f5dac175e7aa7a15f09/AUTHORS',
'https://[email protected]/birkenfeld/sphinx.git',
'https://bitbucket.org/birkenfeld/sphinx',
'https://bitbucket.org/birkenfeld/sphinx.git',
'https://bitbucket.org/birkenfeld/sphinx/src/40bd03003ac6fe274ccf3c80d7727509e00a69ea/README.rst?at=default&fileviewer=file-view-default',
'https://bitbucket.org/birkenfeld/sphinx/src/aa5eea3eb4f39c97e1353783261e51c04020584d/README.rst?at=default&fileviewer=file-view-default',
'https://bitbucket.org/birkenfeld/sphinx/src/aa5eea3eb4f39c97e1353783261e51c04020584d/babel.cfg?at=default&fileviewer=file-view-default',
'https://bitbucket.org/birkenfeld/sphinx/src/6affb32647b1f762ebe40f5dac175e7aa7a15f09/babel.cfg?at=stable&fileviewer=file-view-default',
'https://bitbucket.org/birkenfeld/sphinx/src/6affb32647b1f762ebe40f5dac175e7aa7a15f09/babel.cfg',
'https://bitbucket.org/birkenfeld/sphinx/commits/f2a3d22c9a8d298d8a084b121160c6c3e9a40c77',
'https://bitbucket.org/birkenfeld/sphinx/branch/default',
'https://bitbucket.org/birkenfeld/sphinx/pull-requests/',
'https://bitbucket.org/birkenfeld/sphinx/pull-requests/239/apply-only-directives-when-obtaining-the/diff',
'https://bitbucket.org/birkenfeld/sphinx/overview',
'https://bitbucket.org/birkenfeld/sphinx/downloads',
'https://bitbucket.org/birkenfeld/sphinx/get/40bd03003ac6.zip',
'https://bitbucket.org/birkenfeld/sphinx/get/tip.zip',
'https://bitbucket.org/birkenfeld/sphinx/get/1.0b2.tar.bz2',
'https://bitbucket.org/birkenfeld/sphinx/get/stable.tar.gz',
'https://stash.one.two/projects/KEY/repos/name1/browse',
'https://stash.one.two/projects/ONE/repos/name2/browse',
'https://stash.one.two/projects/ABC/repos/name3/commits/a1aa8e5c5b99002396d449c1bdd4d6946303bbc3',
'https://stash.one.two/projects/DEF/repos/na-me4/commits',
'https://bitbucketserver.one.two/projects/GHI/repos/name5/compare/commits?sourceBranch=refs%2Fheads%2Fmaster&targetBranch=refs%2Fheads%2Fbugfix%2Fdevelop',
'https://stash.one.two/projects/JKL/repos/nam-e6/branches',
'https://internal.one.two:2034/projects/MNOPQ/repos/name7/pull-requests',
'https://stash.one.two:5555/projects/KEY/repos/name1/browse/README.md?at=refs%2Fheads%2Fbranch333',
'https://[email protected]/scm/a-key/a-project.git',
'https://[email protected]:3333/scm/a-key/another-project',
'ssh://[email protected]:7999/cod/more-proj.git',
'[email protected]:27999/tfc/some-proj.git',
'[email protected]:27999/tfc/some-proj.git#0.2.3'
];
module.exports = function() {
var res = '';
formats.forEach(function(url) {
res += '\n// '
+ url + '\n'
+ util.inspect(bb(url), null, 10)
+ '\n';
});
console.log(res);
return res;
};