@asgardeo/nuxt 0.1.3 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "configKey": "asgardeo",
3
3
  "name": "@asgardeo/nuxt",
4
- "version": "0.1.3",
4
+ "version": "0.1.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, addServerHandler, addServerPlugin, addPlugin, addRouteMiddleware, addImports, addComponent } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addServerHandler, addServerPlugin, addPlugin, addRouteMiddleware, addImports, addComponent, extendViteConfig } from '@nuxt/kit';
2
2
  import { defu } from 'defu';
3
3
 
4
4
  const PACKAGE_NAME = "@asgardeo/nuxt";
@@ -188,6 +188,26 @@ const module = defineNuxtModule({
188
188
  name: "AsgardeoCreateOrganization"
189
189
  });
190
190
  addComponent({ filePath: resolve("./runtime/components/auth/Callback"), name: "AsgardeoCallback" });
191
+ extendViteConfig(
192
+ (viteConfig) => {
193
+ const deps = [
194
+ "@asgardeo/browser",
195
+ "@asgardeo/javascript",
196
+ "@asgardeo/vue",
197
+ "base64url",
198
+ "fast-sha256"
199
+ ];
200
+ const existingInclude = viteConfig.optimizeDeps?.include ?? [];
201
+ const newDeps = deps.filter((dep) => !existingInclude.includes(dep));
202
+ Object.assign(viteConfig, {
203
+ optimizeDeps: {
204
+ ...viteConfig.optimizeDeps,
205
+ include: [...existingInclude, ...newDeps]
206
+ }
207
+ });
208
+ },
209
+ { client: true }
210
+ );
191
211
  }
192
212
  });
193
213
 
@@ -1,4 +1,4 @@
1
- import { generateFlattenedUserProfile } from "@asgardeo/node";
1
+ import { generateFlattenedUserProfile } from "@asgardeo/browser";
2
2
  import {
3
3
  BrandingProvider,
4
4
  FlowMetaProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/nuxt",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Nuxt module for Asgardeo - Authentication and Identity Management",
5
5
  "author": "WSO2",
6
6
  "license": "Apache-2.0",
@@ -71,8 +71,8 @@
71
71
  "defu": "6.1.4",
72
72
  "jose": "^6.0.11",
73
73
  "@asgardeo/browser": "0.7.2",
74
- "@asgardeo/node": "0.0.76",
75
- "@asgardeo/vue": "0.3.6"
74
+ "@asgardeo/vue": "0.3.7",
75
+ "@asgardeo/node": "0.0.76"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "nuxt": ">=3.10.0",