flowrix 1.0.1-beta.73 → 1.0.1-beta.74

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
  "name": "flowrix",
3
3
  "configKey": "flowrix",
4
- "version": "1.0.1-beta.73",
4
+ "version": "1.0.1-beta.74",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError, getCookie } from "h3";
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "catalog");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "catalog");
6
6
  export const catelogCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError, getCookie } from "h3";
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "catalog");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "catalog");
6
6
  export const catelogCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, createError, getCookie } from "h3";
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "catalog");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "catalog");
6
6
  export const catelogCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError, getCookie } from "h3";
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "catalog");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "catalog");
6
6
  export const catelogCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError, getCookie } from "h3";
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "catalog");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "catalog");
6
6
  export const catelogCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -3,7 +3,7 @@ import { writeFile, mkdir, readFile } from "fs/promises";
3
3
  import { join } from "path";
4
4
  import { flowrixApi } from "../../../middleware/flowrix.js";
5
5
  import { useRuntimeConfig } from "#imports";
6
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "categories");
6
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "categories");
7
7
  export const categoryCache = /* @__PURE__ */ new Map();
8
8
  async function ensureCacheDir() {
9
9
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError, readBody, getCookie } from "
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "blogs");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "blogs");
6
6
  export const blogCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError, readBody, getCookie } from "
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "pages");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "pages");
6
6
  export const pageCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -3,7 +3,7 @@ import { writeFile, mkdir, readFile } from "fs/promises";
3
3
  import { join } from "path";
4
4
  import { flowrixApi } from "../../../middleware/flowrix.js";
5
5
  import { useRuntimeConfig } from "#imports";
6
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "products");
6
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "products");
7
7
  export const productCache = /* @__PURE__ */ new Map();
8
8
  async function ensureCacheDir() {
9
9
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, getRouterParam, getQuery, createError, readBody, ge
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "services");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "services");
6
6
  export const serviceCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError, readBody, getCookie } from "
2
2
  import { $fetch } from "ofetch";
3
3
  import { writeFile, mkdir, readFile } from "fs/promises";
4
4
  import { join } from "path";
5
- const CACHE_DIR = join(process.cwd(), ".nuxt", "cache", "nitro", "services");
5
+ const CACHE_DIR = join("/temp", ".cache", "nitro", "services");
6
6
  export const serviceCache = /* @__PURE__ */ new Map();
7
7
  async function ensureCacheDir() {
8
8
  try {
@@ -1,7 +1,7 @@
1
1
  import { promises as fs } from "fs";
2
2
  import { join } from "path";
3
3
  import { getRequestURL, defineEventHandler, getCookie } from "h3";
4
- const cacheDir = join(process.cwd(), ".nuxt", "cache", "html");
4
+ const cacheDir = join("/temp", ".cache", "html");
5
5
  async function ensureDir() {
6
6
  await fs.mkdir(cacheDir, { recursive: true });
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.1-beta.73",
3
+ "version": "1.0.1-beta.74",
4
4
  "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",