@mframework/layer-commerce 0.0.5 → 0.0.7

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.
@@ -1,6 +1,6 @@
1
1
  import { useCustomer } from '~/composables/useCustomer/useCustomer';
2
2
 
3
- vi.mock('@mframework/sdk', () => ({
3
+ vi.mock('@mframework/core', () => ({
4
4
  sdk: {
5
5
  commerce: {
6
6
  getCustomer: vi.fn(() => ({
@@ -2,7 +2,7 @@ import { vi } from 'vitest';
2
2
  import { useProductReviews } from '~/composables/useProductReviews';
3
3
  import { mockProductReviews } from './productReviews.mock';
4
4
 
5
- vi.mock('@mframework/sdk', () => ({
5
+ vi.mock('@mframework/core', () => ({
6
6
  sdk: {
7
7
  commerce: {
8
8
  getProductReviews: vi.fn(() => mockProductReviews),
@@ -8,7 +8,7 @@ declare global {
8
8
  }
9
9
  }
10
10
 
11
- import { sdk } from '@mframework/sdk'
11
+ import { sdk } from '@mframework/core'
12
12
 
13
13
  export function createClient(provider?: string, config?: any) {
14
14
  // Prefer provider-specific client creation if available on the SDK.
@@ -1,5 +1,5 @@
1
1
  import * as CommercePkg from '~/types';
2
- import { sdk } from '@mframework/sdk';
2
+ import { sdk } from '@mframework/core';
3
3
  import imports from '../types';
4
4
  import { normalizeProductsQueryOutput, normalizeProduct } from '../normalizers/ProductList.type';
5
5
  import { normalizeProductsResponse } from '../normalizers/ProductList.query';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mframework/layer-commerce",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Commerce Layer for the M Framework",
5
5
  "keywords": [
6
6
  "commerce",
@@ -23,8 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@better-auth/stripe": "^1.4.15",
26
- "@mframework/core": "^0.0.1",
27
- "@mframework/sdk": "^0.0.2",
26
+ "@mframework/core": "^0.0.4",
28
27
  "@polar-sh/sdk": "^0.42.2",
29
28
  "@storefront-ui/nuxt": "^3.1.1",
30
29
  "@tilework/opus": "^0.0.12",