flowrix 1.0.1-beta.74 → 1.0.1-beta.76
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/runtime/server/api/banners.js +1 -1
- package/dist/runtime/server/api/brand/[...slug].js +1 -1
- package/dist/runtime/server/api/cache/[...slug].delete.js +1 -1
- package/dist/runtime/server/api/cache/clean.get.js +1 -1
- package/dist/runtime/server/api/catalog/categories.js +1 -1
- package/dist/runtime/server/api/catalog/categoriesall.js +1 -1
- package/dist/runtime/server/api/catalog/featured.js +1 -1
- package/dist/runtime/server/api/catalog/samples.js +1 -1
- package/dist/runtime/server/api/catalog/search.js +1 -1
- package/dist/runtime/server/api/category/[...slug].js +1 -1
- package/dist/runtime/server/api/cmspost/[...slug].js +1 -1
- package/dist/runtime/server/api/countries.js +1 -1
- package/dist/runtime/server/api/page/[...slug].js +1 -1
- package/dist/runtime/server/api/product/[...slug].js +1 -1
- package/dist/runtime/server/api/service/[slug].js +1 -1
- package/dist/runtime/server/api/service/getall.js +1 -1
- package/dist/runtime/utils/htmlCache.js +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -2,7 +2,7 @@ import { defineEventHandler, createError } 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(
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".cache", "nitro", "extra");
|
|
6
6
|
export const catelogCache = /* @__PURE__ */ new Map();
|
|
7
7
|
async function ensureCacheDir() {
|
|
8
8
|
try {
|
|
@@ -3,7 +3,7 @@ import { $fetch } from "ofetch";
|
|
|
3
3
|
import { writeFile, mkdir, readFile } from "fs/promises";
|
|
4
4
|
import { join } from "path";
|
|
5
5
|
import { useRuntimeConfig } from "#imports";
|
|
6
|
-
const CACHE_DIR = join(
|
|
6
|
+
const CACHE_DIR = join("/tmp", ".cache", "nitro", "brands");
|
|
7
7
|
export const brandCache = /* @__PURE__ */ new Map();
|
|
8
8
|
async function ensureCacheDir() {
|
|
9
9
|
try {
|
|
@@ -2,7 +2,7 @@ import { defineEventHandler, getQuery, createError } from "h3";
|
|
|
2
2
|
import { join } from "path";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import path from "path";
|
|
5
|
-
const CACHE_DIR = join(
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".cache");
|
|
6
6
|
export default defineEventHandler(async (event) => {
|
|
7
7
|
const slug = event.context.params._;
|
|
8
8
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineEventHandler, createError } from "h3";
|
|
2
2
|
import { join } from "path";
|
|
3
3
|
import { rm } from "fs/promises";
|
|
4
|
-
const CACHE_DIR = join(
|
|
4
|
+
const CACHE_DIR = join("/tmp", ".cache");
|
|
5
5
|
export default defineEventHandler(async (event) => {
|
|
6
6
|
try {
|
|
7
7
|
await rm(CACHE_DIR, { recursive: true, force: true });
|
|
@@ -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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
6
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".cache", "nitro", "blogs");
|
|
6
6
|
export const blogCache = /* @__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(
|
|
6
|
+
const CACHE_DIR = join("/tmp", ".cache", "nitro", "company");
|
|
7
7
|
async function ensureCacheDir() {
|
|
8
8
|
try {
|
|
9
9
|
await mkdir(CACHE_DIR, { recursive: true });
|
|
@@ -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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
6
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
5
|
+
const CACHE_DIR = join("/tmp", ".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("/
|
|
4
|
+
const cacheDir = join("/tmp", ".cache", "html");
|
|
5
5
|
async function ensureDir() {
|
|
6
6
|
await fs.mkdir(cacheDir, { recursive: true });
|
|
7
7
|
}
|