create-astro 3.1.2 → 3.1.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -368,7 +368,7 @@ function printHelp({
368
368
  if (headline) {
369
369
  message.push(
370
370
  linebreak(),
371
- `${title(commandName)} ${color.green(`v${"3.1.2"}`)} ${headline}`
371
+ `${title(commandName)} ${color.green(`v${"3.1.3"}`)} ${headline}`
372
372
  );
373
373
  }
374
374
  if (usage) {
@@ -690,6 +690,8 @@ async function projectName(ctx) {
690
690
  if (!isEmpty(value)) {
691
691
  return `Directory is not empty!`;
692
692
  }
693
+ if (value.match(/[^\x20-\x7E]/g) !== null)
694
+ return `Invalid non-printable character present!`;
693
695
  return true;
694
696
  }
695
697
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -34,10 +34,10 @@
34
34
  "devDependencies": {
35
35
  "@types/which-pm-runs": "^1.0.0",
36
36
  "arg": "^5.0.2",
37
- "astro-scripts": "0.0.14",
38
37
  "strip-ansi": "^7.0.1",
39
38
  "strip-json-comments": "^5.0.0",
40
- "which-pm-runs": "^1.1.0"
39
+ "which-pm-runs": "^1.1.0",
40
+ "astro-scripts": "0.0.14"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=16.12.0"