@medusajs/admin-vite-plugin 2.11.3 → 2.11.4-snapshot-20251105174837

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/index.js CHANGED
@@ -1153,7 +1153,7 @@ var import_outdent3 = require("outdent");
1153
1153
  // src/routes/helpers.ts
1154
1154
  function getRoute(file) {
1155
1155
  const importPath = normalizePath(file);
1156
- return importPath.replace(/.*\/admin\/(routes)/, "").replace(/\[([^\]]+)\]/g, ":$1").replace(
1156
+ return importPath.replace(/.*\/admin\/(routes)/, "").replace("[[*]]", "*?").replace("[*]", "*").replace(/\(([^\[\]\)]+)\)/g, "$1?").replace(/\[\[([^\]]+)\]\]/g, ":$1?").replace(/\[([^\]]+)\]/g, ":$1").replace(
1157
1157
  new RegExp(
1158
1158
  `/page\\.(${VALID_FILE_EXTENSIONS.map((ext) => ext.slice(1)).join(
1159
1159
  "|"
package/dist/index.mjs CHANGED
@@ -1143,7 +1143,7 @@ import { outdent as outdent3 } from "outdent";
1143
1143
  // src/routes/helpers.ts
1144
1144
  function getRoute(file) {
1145
1145
  const importPath = normalizePath(file);
1146
- return importPath.replace(/.*\/admin\/(routes)/, "").replace(/\[([^\]]+)\]/g, ":$1").replace(
1146
+ return importPath.replace(/.*\/admin\/(routes)/, "").replace("[[*]]", "*?").replace("[*]", "*").replace(/\(([^\[\]\)]+)\)/g, "$1?").replace(/\[\[([^\]]+)\]\]/g, ":$1?").replace(/\[([^\]]+)\]/g, ":$1").replace(
1147
1147
  new RegExp(
1148
1148
  `/page\\.(${VALID_FILE_EXTENSIONS.map((ext) => ext.slice(1)).join(
1149
1149
  "|"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/admin-vite-plugin",
3
- "version": "2.11.3",
3
+ "version": "2.11.4-snapshot-20251105174837",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "@babel/parser": "7.25.6",
37
37
  "@babel/traverse": "7.25.6",
38
38
  "@babel/types": "7.25.6",
39
- "@medusajs/admin-shared": "2.11.3",
39
+ "@medusajs/admin-shared": "2.11.4-snapshot-20251105174837",
40
40
  "chokidar": "^3.5.3",
41
41
  "fdir": "6.1.1",
42
42
  "magic-string": "0.30.5",