@wwawing/engine 3.13.0-acorn-statement.based-on.3.12.3.p.6 → 3.13.0-acorn-statement.based-on.3.12.4

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/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 1996-2015 NAO
4
- Copyright (c) 2015-2022 WWA Wing Team
4
+ Copyright (c) 2015-2023 WWA Wing Team
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
@@ -20,7 +20,8 @@ const outputDirectory = path.join(__dirname, "..", "lib");
20
20
 
21
21
  Promise.all([
22
22
  ...createPlayPagePromises(maps),
23
- createIndexPage({ page: { maps, thisYear: new Date().getFullYear() } })
23
+ // Netlify でデプロイする場合は wwa-server を使用しないため、トップページを生成する
24
+ ...(!isDev ? [createIndexPage({ page: { maps, thisYear: new Date().getFullYear() } })] : [])
24
25
  ])
25
26
  .catch(error => {
26
27
  console.error("error", error);
@@ -1,12 +1,12 @@
1
- export declare type JsonResponseErrorKind = "brokenJson" | "httpError" | "connectionError";
2
- export declare type JsonResponseKind = JsonResponseErrorKind | "data";
3
- export declare type JsonResponseError<ErrorKind = JsonResponseErrorKind> = {
1
+ export type JsonResponseErrorKind = "brokenJson" | "httpError" | "connectionError";
2
+ export type JsonResponseKind = JsonResponseErrorKind | "data";
3
+ export type JsonResponseError<ErrorKind = JsonResponseErrorKind> = {
4
4
  kind: ErrorKind;
5
5
  errorMessage: string;
6
6
  };
7
- export declare type JsonResponseData = {
7
+ export type JsonResponseData = {
8
8
  kind: "data";
9
9
  data: unknown;
10
10
  };
11
- export declare type JsonResponse<ResponseKind = JsonResponseKind> = JsonResponseError<Exclude<ResponseKind, "data">> | JsonResponseData;
11
+ export type JsonResponse<ResponseKind = JsonResponseKind> = JsonResponseError<Exclude<ResponseKind, "data">> | JsonResponseData;
12
12
  export declare const fetchJsonFile: (fileName: string) => Promise<JsonResponse>;