@basis-theory/basis-theory-js 1.73.1 → 1.75.0
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/package.json
CHANGED
|
@@ -33,11 +33,10 @@ class BasisTheoryProxy extends _service.BasisTheoryService {
|
|
|
33
33
|
proxyRequest(method, options) {
|
|
34
34
|
var _options$path2;
|
|
35
35
|
|
|
36
|
-
const extractor = options !== null && options !== void 0 && options.includeResponseHeaders ? _common.dataAndHeadersExtractor : _common.dataExtractor;
|
|
37
|
-
|
|
38
36
|
if (method === 'post' || method === 'put' || method === 'patch') {
|
|
39
37
|
var _options$path, _options$body;
|
|
40
38
|
|
|
39
|
+
const extractor = options !== null && options !== void 0 && options.includeResponseHeaders && method === 'post' ? _common.dataAndHeadersExtractor : _common.dataExtractor;
|
|
41
40
|
return this.client[method]((_options$path = options === null || options === void 0 ? void 0 : options.path) !== null && _options$path !== void 0 ? _options$path : '', (_options$body = options === null || options === void 0 ? void 0 : options.body) !== null && _options$body !== void 0 ? _options$body : undefined, (0, _common.createRequestConfig)(options, {
|
|
42
41
|
transformRequest: _common.proxyRaw,
|
|
43
42
|
transformResponse: _common.proxyRaw
|
|
@@ -47,7 +46,7 @@ class BasisTheoryProxy extends _service.BasisTheoryService {
|
|
|
47
46
|
return this.client[method]((_options$path2 = options === null || options === void 0 ? void 0 : options.path) !== null && _options$path2 !== void 0 ? _options$path2 : '/', (0, _common.createRequestConfig)(options, {
|
|
48
47
|
transformRequest: _common.proxyRaw,
|
|
49
48
|
transformResponse: _common.proxyRaw
|
|
50
|
-
})).then(
|
|
49
|
+
})).then(_common.dataExtractor);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
}
|
|
@@ -6,6 +6,7 @@ interface BaseElement<UpdateOptions, ElementEvents> {
|
|
|
6
6
|
readonly mounted: boolean;
|
|
7
7
|
readonly metadata: ElementMetadata;
|
|
8
8
|
mount(selector: string): Promise<void>;
|
|
9
|
+
mount(element: Element): Promise<void>;
|
|
9
10
|
update(options: UpdateOptions): Promise<void>;
|
|
10
11
|
clear(): void;
|
|
11
12
|
focus(): void;
|