@scayle/storefront-nuxt 7.85.8 → 7.85.10
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +5 -15
- package/dist/index.d.ts +5 -15
- package/dist/index.mjs +2 -16
- package/dist/module.d.mts +4 -4
- package/dist/module.d.ts +4 -4
- package/dist/module.json +5 -1
- package/dist/module.mjs +5 -25
- package/dist/rpc.d.mts +1 -16
- package/dist/rpc.d.ts +1 -16
- package/dist/rpc.mjs +1 -20
- package/dist/runtime/api/{purgeAll.mjs → purgeAll.js} +1 -1
- package/dist/runtime/api/{purgeTags.mjs → purgeTags.js} +1 -1
- package/dist/runtime/api/rpcHandler.d.ts +55 -1
- package/dist/runtime/api/{rpcHandler.mjs → rpcHandler.js} +3 -3
- package/dist/runtime/composables/core/useAvailableShops.d.ts +2 -2
- package/dist/runtime/composables/core/useCurrentShop.d.ts +1 -1
- package/dist/runtime/composables/core/{useFormatHelpers.mjs → useFormatHelpers.js} +1 -1
- package/dist/runtime/composables/core/useIDP.d.ts +1 -1
- package/dist/runtime/composables/core/{useIDP.mjs → useIDP.js} +3 -3
- package/dist/runtime/composables/core/{useRpc.mjs → useRpc.js} +3 -3
- package/dist/runtime/composables/core/{useRpcCall.mjs → useRpcCall.js} +2 -2
- package/dist/runtime/composables/core/{useSession.mjs → useSession.js} +1 -1
- package/dist/runtime/composables/core/useUser.d.ts +1 -1
- package/dist/runtime/composables/core/{useUser.mjs → useUser.js} +4 -4
- package/dist/runtime/composables/index.d.ts +36 -36
- package/dist/runtime/composables/index.js +36 -0
- package/dist/runtime/composables/storefront/useBasket.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useBasket.mjs → useBasket.js} +3 -3
- package/dist/runtime/composables/storefront/useBrand.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useBrand.mjs → useBrand.js} +1 -1
- package/dist/runtime/composables/storefront/useBrands.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useBrands.mjs → useBrands.js} +1 -1
- package/dist/runtime/composables/storefront/useCategories.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCategories.mjs → useCategories.js} +3 -3
- package/dist/runtime/composables/storefront/useCategoryById.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCategoryById.mjs → useCategoryById.js} +1 -1
- package/dist/runtime/composables/storefront/useCategoryByPath.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCategoryByPath.mjs → useCategoryByPath.js} +1 -1
- package/dist/runtime/composables/storefront/useCurrentPromotions.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCurrentPromotions.mjs → useCurrentPromotions.js} +1 -1
- package/dist/runtime/composables/storefront/useFacet.d.ts +28 -24
- package/dist/runtime/composables/storefront/{useFacet.mjs → useFacet.js} +5 -5
- package/dist/runtime/composables/storefront/useFilters.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useFilters.mjs → useFilters.js} +1 -1
- package/dist/runtime/composables/storefront/useNavigationTree.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useNavigationTree.mjs → useNavigationTree.js} +1 -1
- package/dist/runtime/composables/storefront/useNavigationTrees.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useNavigationTrees.mjs → useNavigationTrees.js} +1 -1
- package/dist/runtime/composables/storefront/useOrder.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useOrder.mjs → useOrder.js} +1 -1
- package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useOrderConfirmation.mjs → useOrderConfirmation.js} +1 -1
- package/dist/runtime/composables/storefront/useProduct.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProduct.mjs → useProduct.js} +1 -1
- package/dist/runtime/composables/storefront/useProducts.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProducts.mjs → useProducts.js} +1 -1
- package/dist/runtime/composables/storefront/useProductsByIds.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProductsByIds.mjs → useProductsByIds.js} +1 -1
- package/dist/runtime/composables/storefront/useProductsByReferenceKeys.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProductsByReferenceKeys.mjs → useProductsByReferenceKeys.js} +1 -1
- package/dist/runtime/composables/storefront/useProductsCount.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProductsCount.mjs → useProductsCount.js} +1 -1
- package/dist/runtime/composables/storefront/usePromotions.d.ts +1 -1
- package/dist/runtime/composables/storefront/{usePromotions.mjs → usePromotions.js} +1 -1
- package/dist/runtime/composables/storefront/usePromotionsByIds.d.ts +1 -1
- package/dist/runtime/composables/storefront/{usePromotionsByIds.mjs → usePromotionsByIds.js} +1 -1
- package/dist/runtime/composables/storefront/{useQueryFilterState.mjs → useQueryFilterState.js} +1 -1
- package/dist/runtime/composables/storefront/useSearch.d.ts +3 -3
- package/dist/runtime/composables/storefront/{useSearch.mjs → useSearch.js} +1 -1
- package/dist/runtime/composables/storefront/useShopConfiguration.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useShopConfiguration.mjs → useShopConfiguration.js} +1 -1
- package/dist/runtime/composables/storefront/useStorefrontSearch.d.ts +2 -2
- package/dist/runtime/composables/storefront/{useStorefrontSearch.mjs → useStorefrontSearch.js} +1 -1
- package/dist/runtime/composables/storefront/useUserAddresses.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useUserAddresses.mjs → useUserAddresses.js} +1 -1
- package/dist/runtime/composables/storefront/useVariant.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useVariant.mjs → useVariant.js} +1 -1
- package/dist/runtime/composables/storefront/useWishlist.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useWishlist.mjs → useWishlist.js} +3 -3
- package/dist/runtime/composables/{useCoreLog.mjs → useCoreLog.js} +1 -1
- package/dist/runtime/context.d.ts +1 -1
- package/dist/runtime/{context.mjs → context.js} +2 -2
- package/dist/runtime/createLog.d.ts +2 -2
- package/dist/runtime/{createLog.mjs → createLog.js} +1 -1
- package/dist/runtime/error/handler.d.ts +1 -1
- package/dist/runtime/nitro/plugins/cacheRuntimeConfig.d.ts +1 -1
- package/dist/runtime/nitro/plugins/{cacheRuntimeConfig.mjs → cacheRuntimeConfig.js} +2 -1
- package/dist/runtime/nitro/plugins/configValidation.d.ts +8 -3
- package/dist/runtime/nitro/plugins/{configValidation.mjs → configValidation.js} +8 -6
- package/dist/runtime/nitro/plugins/nitroLogger.d.ts +1 -1
- package/dist/runtime/nitro/plugins/{nitroLogger.mjs → nitroLogger.js} +3 -2
- package/dist/runtime/nitro/plugins/nitroRuntimeStorageConfig.d.ts +1 -1
- package/dist/runtime/nitro/plugins/{nitroRuntimeStorageConfig.mjs → nitroRuntimeStorageConfig.js} +9 -7
- package/dist/runtime/nitro/plugins/nitroSetXPoweredByHeader.d.ts +1 -1
- package/dist/runtime/nitro/plugins/{nitroSetXPoweredByHeader.mjs → nitroSetXPoweredByHeader.js} +1 -1
- package/dist/runtime/plugin/{log.client.mjs → log.client.js} +1 -1
- package/dist/runtime/plugin/{shop.mjs → shop.js} +2 -2
- package/dist/runtime/rpc/rpcCall.d.ts +1 -1
- package/dist/runtime/server/middleware/{bootstrap.utils.d.ts → bootstrap-utils.d.ts} +7 -3
- package/dist/runtime/server/middleware/{bootstrap.utils.mjs → bootstrap-utils.js} +2 -2
- package/dist/runtime/server/middleware/bootstrap.d.ts +1 -1
- package/dist/runtime/server/middleware/{bootstrap.mjs → bootstrap.js} +5 -5
- package/dist/runtime/server/middleware/{redirects.mjs → redirects.js} +1 -1
- package/dist/runtime/server/tsconfig.json +1 -1
- package/dist/runtime/server/utils/cacheStorage.d.ts +1 -1
- package/dist/runtime/utils/zodSchema.d.ts +261 -153
- package/dist/runtime/utils/{zodSchema.mjs → zodSchema.js} +16 -7
- package/dist/shared/storefront-nuxt.80aa5060.d.mts +102 -0
- package/dist/shared/storefront-nuxt.80aa5060.d.ts +102 -0
- package/dist/types.d.mts +48 -0
- package/dist/types.d.ts +48 -0
- package/package.json +15 -13
- package/dist/runtime/composables/index.mjs +0 -36
- package/dist/shared/storefront-nuxt.891170da.d.mts +0 -1205
- package/dist/shared/storefront-nuxt.891170da.d.ts +0 -1205
- /package/dist/runtime/api/{cacheAuth.mjs → cacheAuth.js} +0 -0
- /package/dist/runtime/api/{up.mjs → up.js} +0 -0
- /package/dist/runtime/{campaignKey.mjs → campaignKey.js} +0 -0
- /package/dist/runtime/composables/core/{useAvailableShops.mjs → useAvailableShops.js} +0 -0
- /package/dist/runtime/composables/core/{useCurrentShop.mjs → useCurrentShop.js} +0 -0
- /package/dist/runtime/composables/core/{useLog.mjs → useLog.js} +0 -0
- /package/dist/runtime/error/{handler.mjs → handler.js} +0 -0
- /package/dist/runtime/{handler.mjs → handler.js} +0 -0
- /package/dist/runtime/{log.mjs → log.js} +0 -0
- /package/dist/runtime/plugin/{log.server.mjs → log.server.js} +0 -0
- /package/dist/runtime/rpc/{rpcCall.mjs → rpcCall.js} +0 -0
- /package/dist/runtime/server/middleware/{redirects.utils.mjs → redirects.utils.js} +0 -0
- /package/dist/runtime/server/utils/{cacheStorage.mjs → cacheStorage.js} +0 -0
- /package/dist/runtime/utils/{promise.mjs → promise.js} +0 -0
- /package/dist/runtime/utils/{route.mjs → route.js} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineNitroPlugin
|
|
2
|
-
import {
|
|
1
|
+
import { defineNitroPlugin } from "nitropack/runtime/plugin";
|
|
2
|
+
import { useRuntimeConfig } from "#imports";
|
|
3
|
+
import { RuntimeConfigSchema } from "../../utils/zodSchema.js";
|
|
3
4
|
import { purifySensitiveValue } from "@scayle/storefront-core";
|
|
4
5
|
export const sensitiveKeys = [
|
|
5
6
|
"token",
|
|
@@ -9,9 +10,10 @@ export const sensitiveKeys = [
|
|
|
9
10
|
"secret"
|
|
10
11
|
];
|
|
11
12
|
export const getValue = (object, pathArray) => {
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
return JSON.stringify(pathArray.reduce(
|
|
14
|
+
(acc, key) => typeof acc === "object" ? acc[key] : void 0,
|
|
15
|
+
object
|
|
16
|
+
));
|
|
15
17
|
};
|
|
16
18
|
export const formatZodError = (issues, runtimeConfig) => {
|
|
17
19
|
const errorMessages = [];
|
|
@@ -22,7 +24,7 @@ export const formatZodError = (issues, runtimeConfig) => {
|
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
26
|
const key = issue.path[issue.path.length - 1];
|
|
25
|
-
let value;
|
|
27
|
+
let value = "";
|
|
26
28
|
if (sensitiveKeys.includes(key)) {
|
|
27
29
|
value = purifySensitiveValue(getValue(runtimeConfig, issue.path), true);
|
|
28
30
|
} else if (issue.code !== "too_small") {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createConsola } from "consola";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { defineNitroPlugin } from "nitropack/runtime/plugin";
|
|
3
|
+
import { useRuntimeConfig } from "#imports";
|
|
4
|
+
import createLog from "../../createLog.js";
|
|
4
5
|
export default defineNitroPlugin((nitroApp) => {
|
|
5
6
|
const config = useRuntimeConfig();
|
|
6
7
|
const logConfig = config.public.storefront.log;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("nitropack").NitroAppPlugin;
|
|
2
2
|
export default _default;
|
package/dist/runtime/nitro/plugins/{nitroRuntimeStorageConfig.mjs → nitroRuntimeStorageConfig.js}
RENAMED
|
@@ -2,10 +2,12 @@ import { createConsola } from "consola";
|
|
|
2
2
|
import {
|
|
3
3
|
STORAGE_MOUNT_CACHE,
|
|
4
4
|
STORAGE_MOUNT_SESSION
|
|
5
|
-
} from "../../server/utils/cacheStorage.
|
|
6
|
-
import createLog from "../../createLog.
|
|
5
|
+
} from "../../server/utils/cacheStorage.js";
|
|
6
|
+
import createLog from "../../createLog.js";
|
|
7
7
|
import drivers from "#virtual/storage-drivers";
|
|
8
|
-
import { defineNitroPlugin
|
|
8
|
+
import { defineNitroPlugin } from "nitropack/runtime/plugin";
|
|
9
|
+
import { useStorage } from "nitropack/runtime/storage";
|
|
10
|
+
import { useRuntimeConfig } from "#imports";
|
|
9
11
|
function createMountDriver(options) {
|
|
10
12
|
if (options?.driver) {
|
|
11
13
|
const compression = options?.compression;
|
|
@@ -50,7 +52,7 @@ function getCacheConfig(config, log) {
|
|
|
50
52
|
log.error(
|
|
51
53
|
`Failed to initialize global cache storage configuration. Neither new 'storefront.storage.cache' option nor legacy 'storefront.cache.provider' is set.`
|
|
52
54
|
);
|
|
53
|
-
return
|
|
55
|
+
return void 0;
|
|
54
56
|
}
|
|
55
57
|
return transformLegacyConfig(
|
|
56
58
|
config.storefront.cache?.provider,
|
|
@@ -67,7 +69,7 @@ function getSessionConfig(config, log) {
|
|
|
67
69
|
log.error(
|
|
68
70
|
`Failed to initialize global session storage configuration. Neither new 'storefront.storage.session' option nor legacy 'storefront.session.provider' is set.`
|
|
69
71
|
);
|
|
70
|
-
return
|
|
72
|
+
return void 0;
|
|
71
73
|
}
|
|
72
74
|
return transformLegacyConfig(
|
|
73
75
|
config.storefront.session?.provider,
|
|
@@ -87,7 +89,7 @@ function getShopCacheConfig(config, shop, log) {
|
|
|
87
89
|
log.error(
|
|
88
90
|
`Failed to initialize shop ${shop.shopId} cache storage configuration. Neither new 'storefront.storage.session' option nor legacy 'storefront.session.provider' is set.`
|
|
89
91
|
);
|
|
90
|
-
return
|
|
92
|
+
return void 0;
|
|
91
93
|
}
|
|
92
94
|
return transformLegacyConfig(
|
|
93
95
|
cacheProvider,
|
|
@@ -108,7 +110,7 @@ function getShopSessionConfig(config, shop, log) {
|
|
|
108
110
|
log.error(
|
|
109
111
|
`Failed to initialize shop ${shop.shopId} session storage configuration. Neither new 'storefront.storage.session' option nor legacy 'storefront.session.provider' is set.`
|
|
110
112
|
);
|
|
111
|
-
return
|
|
113
|
+
return void 0;
|
|
112
114
|
}
|
|
113
115
|
return transformLegacyConfig(
|
|
114
116
|
sessionProvider,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("nitropack").NitroAppPlugin;
|
|
2
2
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineNuxtPlugin, useRuntimeConfig } from "nuxt/app";
|
|
2
2
|
import { createConsola } from "consola/browser";
|
|
3
|
-
import createLog from "../createLog.
|
|
3
|
+
import createLog from "../createLog.js";
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
5
|
const config = useRuntimeConfig().public;
|
|
6
6
|
const log = createLog(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from "nuxt/app";
|
|
2
|
-
import { useCurrentShop } from "../composables/core/useCurrentShop.
|
|
3
|
-
import { useAvailableShops } from "../composables/core/useAvailableShops.
|
|
2
|
+
import { useCurrentShop } from "../composables/core/useCurrentShop.js";
|
|
3
|
+
import { useAvailableShops } from "../composables/core/useAvailableShops.js";
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
5
|
const currentShop = useCurrentShop();
|
|
6
6
|
const availableShops = useAvailableShops();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RpcContext, RpcMethodName, RpcMethodParameters, RpcMethodReturnType } from '@scayle/storefront-core';
|
|
2
2
|
import type { NuxtApp } from 'nuxt/app';
|
|
3
|
-
import type { PublicShopConfig } from '../../types/module';
|
|
3
|
+
import type { PublicShopConfig } from '../../types/module.js';
|
|
4
4
|
/**
|
|
5
5
|
* rpcCall can be used to invoke an RPC method either on the client or server
|
|
6
6
|
* It makes an HTTP request on the client and direct call on the server using $fetch
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type H3Event } from 'h3';
|
|
2
|
-
import type { ModuleBaseOptions, PublicShopConfig, ShopConfig, ShopConfigIndexed } from '../../../module';
|
|
3
|
-
import type {
|
|
2
|
+
import type { ModuleBaseOptions, PublicShopConfig, ShopConfig, ShopConfigIndexed } from '../../../module.js';
|
|
3
|
+
import type { NitroRuntimeConfigApp } from 'nitropack';
|
|
4
4
|
type BootstrapPath = {
|
|
5
5
|
path: string;
|
|
6
6
|
originalPath: string;
|
|
@@ -9,7 +9,11 @@ export declare function getBootstrapPath(event: H3Event): BootstrapPath;
|
|
|
9
9
|
export declare const getShopByPath: (event: H3Event, shops: ShopConfig[], appBasePath: string) => ShopConfig | undefined;
|
|
10
10
|
export declare const convertShopsToList: (shops: ShopConfig[] | ShopConfigIndexed) => ShopConfig[];
|
|
11
11
|
export declare function getApiBasePath(storefrontConfig: ModuleBaseOptions, shop: ShopConfig, baseUrl: string): string;
|
|
12
|
-
export declare function getCurrentShopConfigForRequest(event: H3Event, storefrontConfig: ModuleBaseOptions,
|
|
12
|
+
export declare function getCurrentShopConfigForRequest(event: H3Event, storefrontConfig: Pick<Extract<ModuleBaseOptions, {
|
|
13
|
+
shops: ShopConfigIndexed;
|
|
14
|
+
}>, 'shops' | 'shopSelector'> | Pick<Extract<ModuleBaseOptions, {
|
|
15
|
+
stores: ShopConfigIndexed;
|
|
16
|
+
}>, 'stores' | 'shopSelector'>, runtimeConfig: NitroRuntimeConfigApp): ShopConfig | undefined;
|
|
13
17
|
export declare function getPublicShopData(data: ShopConfig, currentShopId: number, apiBasePath: string, publicShopData?: (keyof ShopConfig)[]): PublicShopConfig & {
|
|
14
18
|
isActive: boolean;
|
|
15
19
|
};
|
|
@@ -59,12 +59,12 @@ export function getCurrentShopConfigForRequest(event, storefrontConfig, runtimeC
|
|
|
59
59
|
} else if (shopSelector === "domain") {
|
|
60
60
|
$shopConfig = getShopByDomain(event, shopsList);
|
|
61
61
|
} else if (shopSelector === "path") {
|
|
62
|
-
$shopConfig = getShopByPath(event, shopsList, runtimeConfig.
|
|
62
|
+
$shopConfig = getShopByPath(event, shopsList, runtimeConfig.baseURL);
|
|
63
63
|
} else if (shopSelector === "path_or_default") {
|
|
64
64
|
$shopConfig = getShopByPathOrDefault(
|
|
65
65
|
event,
|
|
66
66
|
shopsList,
|
|
67
|
-
runtimeConfig.
|
|
67
|
+
runtimeConfig.baseURL
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
return $shopConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcContext, Cache, ShopUser } from '@scayle/storefront-core';
|
|
2
|
-
import type { PublicShopConfig } from '../../../module';
|
|
2
|
+
import type { PublicShopConfig } from '../../../module.js';
|
|
3
3
|
declare module 'h3' {
|
|
4
4
|
interface H3EventContext {
|
|
5
5
|
$rpcContext: RpcContext;
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
useSession,
|
|
6
6
|
unsignCookie
|
|
7
7
|
} from "@scayle/h3-session";
|
|
8
|
-
import { buildContext } from "../../context.
|
|
9
|
-
import { useCacheStorage, useSessionStorage } from "../utils/cacheStorage.
|
|
8
|
+
import { buildContext } from "../../context.js";
|
|
9
|
+
import { useCacheStorage, useSessionStorage } from "../utils/cacheStorage.js";
|
|
10
10
|
import {
|
|
11
11
|
convertShopsToList,
|
|
12
12
|
getCurrentShopConfigForRequest,
|
|
13
13
|
getPublicShopData,
|
|
14
14
|
getBootstrapPath,
|
|
15
15
|
getApiBasePath
|
|
16
|
-
} from "./bootstrap
|
|
17
|
-
import { useRedirects } from "./redirects.
|
|
16
|
+
} from "./bootstrap-utils.js";
|
|
17
|
+
import { useRedirects } from "./redirects.js";
|
|
18
18
|
import { useRuntimeConfig } from "#imports";
|
|
19
19
|
const generateSessionId = (event) => {
|
|
20
20
|
let userId;
|
|
@@ -152,7 +152,7 @@ export default defineEventHandler(async (event) => {
|
|
|
152
152
|
const $shopConfig = getCurrentShopConfigForRequest(
|
|
153
153
|
event,
|
|
154
154
|
$storefrontConfig,
|
|
155
|
-
config
|
|
155
|
+
config.app
|
|
156
156
|
);
|
|
157
157
|
if (!$shopConfig) {
|
|
158
158
|
event.context.$log.debug(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sendRedirect, getRequestURL } from "h3";
|
|
2
2
|
import { UnstorageCache } from "@scayle/storefront-core/dist/cache/providers/unstorage";
|
|
3
|
-
import { getRedirectLookupUrls, getTargetLocation } from "./redirects.utils.
|
|
3
|
+
import { getRedirectLookupUrls, getTargetLocation } from "./redirects.utils.js";
|
|
4
4
|
import { useRuntimeConfig } from "#imports";
|
|
5
5
|
const REDIS_REDIRECT_PREFIX = ":REDIRECT";
|
|
6
6
|
const REDIRECT_NOT_SET = "REDIRECT_NOT_SET";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Log } from '@scayle/storefront-core';
|
|
2
2
|
import { UnstorageCache } from '@scayle/storefront-core/dist/cache/providers/unstorage';
|
|
3
3
|
import { type SessionStore } from '@scayle/h3-session';
|
|
4
|
-
import type { SessionConfig } from '../../../types/module';
|
|
4
|
+
import type { SessionConfig } from '../../../types/module.js';
|
|
5
5
|
export declare const STORAGE_MOUNT_BASE = "storefront";
|
|
6
6
|
export declare const STORAGE_MOUNT_CACHE = "storefront-cache";
|
|
7
7
|
export declare const STORAGE_MOUNT_SESSION = "storefront-session";
|