create-react-router 8.2.0 → 8.3.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
+ ## v8.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - _No changes_
8
+
9
+ ## v8.3.0
10
+
11
+ ### Patch Changes
12
+
13
+ - _No changes_
14
+
3
15
  ## v8.2.0
4
16
 
5
17
  ### Minor Changes
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * create-react-router v8.2.0
3
+ * create-react-router v8.3.1
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -153,7 +153,7 @@ function isUrl(value) {
153
153
  try {
154
154
  new URL(value);
155
155
  return true;
156
- } catch (e) {
156
+ } catch {
157
157
  return false;
158
158
  }
159
159
  }
@@ -248,7 +248,7 @@ var Prompt = class extends EventEmitter {
248
248
  let a = action(key, isSelect);
249
249
  if (a === false) try {
250
250
  this._(str, key);
251
- } catch (e) {}
251
+ } catch {}
252
252
  else if (typeof this[a] === "function") this[a](key);
253
253
  };
254
254
  this.close = () => {
@@ -885,7 +885,7 @@ async function prompt(questions, opts = {}) {
885
885
  }, question));
886
886
  answers[name] = answer;
887
887
  quit = await onSubmit(question, answer, answers);
888
- } catch (e) {
888
+ } catch {
889
889
  quit = !await onCancel(question, answers);
890
890
  }
891
891
  if (quit) return answers;
@@ -1062,7 +1062,7 @@ async function copyTemplate(template, destPath, options) {
1062
1062
  function isLocalFilePath(input) {
1063
1063
  try {
1064
1064
  return input.startsWith("file://") || fs.existsSync(path.isAbsolute(input) ? input : path.resolve(process.cwd(), input));
1065
- } catch (e) {
1065
+ } catch {
1066
1066
  return false;
1067
1067
  }
1068
1068
  }
@@ -1156,7 +1156,7 @@ async function downloadAndExtractTarball(downloadPath, tarballUrl, { token, file
1156
1156
  return header.name === "__IGNORE__";
1157
1157
  }
1158
1158
  }));
1159
- } catch (e) {
1159
+ } catch {
1160
1160
  throw new CopyTemplateError(`There was a problem extracting the file from the provided template. Template URL: \`${tarballUrl}\` Destination directory: \`${downloadPath}\``);
1161
1161
  }
1162
1162
  if (filePath && !filePathHasFiles) throw new CopyTemplateError(`The path "${filePath}" was not found in this ${isGithubUrl ? "GitHub repo." : "tarball."}`);
@@ -1185,7 +1185,7 @@ function isValidGithubRepoUrl(input) {
1185
1185
  let url = new URL(input);
1186
1186
  let pathSegments = url.pathname.slice(1).split("/");
1187
1187
  return url.protocol === "https:" && url.hostname === "github.com" && pathSegments.length >= 2 && (pathSegments.length > 2 ? pathSegments[2] === "tree" && pathSegments.length >= 4 : true);
1188
- } catch (e) {
1188
+ } catch {
1189
1189
  return false;
1190
1190
  }
1191
1191
  }
@@ -1237,7 +1237,7 @@ var CopyTemplateError = class extends Error {
1237
1237
  };
1238
1238
  //#endregion
1239
1239
  //#region package.json
1240
- var version = "8.2.0";
1240
+ var version = "8.3.1";
1241
1241
  //#endregion
1242
1242
  //#region index.ts
1243
1243
  const currentFileDir = path.dirname(fileURLToPath(import.meta.url));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-react-router",
3
3
  "type": "module",
4
- "version": "8.2.0",
4
+ "version": "8.3.1",
5
5
  "description": "Create a new React Router app",
6
6
  "homepage": "https://reactrouter.com",
7
7
  "bugs": {