Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopware-pwa/composables-next

Package Overview
Dependencies
Maintainers
0
Versions
747
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-pwa/composables-next - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

src/useDefaultOrderAssociations.test.ts

8

package.json
{
"name": "@shopware-pwa/composables-next",
"version": "1.1.1",
"version": "1.2.0",
"description": "Shopware Frontends composables for Vue",

@@ -57,3 +57,3 @@ "author": "Shopware",

"scule": "1.3.0",
"@shopware-pwa/helpers-next": "1.0.1",
"@shopware-pwa/helpers-next": "1.0.2",
"@shopware/api-client": "1.0.2"

@@ -63,3 +63,3 @@ },

"@nuxt/kit": "3.12.4",
"@vitest/coverage-v8": "2.0.4",
"@vitest/coverage-v8": "2.0.5",
"@vue/test-utils": "2.4.6",

@@ -69,3 +69,3 @@ "happy-dom": "14.12.3",

"unbuild": "2.0.0",
"vitest": "2.0.4",
"vitest": "2.0.5",
"vue": "3.4.35",

@@ -72,0 +72,0 @@ "eslint-config-shopware": "1.0.0",

@@ -154,14 +154,11 @@ # shopware/frontends - composables-next

### Latest changes: 1.1.1
### Latest changes: 1.2.0
### Patch Changes
### Minor Changes
- [#1074](https://github.com/shopware/frontends/pull/1074) [`b688163`](https://github.com/shopware/frontends/commit/b68816391ee8ed1ac94a6462a2a016d708f259b4) Thanks [@mkucmus](https://github.com/mkucmus)! - `useOrderDetails` - Load shipping address for the order details. Ivoking a `loadOrderDetails` method now will fetch also a `shippingOrderAddress` association.
- [#1194](https://github.com/shopware/frontends/pull/1194) [`aa8f5a4`](https://github.com/shopware/frontends/commit/aa8f5a4d2eabce1d6119e31af8c7479911d7b07b) Thanks [@patzick](https://github.com/patzick)! - New `useDefaultOrderAssociations` composable to be used or overriden separately in user project. This composable just returns default associations object.
- [#1089](https://github.com/shopware/frontends/pull/1089) [`db7c93f`](https://github.com/shopware/frontends/commit/db7c93ff8cbb581221c11a492e77068af8faa8d6) Thanks [@mkucmus](https://github.com/mkucmus)! - Migrate eslint config to flat format
### Patch Changes
- [#1099](https://github.com/shopware/frontends/pull/1099) [`3bde5fe`](https://github.com/shopware/frontends/commit/3bde5fe6d4a9c31d380defc05a7903cf99cb8136) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - `useCart` - Fixed adding promotion code
- Updated dependencies [[`b688163`](https://github.com/shopware/frontends/commit/b68816391ee8ed1ac94a6462a2a016d708f259b4), [`db7c93f`](https://github.com/shopware/frontends/commit/db7c93ff8cbb581221c11a492e77068af8faa8d6), [`b688163`](https://github.com/shopware/frontends/commit/b68816391ee8ed1ac94a6462a2a016d708f259b4)]:
- @shopware-pwa/helpers-next@1.0.1
- @shopware/api-client@1.0.2
- Updated dependencies [[`2e4c887`](https://github.com/shopware/frontends/commit/2e4c8872060fb2ebabe5b89d92761994a2ed8128)]:
- @shopware-pwa/helpers-next@1.0.2

@@ -36,2 +36,3 @@ import type { Schemas } from "#shopware";

export * from "./useCustomerPassword";
export * from "./useDefaultOrderAssociations";
export * from "./useInternationalization";

@@ -38,0 +39,0 @@ export * from "./useLandingSearch";

import { computed, ref, inject, provide } from "vue";
import type { ComputedRef, Ref } from "vue";
import { defu } from "defu";
import { useShopwareContext } from "#imports";
import { useDefaultOrderAssociations, useShopwareContext } from "#imports";
import type { Schemas } from "#shopware";
/**
* Data for api requests to fetch all necessary data
*/
const orderAssociations: Schemas["Criteria"] & { checkPromotion?: boolean } = {
associations: {
stateMachineState: {},
lineItems: {
associations: {
cover: {},
downloads: {
associations: {
media: {},
},
},
},
},
addresses: {},
deliveries: {
associations: {
shippingMethod: {},
shippingOrderAddress: {},
stateMachineState: {},
},
},
transactions: {
associations: {
paymentMethod: {},
stateMachineState: {},
},
},
},
checkPromotion: true,
};
export type UseOrderDetailsReturn = {

@@ -174,2 +140,4 @@ /**

const orderAssociations = useDefaultOrderAssociations();
const paymentMethod = computed(

@@ -176,0 +144,0 @@ () => _sharedOrder.value?.transactions?.[0]?.paymentMethod,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc