@scayle/storefront-nuxt 8.7.2 → 8.8.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [Rpc] Add check for the existence of the rpc directory, in order to prevent errors when trying import custom Rpc's.
8
+
3
9
  ## 8.7.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig } from './shared/storefront-nuxt.a816664e.mjs';
2
+ export { ModuleHooks } from './module.mjs';
2
3
  export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
3
4
  export { extendPromise } from '../dist/runtime/utils/promise.js';
4
5
  export * from '../dist/runtime/utils/seo.js';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig } from './shared/storefront-nuxt.a816664e.js';
2
+ export { ModuleHooks } from './module.js';
2
3
  export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
3
4
  export { extendPromise } from '../dist/runtime/utils/promise.js';
4
5
  export * from '../dist/runtime/utils/seo.js';
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.7.2",
3
+ "version": "8.8.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { existsSync } from 'node:fs';
1
2
  import { defineNuxtModule, createResolver, extendViteConfig, addTypeTemplate, addPlugin, addImportsDir } from '@nuxt/kit';
2
3
  import { rpcMethods } from '@scayle/storefront-core';
3
4
  import { defu } from 'defu';
@@ -44,7 +45,7 @@ export default {
44
45
  }`;
45
46
  }
46
47
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
47
- const PACKAGE_VERSION = "8.7.2";
48
+ const PACKAGE_VERSION = "8.8.0";
48
49
  const logger = createConsola({
49
50
  fancy: true,
50
51
  formatOptions: {
@@ -286,10 +287,13 @@ const module = defineNuxtModule({
286
287
  (name) => !storefrontRpcMethodNames.includes(name)
287
288
  );
288
289
  });
289
- customRpcImports.push({
290
- source: appResolve(options.rpcDir ?? "./rpcMethods"),
291
- names: storefrontRpcMethodNames
292
- });
290
+ const rpcDir = appResolve(options.rpcDir ?? "./rpcMethods");
291
+ if (existsSync(rpcDir)) {
292
+ customRpcImports.push({
293
+ source: rpcDir,
294
+ names: storefrontRpcMethodNames
295
+ });
296
+ }
293
297
  validateRpcMethodOverrides(
294
298
  options.rpcMethodOverrides ?? [],
295
299
  customRpcImports.reduce(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.7.2",
4
+ "version": "8.8.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -99,7 +99,7 @@
99
99
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
100
100
  "@types/node": "22.13.1",
101
101
  "dprint": "0.49.0",
102
- "eslint": "9.19.0",
102
+ "eslint": "9.20.0",
103
103
  "eslint-formatter-gitlab": "5.1.0",
104
104
  "fishery": "2.2.3",
105
105
  "h3": "1.15.0",