swell-js 3.24.1 → 3.24.2
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.14617c65.mjs → api.10709a76.mjs} +1 -1
- package/dist/api.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/swell.cjs +1 -1
- package/dist/swell.umd.min.js +1 -1
- package/package.json +1 -1
- package/types/cart/snake.d.ts +1 -1
- package/types/index.d.ts +4 -2
package/dist/api.mjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/swell.cjs
CHANGED
package/dist/swell.umd.min.js
CHANGED
|
@@ -14318,7 +14318,7 @@
|
|
|
14318
14318
|
previewContent: null
|
|
14319
14319
|
};
|
|
14320
14320
|
const api = {
|
|
14321
|
-
version: "3.24.
|
|
14321
|
+
version: "3.24.2",
|
|
14322
14322
|
options,
|
|
14323
14323
|
request,
|
|
14324
14324
|
init(store, key, opt = {}) {
|
package/package.json
CHANGED
package/types/cart/snake.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -93,6 +93,8 @@ export interface InitOptions {
|
|
|
93
93
|
useCamelCase?: boolean;
|
|
94
94
|
url?: string;
|
|
95
95
|
vaultUrl?: string;
|
|
96
|
+
setCookie?: (key: string, value: string) => void;
|
|
97
|
+
getCookie?: (key: string) => string | undefined;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
export interface ResultsResponse<T> {
|
|
@@ -137,7 +139,7 @@ export namespace account {
|
|
|
137
139
|
function getAddresses(input: object): Promise<Address>;
|
|
138
140
|
function getCards(input: object): Promise<Card[]>;
|
|
139
141
|
function getOrder(id: string): Promise<Order>;
|
|
140
|
-
function getOrders(): ResultsResponse<
|
|
142
|
+
function getOrders(): Promise<ResultsResponse<Order>>;
|
|
141
143
|
function listAddresses(): Promise<ResultsResponse<Address>>;
|
|
142
144
|
function listCards(): Promise<Card[]>;
|
|
143
145
|
function listOrders(input?: object): Promise<ResultsResponse<Order>>;
|
|
@@ -358,4 +360,4 @@ export function get(url: string, query?: Query): Promise<unknown>;
|
|
|
358
360
|
|
|
359
361
|
export function put(url: string, query?: Query): Promise<unknown>;
|
|
360
362
|
|
|
361
|
-
export function post(url: string, query?: Query): Promise<unknown>;
|
|
363
|
+
export function post(url: string, query?: Query): Promise<unknown>;
|