create-docusaurus 0.0.0-4394 → 0.0.0-4411

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-docusaurus",
3
- "version": "0.0.0-4394",
3
+ "version": "0.0.0-4411",
4
4
  "description": "Create Docusaurus apps easily.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@docusaurus/logger": "0.0.0-4394",
26
+ "@docusaurus/logger": "0.0.0-4411",
27
27
  "commander": "^5.1.0",
28
28
  "fs-extra": "^10.0.0",
29
29
  "lodash": "^4.17.20",
@@ -39,5 +39,5 @@
39
39
  "devDependencies": {
40
40
  "@types/supports-color": "^8.1.1"
41
41
  },
42
- "gitHead": "244d27da53388cca3bc9963e0b10710cdb1d3f58"
42
+ "gitHead": "c0caab39eb322080bf583dd612cef50012105ec9"
43
43
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-classic-template",
3
- "version": "0.0.0-4394",
3
+ "version": "0.0.0-4411",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "docusaurus": "docusaurus",
@@ -14,8 +14,8 @@
14
14
  "write-heading-ids": "docusaurus write-heading-ids"
15
15
  },
16
16
  "dependencies": {
17
- "@docusaurus/core": "0.0.0-4394",
18
- "@docusaurus/preset-classic": "0.0.0-4394",
17
+ "@docusaurus/core": "0.0.0-4411",
18
+ "@docusaurus/preset-classic": "0.0.0-4411",
19
19
  "@mdx-js/react": "^1.6.21",
20
20
  "clsx": "^1.1.1",
21
21
  "prism-react-renderer": "^1.2.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-classic-typescript-template",
3
- "version": "0.0.0-4394",
3
+ "version": "0.0.0-4411",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "docusaurus": "docusaurus",
@@ -15,8 +15,8 @@
15
15
  "typecheck": "tsc"
16
16
  },
17
17
  "dependencies": {
18
- "@docusaurus/core": "0.0.0-4394",
19
- "@docusaurus/preset-classic": "0.0.0-4394",
18
+ "@docusaurus/core": "0.0.0-4411",
19
+ "@docusaurus/preset-classic": "0.0.0-4411",
20
20
  "@mdx-js/react": "^1.6.21",
21
21
  "clsx": "^1.1.1",
22
22
  "prism-react-renderer": "^1.2.1",
@@ -24,7 +24,7 @@
24
24
  "react-dom": "^17.0.1"
25
25
  },
26
26
  "devDependencies": {
27
- "@docusaurus/module-type-aliases": "0.0.0-4394",
27
+ "@docusaurus/module-type-aliases": "0.0.0-4411",
28
28
  "@tsconfig/docusaurus": "^1.0.4",
29
29
  "typescript": "^4.5.2"
30
30
  },
@@ -139,6 +139,36 @@ gitHosts.gist = Object.assign({}, defaults, {
139
139
  }
140
140
  })
141
141
 
142
+ gitHosts.sourcehut = Object.assign({}, defaults, {
143
+ protocols: ['git+ssh:', 'https:'],
144
+ domain: 'git.sr.ht',
145
+ treepath: 'tree',
146
+ browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || 'main')}/${path}${maybeJoin('#', hashformat(fragment || ''))}`,
147
+ filetemplate: ({ domain, user, project, committish, path }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'main'}/${path}`,
148
+ httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,
149
+ tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'main'}.tar.gz`,
150
+ bugstemplate: ({ domain, user, project }) => `https://todo.sr.ht/${user}/${project}`,
151
+ docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin('/', treepath, '/', maybeEncode(committish))}#readme`,
152
+ extract: (url) => {
153
+ let [, user, project, aux] = url.pathname.split('/', 4)
154
+
155
+ // tarball url
156
+ if (['archive'].includes(aux)) {
157
+ return
158
+ }
159
+
160
+ if (project && project.endsWith('.git')) {
161
+ project = project.slice(0, -4)
162
+ }
163
+
164
+ if (!user || !project) {
165
+ return
166
+ }
167
+
168
+ return { user, project, committish: url.hash.slice(1) }
169
+ }
170
+ })
171
+
142
172
  const names = Object.keys(gitHosts)
143
173
  gitHosts.byShortcut = {}
144
174
  gitHosts.byDomain = {}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hosted-git-info",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "standard": "^16.0.3",
36
36
  "standard-version": "^9.1.0",
37
- "tap": "^14.11.0"
37
+ "tap": "^15.1.6"
38
38
  },
39
39
  "files": [
40
40
  "index.js",
@@ -46,7 +46,6 @@
46
46
  },
47
47
  "tap": {
48
48
  "color": 1,
49
- "coverage": true,
50
- "esm": false
49
+ "coverage": true
51
50
  }
52
51
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-facebook-template",
3
- "version": "0.0.0-4394",
3
+ "version": "0.0.0-4411",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "docusaurus": "docusaurus",
@@ -18,8 +18,8 @@
18
18
  "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,md,mdx}\""
19
19
  },
