Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(nuxt-module): accept nuxt plugin mode from filename (#1865)
Browse files Browse the repository at this point in the history
* fix(nuxt-module): accept nuxt plugin mode from filename

* chore: tests

* chore: cleanup

* chore: lint

* chore: types
  • Loading branch information
mkucmus authored Apr 26, 2022
1 parent 6339c17 commit 89b6b0d
Show file tree
Hide file tree
Showing 13 changed files with 209 additions and 191 deletions.
2 changes: 1 addition & 1 deletion api/composables.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ export function useBreadcrumbs(params?: {
export function useCart(): IUseCart;

// @beta
export function useCartItem({ cartItem }: {
export function useCartItem({ cartItem, }: {
cartItem: LineItem;
}): IUseCartItem;

Expand Down
2 changes: 1 addition & 1 deletion docs/landing/resources/api/composables.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Vue's composables to be used in Shopware frontend application.
| [useAddToCart(params)](./composables.useaddtocart.md) | <b><i>(BETA)</i></b> Add product to cart. Options - [IUseAddToCart](./composables.iuseaddtocart.md) |
| [useBreadcrumbs(params)](./composables.usebreadcrumbs.md) | <b><i>(BETA)</i></b> Composable for displaying and setting breadcrumbs for page. |
| [useCart()](./composables.usecart.md) | <b><i>(BETA)</i></b> Composable for cart management. Options - [IUseCart](./composables.iusecart.md) |
| [useCartItem({ cartItem })](./composables.usecartitem.md) | <b><i>(BETA)</i></b> Composable for cart item management. Options - [IUseCartItem](./composables.iusecartitem.md) |
| [useCartItem({ cartItem, })](./composables.usecartitem.md) | <b><i>(BETA)</i></b> Composable for cart item management. Options - [IUseCartItem](./composables.iusecartitem.md) |
| [useCheckout()](./composables.usecheckout.md) | <b><i>(BETA)</i></b> Composable for Checkout management. Options - [IUseCheckout](./composables.iusecheckout.md) |
| [useCms(params)](./composables.usecms.md) | <b><i>(BETA)</i></b> |
| [useCountries()](./composables.usecountries.md) | <b><i>(BETA)</i></b> |
Expand Down
4 changes: 2 additions & 2 deletions docs/landing/resources/api/composables.usecartitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Composable for cart item management. Options - [IUseCartItem](./composables.iuse
<b>Signature:</b>

```typescript
export declare function useCartItem({ cartItem }: {
export declare function useCartItem({ cartItem, }: {
cartItem: LineItem;
}): IUseCartItem;
```
Expand All @@ -21,7 +21,7 @@ export declare function useCartItem({ cartItem }: {

| Parameter | Type | Description |
| --- | --- | --- |
| { cartItem } | { cartItem: LineItem; } | |
| { cartItem, } | { cartItem: LineItem; } | |

<b>Returns:</b>

Expand Down
2 changes: 1 addition & 1 deletion packages/composables/__tests__/useCart.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ describe("Composables - useCart", () => {
stateCart.value = {
lineItems: [
{ quantity: 3, type: "product", referencedId: "some-item-id" },
{ referencedId: ""}
{ referencedId: "" },
],
};
const { getProductItemsSeoUrlsData } = useCart();
Expand Down
Loading

1 comment on commit 89b6b0d

@vercel
Copy link

@vercel vercel bot commented on 89b6b0d Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.