create-astro 0.12.1 → 0.12.2

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/logger.js +3 -13
  2. package/package.json +1 -1
package/dist/logger.js CHANGED
@@ -1,20 +1,10 @@
1
1
  import { bold, blue, dim, red, yellow } from "kleur/colors";
2
2
  import { Writable } from "stream";
3
3
  import { format as utilFormat } from "util";
4
- function getLoggerLocale() {
5
- const defaultLocale = "en-US";
6
- if (process.env.LANG) {
7
- const extractedLocale = process.env.LANG.split(".")[0].replace(/_/g, "-");
8
- if (extractedLocale.length < 2)
9
- return defaultLocale;
10
- else
11
- return extractedLocale;
12
- } else
13
- return defaultLocale;
14
- }
15
- const dt = new Intl.DateTimeFormat(getLoggerLocale(), {
4
+ const dt = new Intl.DateTimeFormat([], {
16
5
  hour: "2-digit",
17
- minute: "2-digit"
6
+ minute: "2-digit",
7
+ second: "2-digit"
18
8
  });
19
9
  const defaultLogDestination = new Writable({
20
10
  objectMode: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",