@edgeone/nuxt-pages 1.0.11 → 1.0.12

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.
@@ -8,7 +8,7 @@ import {
8
8
  convertNuxtRoutePattern,
9
9
  createNuxtApiRoutesMeta,
10
10
  createNuxtPagesRouteMeta
11
- } from "../esm-chunks/chunk-ABEHWNBD.js";
11
+ } from "../esm-chunks/chunk-K2Z75NVP.js";
12
12
  import "../esm-chunks/chunk-5VJRCUAW.js";
13
13
  import "../esm-chunks/chunk-6BT4RYQJ.js";
14
14
  export {
@@ -197,24 +197,6 @@ var createNuxtApiRoutesMeta = async (ctx) => {
197
197
  return route;
198
198
  });
199
199
  let staticAllIndex = -1;
200
- processedRoutes = processedRoutes.map((route, index) => {
201
- if (route.path.startsWith("/:") && route.path.endsWith("*")) {
202
- staticAllIndex = index;
203
- if (route.hasOwnProperty("isStatic")) {
204
- route.isStatic = true;
205
- } else {
206
- Reflect.defineProperty(route, "isStatic", {
207
- value: true,
208
- enumerable: true
209
- });
210
- }
211
- return route;
212
- }
213
- return route;
214
- });
215
- if (staticAllIndex !== -1) {
216
- [processedRoutes[staticAllIndex], processedRoutes[processedRoutes.length - 1]] = [processedRoutes[processedRoutes.length - 1], processedRoutes[staticAllIndex]];
217
- }
218
200
  const finalMetaData = {
219
201
  frameworkRoutes: processedRoutes,
220
202
  conf: {
package/dist/index.js CHANGED
@@ -4,15 +4,15 @@
4
4
  return createRequire(import.meta.url);
5
5
  })();
6
6
 
7
+ import {
8
+ addNitroBuildOutputConfig,
9
+ resetNitroConfig
10
+ } from "./esm-chunks/chunk-7JK67XZ2.js";
7
11
  import {
8
12
  createServerHandler,
9
13
  patchNitroHandler
10
14
  } from "./esm-chunks/chunk-QG7JLDXY.js";
11
15
  import "./esm-chunks/chunk-NJ4SUJNF.js";
12
- import {
13
- addNitroBuildOutputConfig,
14
- resetNitroConfig
15
- } from "./esm-chunks/chunk-7JK67XZ2.js";
16
16
  import "./esm-chunks/chunk-V2LFVP3C.js";
17
17
  import {
18
18
  PluginContext
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  createNuxtApiRoutesMeta,
22
22
  createNuxtPagesRouteMeta
23
- } from "./esm-chunks/chunk-ABEHWNBD.js";
23
+ } from "./esm-chunks/chunk-K2Z75NVP.js";
24
24
  import "./esm-chunks/chunk-5VJRCUAW.js";
25
25
  import "./esm-chunks/chunk-6BT4RYQJ.js";
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeone/nuxt-pages",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "test": "ts-node src/test.ts",