flowrix 1.0.1-beta.11 → 1.0.1-beta.13
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 +4 -0
- package/dist/runtime/composables/Customer/useRegister.d.ts +2 -2
- package/dist/runtime/composables/Customer/useRegister.js +2 -0
- package/dist/runtime/middleware/flowrix.js +1 -0
- package/dist/runtime/server/api/cache/clean.get.d.ts +5 -0
- package/dist/runtime/server/api/cache/clean.get.js +16 -0
- package/dist/runtime/stores/Cart.js +0 -1
- package/package.json +18 -18
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -269,6 +269,10 @@ const module = defineNuxtModule({
|
|
|
269
269
|
route: "/api/v2/**",
|
|
270
270
|
handler: resolver.resolve("./runtime/server/api/v2/[...slug]")
|
|
271
271
|
});
|
|
272
|
+
addServerHandler({
|
|
273
|
+
route: "/api/cache/clean",
|
|
274
|
+
handler: resolver.resolve("./runtime/server/api/cache/clean.get")
|
|
275
|
+
});
|
|
272
276
|
addServerHandler({
|
|
273
277
|
route: "/api/cache/**",
|
|
274
278
|
handler: resolver.resolve("./runtime/server/api/cache/[...slug].delete")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default function (): {
|
|
2
|
-
router:
|
|
3
|
-
route:
|
|
2
|
+
router: import("vue-router").Router;
|
|
3
|
+
route: import("vue-router").RouteLocationNormalizedLoadedGeneric;
|
|
4
4
|
form_error: import("vue").Ref<string, string>;
|
|
5
5
|
inputData: import("vue").Ref<{
|
|
6
6
|
passwordStrengthValue: number;
|
|
@@ -2,6 +2,7 @@ const isServer = typeof process !== "undefined" && process.server;
|
|
|
2
2
|
function getEnv(key) {
|
|
3
3
|
if (typeof useRuntimeConfig === "function") {
|
|
4
4
|
const config = useRuntimeConfig();
|
|
5
|
+
console.log(config.public);
|
|
5
6
|
return config.public?.[key] || config[key];
|
|
6
7
|
}
|
|
7
8
|
return process.env[key];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineEventHandler, createError } from "h3";
|
|
2
|
+
import { join } from "path";
|
|
3
|
+
import { rm } from "fs/promises";
|
|
4
|
+
const CACHE_DIR = join(process.cwd(), ".nuxt", "cache");
|
|
5
|
+
export default defineEventHandler(async (event) => {
|
|
6
|
+
try {
|
|
7
|
+
await rm(CACHE_DIR, { recursive: true, force: true });
|
|
8
|
+
return { success: true, message: "Cache deleted successfully" };
|
|
9
|
+
} catch (error) {
|
|
10
|
+
throw createError({
|
|
11
|
+
statusCode: 500,
|
|
12
|
+
statusMessage: `Cache not cleared`,
|
|
13
|
+
data: error.message
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -31,7 +31,6 @@ export const useCartStore = defineStore("cart", {
|
|
|
31
31
|
return { attribute_id, fraction };
|
|
32
32
|
},
|
|
33
33
|
async addToCart(product, qty, data, productId = "", service = []) {
|
|
34
|
-
const { post } = useApi();
|
|
35
34
|
const checkoutSession = useCheckoutStore().checkoutSession;
|
|
36
35
|
let formData = {
|
|
37
36
|
cart: void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowrix",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.13",
|
|
4
4
|
"description": "lug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nuxt/kit": "
|
|
38
|
-
"@pinia/nuxt": "
|
|
39
|
-
"@stripe/stripe-js": "
|
|
40
|
-
"pinia": "
|
|
41
|
-
"pinia-plugin-persistedstate": "
|
|
37
|
+
"@nuxt/kit": "4.2.0",
|
|
38
|
+
"@pinia/nuxt": "0.7.0",
|
|
39
|
+
"@stripe/stripe-js": "8.2.0",
|
|
40
|
+
"pinia": "2.3.1",
|
|
41
|
+
"pinia-plugin-persistedstate": "3.2.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@nuxt/devtools": "
|
|
45
|
-
"@nuxt/eslint-config": "
|
|
46
|
-
"@nuxt/module-builder": "
|
|
47
|
-
"@nuxt/schema": "
|
|
48
|
-
"@nuxt/test-utils": "
|
|
49
|
-
"@types/node": "
|
|
50
|
-
"changelogen": "
|
|
51
|
-
"eslint": "
|
|
52
|
-
"nuxt": "
|
|
53
|
-
"typescript": "
|
|
54
|
-
"vitest": "
|
|
55
|
-
"vue-tsc": "
|
|
44
|
+
"@nuxt/devtools": "2.6.5",
|
|
45
|
+
"@nuxt/eslint-config": "1.9.0",
|
|
46
|
+
"@nuxt/module-builder": "1.0.2",
|
|
47
|
+
"@nuxt/schema": "4.2.0",
|
|
48
|
+
"@nuxt/test-utils": "3.19.2",
|
|
49
|
+
"@types/node": "24.9.1",
|
|
50
|
+
"changelogen": "0.6.2",
|
|
51
|
+
"eslint": "9.38.0",
|
|
52
|
+
"nuxt": "4.2.0",
|
|
53
|
+
"typescript": "5.9.3",
|
|
54
|
+
"vitest": "3.2.4",
|
|
55
|
+
"vue-tsc": "3.1.1"
|
|
56
56
|
}
|
|
57
57
|
}
|