strapi-identity 0.4.0 → 0.4.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.
@@ -9716,7 +9716,7 @@ const registerMiddlewares = (server) => {
9716
9716
  "/strapi-identity/setup-email"
9717
9717
  ];
9718
9718
  const isAllowed = allowedPaths.includes(ctx.path) || // Static assets (JS, CSS, images, fonts, sourcemaps)
9719
- /\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@");
9719
+ /\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@") || ctx.path.startsWith("/admin/src/");
9720
9720
  if (!isAllowed) console.log(ctx.path);
9721
9721
  if (!isAllowed) {
9722
9722
  if (ctx.accepts("html") && ctx.path.startsWith("/admin")) {
@@ -9709,7 +9709,7 @@ const registerMiddlewares = (server) => {
9709
9709
  "/strapi-identity/setup-email"
9710
9710
  ];
9711
9711
  const isAllowed = allowedPaths.includes(ctx.path) || // Static assets (JS, CSS, images, fonts, sourcemaps)
9712
- /\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@");
9712
+ /\.(mjs|js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|eot|map)(\?.*)?$/.test(ctx.path) || ctx.path.startsWith("/admin/@") || ctx.path.startsWith("/admin/src/");
9713
9713
  if (!isAllowed) console.log(ctx.path);
9714
9714
  if (!isAllowed) {
9715
9715
  if (ctx.accepts("html") && ctx.path.startsWith("/admin")) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "0.4.1",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "plugin",