create-react-router 7.14.2 → 7.15.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # `create-react-router`
2
2
 
3
+ ## v7.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - _No changes_
8
+
9
+ ## v7.15.0
10
+
11
+ ### Patch Changes
12
+
13
+ - _No changes_
14
+
3
15
  ## v7.14.2
4
16
 
5
17
  ### Patch Changes
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * create-react-router v7.14.2
3
+ * create-react-router v7.15.1
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -49,7 +49,7 @@ var semver = __toESM(require("semver"));
49
49
  var import_sort_package_json = __toESM(require("sort-package-json"));
50
50
 
51
51
  // package.json
52
- var version = "7.14.2";
52
+ var version = "7.15.1";
53
53
 
54
54
  // prompt.ts
55
55
  var import_node_process3 = __toESM(require("process"));
@@ -216,7 +216,7 @@ function isUrl(value) {
216
216
  try {
217
217
  new URL(value);
218
218
  return true;
219
- } catch (_) {
219
+ } catch (e) {
220
220
  return false;
221
221
  }
222
222
  }
@@ -312,7 +312,7 @@ var Prompt = class extends import_node_events.default {
312
312
  if (a === false) {
313
313
  try {
314
314
  this._(str, key);
315
- } catch (_) {
315
+ } catch (e) {
316
316
  }
317
317
  } else if (typeof this[a] === "function") {
318
318
  this[a](key);
@@ -1031,7 +1031,7 @@ async function prompt(questions, opts = {}) {
1031
1031
  answer = await prompts[type](Object.assign({ stdin, stdout }, question));
1032
1032
  answers[name] = answer;
1033
1033
  quit = await onSubmit(question, answer, answers);
1034
- } catch (err) {
1034
+ } catch (e) {
1035
1035
  quit = !await onCancel(question, answers);
1036
1036
  }
1037
1037
  if (quit) {
@@ -1260,7 +1260,7 @@ function isLocalFilePath(input) {
1260
1260
  return input.startsWith("file://") || import_node_fs2.default.existsSync(
1261
1261
  import_node_path2.default.isAbsolute(input) ? input : import_node_path2.default.resolve(import_node_process5.default.cwd(), input)
1262
1262
  );
1263
- } catch (_) {
1263
+ } catch (e) {
1264
1264
  return false;
1265
1265
  }
1266
1266
  }
@@ -1408,7 +1408,7 @@ async function downloadAndExtractTarball(downloadPath, tarballUrl, { token, file
1408
1408
  }
1409
1409
  })
1410
1410
  );
1411
- } catch (_) {
1411
+ } catch (e) {
1412
1412
  throw new CopyTemplateError(
1413
1413
  `There was a problem extracting the file from the provided template. Template URL: \`${tarballUrl}\` Destination directory: \`${downloadPath}\``
1414
1414
  );
@@ -1451,7 +1451,7 @@ function isValidGithubRepoUrl(input) {
1451
1451
  // https://github.com/:owner/:repo
1452
1452
  // https://github.com/:owner/:repo/tree/:ref
1453
1453
  pathSegments.length >= 2 && (pathSegments.length > 2 ? pathSegments[2] === "tree" && pathSegments.length >= 4 : true);
1454
- } catch (_) {
1454
+ } catch (e) {
1455
1455
  return false;
1456
1456
  }
1457
1457
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-react-router",
3
- "version": "7.14.2",
3
+ "version": "7.15.1",
4
4
  "description": "Create a new React Router app",
5
5
  "homepage": "https://reactrouter.com",
6
6
  "bugs": {