@scayle/storefront-nuxt 7.52.0 → 7.53.0
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 +8 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/module.d.mts +2 -2
- package/dist/module.d.ts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -5
- package/dist/rpc.d.mts +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/runtime/plugin/log.client.mjs +5 -1
- package/dist/shared/{storefront-nuxt.8b6c06b3.d.mts → storefront-nuxt.32ffc293.d.mts} +6 -5
- package/dist/shared/{storefront-nuxt.8b6c06b3.d.ts → storefront-nuxt.32ffc293.d.ts} +6 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.53.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Nest public `runtimeConfig` properties under the `storefront` key
|
|
8
|
+
|
|
9
|
+
Breaking: `useRuntimeConfig().public.log` and `useRuntimeConfig().public.auth` should be replaced by `useRuntimeConfig().public.storefront.log` and `useRuntimeConfig().public.storefront.log`
|
|
10
|
+
|
|
3
11
|
## 7.52.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.
|
|
1
|
+
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.mjs';
|
|
2
2
|
export { rpcCall } from './rpc.mjs';
|
|
3
3
|
export * from '@scayle/storefront-core';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.
|
|
1
|
+
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.js';
|
|
2
2
|
export { rpcCall } from './rpc.js';
|
|
3
3
|
export * from '@scayle/storefront-core';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
package/dist/module.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { M as ModuleOptions } from './shared/storefront-nuxt.
|
|
3
|
-
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
+
import { M as ModuleOptions } from './shared/storefront-nuxt.32ffc293.mjs';
|
|
3
|
+
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.mjs';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
|
5
5
|
import '@scayle/unstorage-compression-driver';
|
|
6
6
|
import 'unstorage';
|
package/dist/module.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { M as ModuleOptions } from './shared/storefront-nuxt.
|
|
3
|
-
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
+
import { M as ModuleOptions } from './shared/storefront-nuxt.32ffc293.js';
|
|
3
|
+
export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.js';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
|
5
5
|
import '@scayle/unstorage-compression-driver';
|
|
6
6
|
import 'unstorage';
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -100,12 +100,10 @@ const module = defineNuxtModule({
|
|
|
100
100
|
nuxt.options.runtimeConfig.storefront,
|
|
101
101
|
options
|
|
102
102
|
);
|
|
103
|
-
nuxt.options.runtimeConfig.
|
|
104
|
-
|
|
103
|
+
nuxt.options.runtimeConfig.public.storefront = {
|
|
104
|
+
log: options.log,
|
|
105
|
+
auth: options.auth
|
|
105
106
|
};
|
|
106
|
-
nuxt.options.runtimeConfig.public.publicShopData = options.publicShopData;
|
|
107
|
-
nuxt.options.runtimeConfig.public.log = options.log;
|
|
108
|
-
nuxt.options.runtimeConfig.public.auth = options.auth;
|
|
109
107
|
extendViteConfig((config) => {
|
|
110
108
|
config.optimizeDeps = config.optimizeDeps || {};
|
|
111
109
|
config.optimizeDeps.include = config.optimizeDeps.include || [];
|
package/dist/rpc.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RpcMethodName, RpcMethodParameters, RpcMethodReturnType, RpcContext } from '@scayle/storefront-core';
|
|
2
2
|
import { NuxtApp } from 'nuxt/app';
|
|
3
|
-
import { P as PublicShopConfig } from './shared/storefront-nuxt.
|
|
3
|
+
import { P as PublicShopConfig } from './shared/storefront-nuxt.32ffc293.mjs';
|
|
4
4
|
import '@scayle/unstorage-compression-driver';
|
|
5
5
|
import 'unstorage';
|
|
6
6
|
|
package/dist/rpc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RpcMethodName, RpcMethodParameters, RpcMethodReturnType, RpcContext } from '@scayle/storefront-core';
|
|
2
2
|
import { NuxtApp } from 'nuxt/app';
|
|
3
|
-
import { P as PublicShopConfig } from './shared/storefront-nuxt.
|
|
3
|
+
import { P as PublicShopConfig } from './shared/storefront-nuxt.32ffc293.js';
|
|
4
4
|
import '@scayle/unstorage-compression-driver';
|
|
5
5
|
import 'unstorage';
|
|
6
6
|
|
|
@@ -3,7 +3,11 @@ import { createConsola } from "consola/browser";
|
|
|
3
3
|
import createLog from "../createLog.mjs";
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
5
|
const config = useRuntimeConfig().public;
|
|
6
|
-
const log = createLog(
|
|
6
|
+
const log = createLog(
|
|
7
|
+
createConsola,
|
|
8
|
+
config.storefront.log.name,
|
|
9
|
+
config.storefront.log.level
|
|
10
|
+
);
|
|
7
11
|
const coreLog = log.space("sfc");
|
|
8
12
|
coreLog.debug("Attached client-side logger");
|
|
9
13
|
addClientSideErrorHandling(log, nuxtApp.vueApp);
|
|
@@ -175,12 +175,13 @@ declare module '@nuxt/schema' {
|
|
|
175
175
|
storefront: ModuleOptions;
|
|
176
176
|
}
|
|
177
177
|
interface PublicRuntimeConfig {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
storefront: {
|
|
179
|
+
log: {
|
|
180
|
+
name: string;
|
|
181
|
+
level: LogLevel;
|
|
182
|
+
};
|
|
183
|
+
auth: AuthenticationConfig;
|
|
182
184
|
};
|
|
183
|
-
auth: AuthenticationConfig;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
187
|
|
|
@@ -175,12 +175,13 @@ declare module '@nuxt/schema' {
|
|
|
175
175
|
storefront: ModuleOptions;
|
|
176
176
|
}
|
|
177
177
|
interface PublicRuntimeConfig {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
storefront: {
|
|
179
|
+
log: {
|
|
180
|
+
name: string;
|
|
181
|
+
level: LogLevel;
|
|
182
|
+
};
|
|
183
|
+
auth: AuthenticationConfig;
|
|
182
184
|
};
|
|
183
|
-
auth: AuthenticationConfig;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
187
|
|
package/package.json
CHANGED