@hywax/cms 0.0.12 → 0.0.14
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/dist/module.json +1 -1
- package/dist/module.mjs +5 -5
- package/package.json +1 -1
- package/.nuxt/cms/http-codes.ts +0 -8
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { snakeCase, kebabCase } from 'scule';
|
|
|
6
6
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
7
7
|
|
|
8
8
|
const name = "@hywax/cms";
|
|
9
|
-
const version = "0.0.
|
|
9
|
+
const version = "0.0.14";
|
|
10
10
|
|
|
11
11
|
function createContext(options, nuxt) {
|
|
12
12
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -192,12 +192,12 @@ function prepareServerRoutes({ resolve }) {
|
|
|
192
192
|
addServerHandler({
|
|
193
193
|
route: "/api/_uplora",
|
|
194
194
|
method: "post",
|
|
195
|
-
handler: resolve("./runtime/server/api/uplora/index.post
|
|
195
|
+
handler: resolve("./runtime/server/api/uplora/index.post")
|
|
196
196
|
});
|
|
197
197
|
addServerHandler({
|
|
198
198
|
route: "/api/_uplora/:id",
|
|
199
199
|
method: "delete",
|
|
200
|
-
handler: resolve("./runtime/server/api/uplora/[id].delete
|
|
200
|
+
handler: resolve("./runtime/server/api/uplora/[id].delete")
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
|
|
@@ -520,7 +520,7 @@ export {}
|
|
|
520
520
|
`
|
|
521
521
|
});
|
|
522
522
|
templates.push({
|
|
523
|
-
filename: "
|
|
523
|
+
filename: "http-codes.mjs",
|
|
524
524
|
write: true,
|
|
525
525
|
getContents: () => {
|
|
526
526
|
const httpCodes = transformHttpCodes(options.httpCodes);
|
|
@@ -565,8 +565,8 @@ const module = defineNuxtModule({
|
|
|
565
565
|
const context = createContext(options, nuxt);
|
|
566
566
|
prepareMergeConfigs(context);
|
|
567
567
|
await prepareInstallModules();
|
|
568
|
-
prepareAutoImports(context);
|
|
569
568
|
prepareTemplates(context);
|
|
569
|
+
prepareAutoImports(context);
|
|
570
570
|
prepareServerRoutes(context);
|
|
571
571
|
await prepareGenerateEnv(context);
|
|
572
572
|
}
|
package/package.json
CHANGED
package/.nuxt/cms/http-codes.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const HTTP_CODE_BAD_REQUEST = '400: Неверный запрос'
|
|
2
|
-
export const HTTP_CODE_UNAUTHORIZED = '401: Не авторизован'
|
|
3
|
-
export const HTTP_CODE_FORBIDDEN = '403: Доступ запрещен'
|
|
4
|
-
export const HTTP_CODE_NOT_FOUND = '404: Не найдено'
|
|
5
|
-
export const HTTP_CODE_REQUEST_TIMEOUT = '408: Время ожидания запроса истекло'
|
|
6
|
-
export const HTTP_CODE_INTERNAL_SERVER_ERROR = '500: Внутренняя ошибка сервера'
|
|
7
|
-
export const HTTP_CODE_BAD_GATEWAY = '502: Ошибка шлюза'
|
|
8
|
-
export const HTTP_CODE_SERVICE_UNAVAILABLE = '503: Сервис недоступен'
|