astro 1.2.0 → 1.2.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.
@@ -42,6 +42,7 @@ const OFFICIAL_ADAPTER_TO_IMPORT_MAP = {
42
42
  deno: "@astrojs/deno"
43
43
  };
44
44
  async function add(names, { cwd, flags, logging, telemetry }) {
45
+ applyPolyfill();
45
46
  if (flags.help || names.length === 0) {
46
47
  printHelp({
47
48
  commandName: "astro add",
@@ -141,7 +142,6 @@ async function add(names, { cwd, flags, logging, telemetry }) {
141
142
  }
142
143
  const rawConfigPath = await resolveConfigPath({ cwd, flags });
143
144
  let configURL = rawConfigPath ? pathToFileURL(rawConfigPath) : void 0;
144
- applyPolyfill();
145
145
  if (configURL) {
146
146
  debug("add", `Found config at ${configURL}`);
147
147
  } else {
@@ -48,7 +48,7 @@ async function dev(config, options) {
48
48
  isRestart
49
49
  })
50
50
  );
51
- const currentVersion = "1.2.0";
51
+ const currentVersion = "1.2.1";
52
52
  if (currentVersion.includes("-")) {
53
53
  warn(options.logging, null, msg.prerelease({ currentVersion }));
54
54
  }
@@ -47,7 +47,7 @@ function devStart({
47
47
  site,
48
48
  isRestart = false
49
49
  }) {
50
- const version = "1.2.0";
50
+ const version = "1.2.1";
51
51
  const rootPath = site ? site.pathname : "/";
52
52
  const localPrefix = `${dim("\u2503")} Local `;
53
53
  const networkPrefix = `${dim("\u2503")} Network `;
@@ -226,7 +226,7 @@ function printHelp({
226
226
  message.push(
227
227
  linebreak(),
228
228
  ` ${bgGreen(black(` ${commandName} `))} ${green(
229
- `v${"1.2.0"}`
229
+ `v${"1.2.1"}`
230
230
  )} ${headline}`
231
231
  );
232
232
  }
package/dist/core/util.js CHANGED
@@ -5,7 +5,7 @@ import resolve from "resolve";
5
5
  import slash from "slash";
6
6
  import { fileURLToPath, pathToFileURL } from "url";
7
7
  import { prependForwardSlash, removeTrailingForwardSlash } from "./path.js";
8
- const ASTRO_VERSION = "1.2.0";
8
+ const ASTRO_VERSION = "1.2.1";
9
9
  function isObject(value) {
10
10
  return typeof value === "object" && value != null;
11
11
  }
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "1.2.0";
1
+ const ASTRO_VERSION = "1.2.1";
2
2
  function createDeprecatedFetchContentFn() {
3
3
  return () => {
4
4
  throw new Error("Deprecated: Astro.fetchContent() has been replaced with Astro.glob().");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
5
5
  "type": "module",
6
6
  "author": "withastro",