@hanzo/commerce 6.1.9 → 6.1.11

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/index.ts CHANGED
@@ -2,7 +2,7 @@ export * from './service/context'
2
2
  export * from './components'
3
3
  export type { StandaloneServiceOptions as ServiceOptions } from './service/impls/standalone/standalone-service'
4
4
  export { useSyncSkuParamWithCurrentItem, getFacetValuesMutator, formatCurrencyValue } from './util'
5
- //export { default as SEP } from './util/sep'
5
+ export { PROMO_CODES } from './util/promo-codes'
6
6
 
7
7
  export const sep = {
8
8
  TOK: '-',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "6.1.9",
3
+ "version": "6.1.11",
4
4
  "description": "e-commerce framework.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
package/util/index.ts CHANGED
@@ -20,7 +20,7 @@ export function unslugify(str: string) {
20
20
  }
21
21
 
22
22
 
23
- export function formatCurrencyValue(price: number): string {
23
+ export const formatCurrencyValue = (price: number): string => {
24
24
  const str = price.toLocaleString('en-US', {
25
25
  style: 'currency',
26
26
  currency: 'USD',
@@ -42,5 +42,6 @@ const getPromoFromApi = async (code: string) => {
42
42
  }
43
43
 
44
44
  export {
45
- getPromoFromApi as default
45
+ getPromoFromApi as default,
46
+ PROMO_CODES
46
47
  }