swell-js 5.4.0 → 5.4.1
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/dist/api.mjs +1 -1
- package/dist/swell.cjs +1 -1
- package/dist/swell.umd.min.js +1 -1
- package/package.json +1 -1
- package/types/discount/index.ts +7 -1
- package/types/product/index.ts +2 -0
package/dist/api.mjs
CHANGED
package/dist/swell.cjs
CHANGED
|
@@ -12172,7 +12172,7 @@ function swell(initStore = undefined, initKey, initOptions = {}) {
|
|
|
12172
12172
|
const api = {};
|
|
12173
12173
|
|
|
12174
12174
|
Object.assign(api, {
|
|
12175
|
-
version: '5.4.
|
|
12175
|
+
version: '5.4.1',
|
|
12176
12176
|
options,
|
|
12177
12177
|
request,
|
|
12178
12178
|
|
package/dist/swell.umd.min.js
CHANGED
|
@@ -17617,7 +17617,7 @@
|
|
|
17617
17617
|
const api = {};
|
|
17618
17618
|
|
|
17619
17619
|
Object.assign(api, {
|
|
17620
|
-
version: '5.4.
|
|
17620
|
+
version: '5.4.1',
|
|
17621
17621
|
options,
|
|
17622
17622
|
request,
|
|
17623
17623
|
|
package/package.json
CHANGED
package/types/discount/index.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type {
|
|
2
|
+
Discount,
|
|
3
|
+
DiscountRule,
|
|
4
|
+
DiscountRuleBuyGetItem,
|
|
5
|
+
DiscountRuleBuyGetProduct,
|
|
6
|
+
DiscountRuleBuyGetCategory,
|
|
7
|
+
} from './snake';
|
|
2
8
|
|
|
3
9
|
export type {
|
|
4
10
|
DiscountCamel,
|
package/types/product/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { ResultsResponse, ResultsResponseCamel } from '../index';
|
|
|
2
2
|
import type { MakeCase } from '../utils';
|
|
3
3
|
|
|
4
4
|
import type {
|
|
5
|
+
ContentObject,
|
|
5
6
|
Product,
|
|
6
7
|
Variant,
|
|
7
8
|
Price,
|
|
@@ -49,6 +50,7 @@ export interface PurchaseOptions {
|
|
|
49
50
|
export type ProductCase = MakeCase<Product, ProductCamel>;
|
|
50
51
|
|
|
51
52
|
export type {
|
|
53
|
+
ContentObject,
|
|
52
54
|
Product,
|
|
53
55
|
Variant,
|
|
54
56
|
Price,
|