swell-js 5.9.2 → 5.9.3
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 +3 -2
- package/dist/attributes.mjs +1 -1
- package/dist/cache.mjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/cart.mjs +1 -1
- package/dist/categories.mjs +1 -1
- package/dist/cookie.mjs +1 -1
- package/dist/{index.3949a230.mjs → index.76eb52e5.mjs} +28 -0
- package/dist/index.mjs +1 -1
- package/dist/payment.mjs +1 -1
- package/dist/products.mjs +1 -1
- package/dist/settings.mjs +1 -1
- package/dist/subscriptions.mjs +1 -1
- package/dist/swell.cjs +30 -1
- package/dist/swell.cjs.map +1 -1
- package/dist/swell.umd.min.js +30 -1
- package/dist/swell.umd.min.js.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +7 -0
package/dist/utils/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { f as find, P as findIndex, g as get, Q as stringifyQuery, t as toNumber } from '../find.ba551a2e.mjs';
|
|
2
|
-
export { o as base64Encode, f as camelCase, c as cloneDeep, d as defaultMethods, q as getLocationParams, k as isEmpty, h as isEqual, j as isFunction, n as isLiveMode, e as isObject, i as isServer, l as loadScript, C as map, m as merge, p as pick, r as reduce, w as removeUrlParams, s as set, g as snakeCase, t as toCamel, a as toCamelPath, B as toLower, b as toSnake, A as trimBoth, x as trimEnd, z as trimStart, u as uniq, v as vaultRequest } from '../index.
|
|
2
|
+
export { o as base64Encode, f as camelCase, c as cloneDeep, d as defaultMethods, q as getLocationParams, k as isEmpty, h as isEqual, j as isFunction, n as isLiveMode, e as isObject, i as isServer, l as loadScript, C as map, m as merge, p as pick, r as reduce, w as removeUrlParams, s as set, g as snakeCase, t as toCamel, a as toCamelPath, B as toLower, b as toSnake, A as trimBoth, x as trimEnd, z as trimStart, u as uniq, v as vaultRequest } from '../index.76eb52e5.mjs';
|
|
3
3
|
export { r as round } from '../round.c68b8be5.mjs';
|
|
4
4
|
import 'deepmerge';
|
|
5
5
|
import 'fast-case';
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -127,6 +127,13 @@ export interface InitOptions<C extends 'snake' | 'camel' = 'snake'> {
|
|
|
127
127
|
* and payment integrations such as Google Pay and Apple Pay.
|
|
128
128
|
*/
|
|
129
129
|
updateCart?: (input: object) => Promise<CartCase[C] | null>;
|
|
130
|
+
/**
|
|
131
|
+
* Returns a captcha token to attach to create-intent requests. The host
|
|
132
|
+
* owns the captcha widget and the token's lifecycle; swell-js only forwards
|
|
133
|
+
* the resolved token. Reject (or throw) to abort the intent, e.g. when the
|
|
134
|
+
* challenge times out or fails.
|
|
135
|
+
*/
|
|
136
|
+
getCaptchaToken?: () => Promise<string | null | undefined>;
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
export interface InitOptionsCamel extends InitOptions<'camel'> {
|