20
20
  "dependencies": {
21
- "@docusaurus/core": "0.0.0-4394",
22
- "@docusaurus/preset-classic": "0.0.0-4394",
21
+ "@docusaurus/core": "0.0.0-4411",
22
+ "@docusaurus/preset-classic": "0.0.0-4411",
23
23
  "@mdx-js/react": "^1.6.21",
24
24
  "clsx": "^1.1.1",
25
25
  "react": "^17.0.1",
@@ -1,185 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- <a name="3.0.8"></a>
6
- ## [3.0.8](https://github.com/npm/hosted-git-info/compare/v3.0.7...v3.0.8) (2021-01-28)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * simplify the regular expression for shortcut matching ([bede0dc](https://github.com/npm/hosted-git-info/commit/bede0dc)), closes [#76](https://github.com/npm/hosted-git-info/issues/76)
12
-
13
-
14
-
15
- <a name="3.0.7"></a>
16
- ## [3.0.7](https://github.com/npm/hosted-git-info/compare/v3.0.6...v3.0.7) (2020-10-15)
17
-
18
-
19
- ### Bug Fixes
20
-
21
- * correctly filter out urls for tarballs in gitlab ([eb5bd5a](https://github.com/npm/hosted-git-info/commit/eb5bd5a)), closes [#69](https://github.com/npm/hosted-git-info/issues/69)
22
-
23
-
24
-
25
- <a name="3.0.6"></a>
26
- ## [3.0.6](https://github.com/npm/hosted-git-info/compare/v3.0.5...v3.0.6) (2020-10-12)
27
-
28
-
29
- ### Bug Fixes
30
-
31
- * support to github gist legacy hash length ([c067102](https://github.com/npm/hosted-git-info/commit/c067102)), closes [#68](https://github.com/npm/hosted-git-info/issues/68)
32
-
33
-
34
-
35
- <a name="3.0.5"></a>
36
- ## [3.0.5](https://github.com/npm/hosted-git-info/compare/v3.0.4...v3.0.5) (2020-07-11)
37
-
38
-
39
-
40
- <a name="3.0.4"></a>
41
- ## [3.0.4](https://github.com/npm/hosted-git-info/compare/v3.0.3...v3.0.4) (2020-02-26)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * Do not pass scp-style URLs to the WhatWG url.URL ([0835306](https://github.com/npm/hosted-git-info/commit/0835306)), closes [#60](https://github.com/npm/hosted-git-info/issues/60) [#63](https://github.com/npm/hosted-git-info/issues/63)
47
-
48
-
49
-
50
- <a name="3.0.3"></a>
51
- ## [3.0.3](https://github.com/npm/hosted-git-info/compare/v3.0.2...v3.0.3) (2020-02-25)
52
-
53
-
54
-
55
- <a name="3.0.2"></a>
56
- ## [3.0.2](https://github.com/npm/hosted-git-info/compare/v3.0.1...v3.0.2) (2019-10-08)
57
-
58
-
59
- ### Bug Fixes
60
-
61
- * do not encodeURIComponent the domain ([3e5fbec](https://github.com/npm/hosted-git-info/commit/3e5fbec)), closes [#53](https://github.com/npm/hosted-git-info/issues/53)
62
-
63
-
64
-
65
- <a name="3.0.1"></a>
66
- ## [3.0.1](https://github.com/npm/hosted-git-info/compare/v3.0.0...v3.0.1) (2019-10-07)
67
-
68
-
69
- ### Bug Fixes
70
-
71
- * update pathmatch for gitlab ([e3e3054](https://github.com/npm/hosted-git-info/commit/e3e3054)), closes [#52](https://github.com/npm/hosted-git-info/issues/52)
72
- * updated pathmatch for gitlab ([fa87af7](https://github.com/npm/hosted-git-info/commit/fa87af7))
73
-
74
-
75
-
76
- <a name="3.0.0"></a>
77
- # [3.0.0](https://github.com/npm/hosted-git-info/compare/v2.8.3...v3.0.0) (2019-08-12)
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * **cache:** Switch to lru-cache to save ourselves from unlimited memory consumption ([37c2891](https://github.com/npm/hosted-git-info/commit/37c2891)), closes [#38](https://github.com/npm/hosted-git-info/issues/38)
83
-
84
-
85
- ### BREAKING CHANGES
86
-
87
- * **cache:** Drop support for node 0.x
88
-
89
-
90
-
91
- <a name="2.8.3"></a>
92
- ## [2.8.3](https://github.com/npm/hosted-git-info/compare/v2.8.2...v2.8.3) (2019-08-12)
93
-
94
-
95
-
96
- <a name="2.8.2"></a>
97
- ## [2.8.2](https://github.com/npm/hosted-git-info/compare/v2.8.1...v2.8.2) (2019-08-05)
98
-
99
-
100
- ### Bug Fixes
101
-
102
- * http protocol use sshurl by default ([3b1d629](https://github.com/npm/hosted-git-info/commit/3b1d629)), closes [#48](https://github.com/npm/hosted-git-info/issues/48)
103
-
104
-
105
-
106
- <a name="2.8.1"></a>
107
- ## [2.8.1](https://github.com/npm/hosted-git-info/compare/v2.8.0...v2.8.1) (2019-08-05)
108
-
109
-
110
- ### Bug Fixes
111
-
112
- * ignore noCommittish on tarball url generation ([5d4a8d7](https://github.com/npm/hosted-git-info/commit/5d4a8d7))
113
- * use gist tarball url that works for anonymous gists ([1692435](https://github.com/npm/hosted-git-info/commit/1692435))
114
-
115
-
116
-
117
- <a name="2.8.0"></a>
118
- # [2.8.0](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.0) (2019-08-05)
119
-
120
-
121
- ### Bug Fixes
122
-
123
- * Allow slashes in gitlab project section ([bbcf7b2](https://github.com/npm/hosted-git-info/commit/bbcf7b2)), closes [#46](https://github.com/npm/hosted-git-info/issues/46) [#43](https://github.com/npm/hosted-git-info/issues/43)
124
- * **git-host:** disallow URI-encoded slash (%2F) in `path` ([3776fa5](https://github.com/npm/hosted-git-info/commit/3776fa5)), closes [#44](https://github.com/npm/hosted-git-info/issues/44)
125
- * **gitlab:** Do not URL encode slashes in project name for GitLab https URL ([cbf04f9](https://github.com/npm/hosted-git-info/commit/cbf04f9)), closes [#47](https://github.com/npm/hosted-git-info/issues/47)
126
- * do not allow invalid gist urls ([d5cf830](https://github.com/npm/hosted-git-info/commit/d5cf830))
127
- * **cache:** Switch to lru-cache to save ourselves from unlimited memory consumption ([e518222](https://github.com/npm/hosted-git-info/commit/e518222)), closes [#38](https://github.com/npm/hosted-git-info/issues/38)
128
-
129
-
130
- ### Features
131
-
132
- * give these objects a name ([60abaea](https://github.com/npm/hosted-git-info/commit/60abaea))
133
-
134
-
135
-
136
- <a name="2.7.1"></a>
137
- ## [2.7.1](https://github.com/npm/hosted-git-info/compare/v2.7.0...v2.7.1) (2018-07-07)
138
-
139
-
140
- ### Bug Fixes
141
-
142
- * **index:** Guard against non-string types ([5bc580d](https://github.com/npm/hosted-git-info/commit/5bc580d))
143
- * **parse:** Crash on strings that parse to having no host ([c931482](https://github.com/npm/hosted-git-info/commit/c931482)), closes [#35](https://github.com/npm/hosted-git-info/issues/35)
144
-
145
-
146
-
147
- <a name="2.7.0"></a>
148
- # [2.7.0](https://github.com/npm/hosted-git-info/compare/v2.6.1...v2.7.0) (2018-07-06)
149
-
150
-
151
- ### Bug Fixes
152
-
153
- * **github tarball:** update github tarballtemplate ([6efd582](https://github.com/npm/hosted-git-info/commit/6efd582)), closes [#34](https://github.com/npm/hosted-git-info/issues/34)
154
- * **gitlab docs:** switched to lowercase anchors for readmes ([701bcd1](https://github.com/npm/hosted-git-info/commit/701bcd1))
155
-
156
-
157
- ### Features
158
-
159
- * **all:** Support www. prefixes on hostnames ([3349575](https://github.com/npm/hosted-git-info/commit/3349575)), closes [#32](https://github.com/npm/hosted-git-info/issues/32)
160
-
161
-
162
-
163
- <a name="2.6.1"></a>
164
- ## [2.6.1](https://github.com/npm/hosted-git-info/compare/v2.6.0...v2.6.1) (2018-06-25)
165
-
166
- ### Bug Fixes
167
-
168
- * **Revert:** "compat: remove Object.assign fallback ([#25](https://github.com/npm/hosted-git-info/issues/25))" ([cce5a62](https://github.com/npm/hosted-git-info/commit/cce5a62))
169
- * **Revert:** "git-host: fix forgotten extend()" ([a815ec9](https://github.com/npm/hosted-git-info/commit/a815ec9))
170
-
171
-
172
-
173
- <a name="2.6.0"></a>
174
- # [2.6.0](https://github.com/npm/hosted-git-info/compare/v2.5.0...v2.6.0) (2018-03-07)
175
-
176
-
177
- ### Bug Fixes
178
-
179
- * **compat:** remove Object.assign fallback ([#25](https://github.com/npm/hosted-git-info/issues/25)) ([627ab55](https://github.com/npm/hosted-git-info/commit/627ab55))
180
- * **git-host:** fix forgotten extend() ([eba1f7b](https://github.com/npm/hosted-git-info/commit/eba1f7b))
181
-
182
-
183
- ### Features
184
-
185
- * **browse:** fragment support for browse() ([#28](https://github.com/npm/hosted-git-info/issues/28)) ([cd5e5bb](https://github.com/npm/hosted-git-info/commit/cd5e5bb))