giget 1.2.2 → 1.2.3

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/dist/cli.cjs CHANGED
@@ -18,7 +18,7 @@ require('node:util');
18
18
  require('node-fetch-native/proxy');
19
19
 
20
20
  const name = "giget";
21
- const version = "1.2.2";
21
+ const version = "1.2.3";
22
22
  const description = "Download templates and git repositories with pleasure!";
23
23
  const repository = "unjs/giget";
24
24
  const license = "MIT";
package/dist/cli.mjs CHANGED
@@ -16,7 +16,7 @@ import 'node:util';
16
16
  import 'node-fetch-native/proxy';
17
17
 
18
18
  const name = "giget";
19
- const version = "1.2.2";
19
+ const version = "1.2.3";
20
20
  const description = "Download templates and git repositories with pleasure!";
21
21
  const repository = "unjs/giget";
22
22
  const license = "MIT";
package/dist/index.cjs CHANGED
@@ -38,7 +38,7 @@ async function download(url, filePath, options = {}) {
38
38
  await node_util.promisify(node_stream.pipeline)(response.body, stream);
39
39
  await promises.writeFile(infoPath, JSON.stringify(info), "utf8");
40
40
  }
41
- const inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./-]+)?/;
41
+ const inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./@-]+)?/;
42
42
  function parseGitURI(input) {
43
43
  const m = input.match(inputRegex)?.groups || {};
44
44
  return {
package/dist/index.mjs CHANGED
@@ -36,7 +36,7 @@ async function download(url, filePath, options = {}) {
36
36
  await promisify(pipeline)(response.body, stream);
37
37
  await writeFile(infoPath, JSON.stringify(info), "utf8");
38
38
  }
39
- const inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./-]+)?/;
39
+ const inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./@-]+)?/;
40
40
  function parseGitURI(input) {
41
41
  const m = input.match(inputRegex)?.groups || {};
42
42
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giget",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Download templates and git repositories with pleasure!",
5
5
  "repository": "unjs/giget",
6
6
  "license": "MIT",