@basis-theory/basis-theory-js 1.57.0 → 1.58.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/BasisTheory.d.ts +3 -1
- package/BasisTheory.js +11 -0
- package/README.md +1 -0
- package/common/constants.js +2 -1
- package/common/utils.d.ts +2 -2
- package/common/utils.js +9 -2
- package/elements/services/proxy.d.ts +5 -0
- package/elements/services/proxy.js +53 -0
- package/package.json +1 -1
- package/proxy/BasisTheoryProxy.d.ts +10 -0
- package/proxy/BasisTheoryProxy.js +53 -0
- package/proxy/index.d.ts +1 -0
- package/proxy/index.js +18 -0
- package/types/elements/elements.d.ts +2 -1
- package/types/elements/services/index.d.ts +1 -0
- package/types/elements/services/index.js +13 -0
- package/types/elements/services/proxy.d.ts +9 -0
- package/types/elements/services/proxy.js +1 -0
- package/types/sdk/sdk.d.ts +2 -1
- package/types/sdk/services/index.d.ts +1 -0
- package/types/sdk/services/index.js +13 -0
- package/types/sdk/services/proxy.d.ts +26 -0
- package/types/sdk/services/proxy.js +1 -0
package/BasisTheory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BasisTheoryElements, CardElement, CardNumberElement, CardExpirationDateElement, CardVerificationCodeElement, CreateCardElementOptions, CreateCardNumberElementOptions, CreateCardExpirationDateElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, TextElement, TokenizeData as ElementsTokenizeData, Tokens as ElementsTokens } from './types/elements';
|
|
2
2
|
import type { TokenizeData } from './types/models';
|
|
3
|
-
import type { Applications, BasisTheory as IBasisTheory, BasisTheoryInit, Logs, Permissions, ReactorFormulas, Reactors, RequestOptions, Tenants, Tokens, BasisTheoryInitOptions, BasisTheoryInitOptionsWithElements, BasisTheoryInitOptionsWithoutElements, Proxies } from './types/sdk';
|
|
3
|
+
import type { Applications, BasisTheory as IBasisTheory, BasisTheoryInit, Logs, Permissions, ReactorFormulas, Reactors, RequestOptions, Tenants, Tokens, BasisTheoryInitOptions, BasisTheoryInitOptionsWithElements, BasisTheoryInitOptionsWithoutElements, Proxies, Proxy } from './types/sdk';
|
|
4
4
|
export declare class BasisTheory implements BasisTheoryInit, IBasisTheory, BasisTheoryElements {
|
|
5
5
|
private _initStatus;
|
|
6
6
|
private _initOptions?;
|
|
@@ -14,6 +14,7 @@ export declare class BasisTheory implements BasisTheoryInit, IBasisTheory, Basis
|
|
|
14
14
|
private _reactors?;
|
|
15
15
|
private _permissions?;
|
|
16
16
|
private _proxies?;
|
|
17
|
+
private _proxy?;
|
|
17
18
|
init(apiKey: string | undefined, options?: BasisTheoryInitOptionsWithoutElements): Promise<IBasisTheory>;
|
|
18
19
|
init(apiKey: string | undefined, options: BasisTheoryInitOptionsWithElements): Promise<IBasisTheory & BasisTheoryElements>;
|
|
19
20
|
createElement(type: 'card', options?: CreateCardElementOptions): CardElement;
|
|
@@ -32,6 +33,7 @@ export declare class BasisTheory implements BasisTheoryInit, IBasisTheory, Basis
|
|
|
32
33
|
get reactors(): Reactors;
|
|
33
34
|
get permissions(): Permissions;
|
|
34
35
|
get proxies(): Proxies;
|
|
36
|
+
get proxy(): Proxy;
|
|
35
37
|
/**
|
|
36
38
|
* @deprecated
|
|
37
39
|
*/
|
package/BasisTheory.js
CHANGED
|
@@ -19,6 +19,8 @@ var _permissions = require("./permissions");
|
|
|
19
19
|
|
|
20
20
|
var _proxies = require("./proxies");
|
|
21
21
|
|
|
22
|
+
var _proxy = require("./proxy");
|
|
23
|
+
|
|
22
24
|
var _reactorFormulas = require("./reactor-formulas");
|
|
23
25
|
|
|
24
26
|
var _reactors = require("./reactors");
|
|
@@ -116,6 +118,11 @@ class BasisTheory {
|
|
|
116
118
|
baseURL: new URL(_common.CLIENT_BASE_PATHS.proxies, baseUrl).toString(),
|
|
117
119
|
appInfo
|
|
118
120
|
});
|
|
121
|
+
this._proxy = new _proxy.BasisTheoryProxy({
|
|
122
|
+
apiKey,
|
|
123
|
+
baseURL: new URL(_common.CLIENT_BASE_PATHS.proxy, baseUrl).toString(),
|
|
124
|
+
appInfo
|
|
125
|
+
});
|
|
119
126
|
this._initStatus = 'done';
|
|
120
127
|
} catch (error) {
|
|
121
128
|
this._initStatus = 'error';
|
|
@@ -189,6 +196,10 @@ class BasisTheory {
|
|
|
189
196
|
get proxies() {
|
|
190
197
|
return (0, _common.assertInit)(this._proxies);
|
|
191
198
|
}
|
|
199
|
+
|
|
200
|
+
get proxy() {
|
|
201
|
+
return (0, _common.assertInit)(this._proxy);
|
|
202
|
+
}
|
|
192
203
|
/* eslint-enable accessor-pairs */
|
|
193
204
|
|
|
194
205
|
/**
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Basis Theory JS SDK (aka BasisTheory.js)
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.org/package/@basis-theory/basis-theory-js)
|
|
4
|
+
[](https://www.npmjs.org/package/@basis-theory/basis-theory-js)
|
|
4
5
|
[](https://github.com/Basis-Theory/basis-theory-js/actions/workflows/release.yml)
|
|
5
6
|
|
|
6
7
|
The [Basis Theory](https://basistheory.com/) JS SDK
|
package/common/constants.js
CHANGED
|
@@ -29,7 +29,8 @@ const CLIENT_BASE_PATHS = {
|
|
|
29
29
|
reactorFormulas: 'reactor-formulas',
|
|
30
30
|
reactors: 'reactors',
|
|
31
31
|
permissions: 'permissions',
|
|
32
|
-
proxies: 'proxies'
|
|
32
|
+
proxies: 'proxies',
|
|
33
|
+
proxy: 'proxy'
|
|
33
34
|
};
|
|
34
35
|
exports.CLIENT_BASE_PATHS = CLIENT_BASE_PATHS;
|
|
35
36
|
const BROWSER_LIST = [{
|
package/common/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse, AxiosTransformer } from 'axios';
|
|
2
|
-
import type { ApplicationInfo, RequestOptions } from '../types/sdk';
|
|
2
|
+
import type { ApplicationInfo, ProxyRequestOptions, RequestOptions } from '../types/sdk';
|
|
3
3
|
declare const assertInit: <T>(prop: T) => NonNullable<T>;
|
|
4
4
|
declare const transformRequestSnakeCase: AxiosTransformer;
|
|
5
5
|
declare const proxyRaw: AxiosTransformer;
|
|
@@ -15,7 +15,7 @@ declare const transformAtomicResponseCamelCase: AxiosTransformer;
|
|
|
15
15
|
declare const dataExtractor: <T>(res: AxiosResponse<T>) => T;
|
|
16
16
|
declare const concatRequestTransformerWithDefault: (requestTransformer: AxiosTransformer | AxiosTransformer[]) => AxiosTransformer | AxiosTransformer[] | undefined;
|
|
17
17
|
declare const concatResponseTransformerWithDefault: (responseTransformer: AxiosTransformer | AxiosTransformer[]) => AxiosTransformer | AxiosTransformer[] | undefined;
|
|
18
|
-
declare const createRequestConfig: (options?: RequestOptions | undefined, transformers?: Pick<AxiosRequestConfig, "transformRequest" | "transformResponse"> | undefined) => AxiosRequestConfig | undefined;
|
|
18
|
+
declare const createRequestConfig: (options?: RequestOptions | ProxyRequestOptions | undefined, transformers?: Pick<AxiosRequestConfig, "transformRequest" | "transformResponse"> | undefined) => AxiosRequestConfig | undefined;
|
|
19
19
|
declare const errorInterceptor: (error: any) => void;
|
|
20
20
|
declare const getQueryParams: <Q>(query?: Q) => string;
|
|
21
21
|
declare const buildUserAgentString: (appInfo?: ApplicationInfo | undefined) => string;
|
package/common/utils.js
CHANGED
|
@@ -223,7 +223,9 @@ const createRequestConfig = (options, transformers) => {
|
|
|
223
223
|
|
|
224
224
|
const {
|
|
225
225
|
apiKey,
|
|
226
|
-
correlationId
|
|
226
|
+
correlationId,
|
|
227
|
+
query,
|
|
228
|
+
headers
|
|
227
229
|
} = options;
|
|
228
230
|
const apiKeyHeader = apiKey ? {
|
|
229
231
|
[_constants.API_KEY_HEADER]: apiKey
|
|
@@ -233,8 +235,13 @@ const createRequestConfig = (options, transformers) => {
|
|
|
233
235
|
} : {};
|
|
234
236
|
return {
|
|
235
237
|
headers: { ...apiKeyHeader,
|
|
236
|
-
...correlationIdHeader
|
|
238
|
+
...correlationIdHeader,
|
|
239
|
+
...(typeof headers !== 'undefined' && { ...headers
|
|
240
|
+
})
|
|
237
241
|
},
|
|
242
|
+
...(typeof query !== 'undefined' && {
|
|
243
|
+
params: query
|
|
244
|
+
}),
|
|
238
245
|
...((transformers === null || transformers === void 0 ? void 0 : transformers.transformRequest) !== undefined ? {
|
|
239
246
|
transformRequest: concatRequestTransformerWithDefault(transformers.transformRequest)
|
|
240
247
|
} : {}),
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BasisTheoryProxy } from '../../proxy';
|
|
2
|
+
import type { Proxy as ElementsProxy, BasisTheoryElementsInternal } from '../../types/elements';
|
|
3
|
+
import type { Proxy } from '../../types/sdk';
|
|
4
|
+
declare const delegateProxy: (elements?: BasisTheoryElementsInternal | undefined) => new (options: import("../../service/types").BasisTheoryServiceOptions) => ElementsProxy & Proxy;
|
|
5
|
+
export { delegateProxy };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.delegateProxy = void 0;
|
|
7
|
+
|
|
8
|
+
var _proxy = require("./../../proxy");
|
|
9
|
+
|
|
10
|
+
const delegateProxy = elements => class BasisTheoryProxyElementsDelegate extends _proxy.BasisTheoryProxy {
|
|
11
|
+
get(options) {
|
|
12
|
+
if (elements !== undefined) {
|
|
13
|
+
return elements.proxy.get(options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return super.get(options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
post(options) {
|
|
20
|
+
if (elements !== undefined) {
|
|
21
|
+
return elements.proxy.post(options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return super.post(options);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
put(options) {
|
|
28
|
+
if (elements !== undefined) {
|
|
29
|
+
return elements.proxy.put(options);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return super.put(options);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
patch(options) {
|
|
36
|
+
if (elements !== undefined) {
|
|
37
|
+
return elements.proxy.patch(options);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return super.patch(options);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
delete(options) {
|
|
44
|
+
if (elements !== undefined) {
|
|
45
|
+
return elements.proxy.delete(options);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return super.delete(options);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.delegateProxy = delegateProxy;
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BasisTheoryService } from '../service';
|
|
2
|
+
import type { Proxy, ProxyRequestOptions } from '../types/sdk';
|
|
3
|
+
export declare class BasisTheoryProxy extends BasisTheoryService implements Proxy {
|
|
4
|
+
get(options?: ProxyRequestOptions): Promise<any>;
|
|
5
|
+
post(options?: ProxyRequestOptions): Promise<any>;
|
|
6
|
+
put(options?: ProxyRequestOptions): Promise<any>;
|
|
7
|
+
patch(options?: ProxyRequestOptions): Promise<any>;
|
|
8
|
+
delete(options?: ProxyRequestOptions): Promise<any>;
|
|
9
|
+
private proxyRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BasisTheoryProxy = void 0;
|
|
7
|
+
|
|
8
|
+
var _common = require("./../common");
|
|
9
|
+
|
|
10
|
+
var _service = require("./../service");
|
|
11
|
+
|
|
12
|
+
class BasisTheoryProxy extends _service.BasisTheoryService {
|
|
13
|
+
get(options) {
|
|
14
|
+
return this.proxyRequest('get', options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
post(options) {
|
|
18
|
+
return this.proxyRequest('post', options);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
put(options) {
|
|
22
|
+
return this.proxyRequest('put', options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
patch(options) {
|
|
26
|
+
return this.proxyRequest('patch', options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
delete(options) {
|
|
30
|
+
return this.proxyRequest('delete', options);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
proxyRequest(method, options) {
|
|
34
|
+
var _options$path2;
|
|
35
|
+
|
|
36
|
+
if (method === 'post' || method === 'put' || method === 'patch') {
|
|
37
|
+
var _options$path, _options$body;
|
|
38
|
+
|
|
39
|
+
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, {
|
|
40
|
+
transformRequest: _common.proxyRaw,
|
|
41
|
+
transformResponse: _common.proxyRaw
|
|
42
|
+
})).then(_common.dataExtractor);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
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, {
|
|
46
|
+
transformRequest: _common.proxyRaw,
|
|
47
|
+
transformResponse: _common.proxyRaw
|
|
48
|
+
})).then(_common.dataExtractor);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
exports.BasisTheoryProxy = BasisTheoryProxy;
|
package/proxy/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BasisTheoryProxy';
|
package/proxy/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _BasisTheoryProxy = require("./BasisTheoryProxy");
|
|
8
|
+
|
|
9
|
+
Object.keys(_BasisTheoryProxy).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _BasisTheoryProxy[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _BasisTheoryProxy[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ElementEventListener, EventType, Subscription, TextElementEvents, CardElementEvents, CardNumberElementEvents, CardExpirationDateElementEvents, CardVerificationCodeElementEvents } from './events';
|
|
2
2
|
import type { CreateCardElementOptions, CreateCardExpirationDateElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, UpdateCardElementOptions, CreateCardNumberElementOptions, UpdateCardNumberElementOptions, UpdateCardExpirationDateElementOptions, UpdateCardVerificationCodeElementOptions, UpdateTextElementOptions, CardElementValue, CardExpirationDateValue } from './options';
|
|
3
|
-
import type { Tokenize, Tokens } from './services';
|
|
3
|
+
import type { Tokenize, Tokens, Proxy } from './services';
|
|
4
4
|
import { DataElementReference } from './shared';
|
|
5
5
|
interface BaseElement<UpdateOptions, ElementEvents> {
|
|
6
6
|
readonly mounted: boolean;
|
|
@@ -36,6 +36,7 @@ declare type ElementWrapper<T extends BaseElement<any, any> = BaseElement<any, a
|
|
|
36
36
|
declare type ElementValue = TextElement | CardElement | CardNumberElement | CardExpirationDateElement | CardVerificationCodeElement | ElementWrapper;
|
|
37
37
|
interface BasisTheoryElements extends Tokenize {
|
|
38
38
|
tokens: Tokens;
|
|
39
|
+
proxy: Proxy;
|
|
39
40
|
createElement(type: 'card', options?: CreateCardElementOptions): CardElement;
|
|
40
41
|
createElement(type: 'text', options: CreateTextElementOptions): TextElement;
|
|
41
42
|
createElement(type: 'cardNumber', options: CreateCardNumberElementOptions): CardNumberElement;
|
|
@@ -28,4 +28,17 @@ Object.keys(_tokens).forEach(function (key) {
|
|
|
28
28
|
return _tokens[key];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _proxy = require("./proxy");
|
|
34
|
+
|
|
35
|
+
Object.keys(_proxy).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (key in exports && exports[key] === _proxy[key]) return;
|
|
38
|
+
Object.defineProperty(exports, key, {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _proxy[key];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
31
44
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ProxyRequestOptions } from '../../../types/sdk';
|
|
2
|
+
interface Proxy {
|
|
3
|
+
get(options?: ProxyRequestOptions): Promise<any>;
|
|
4
|
+
post(options?: ProxyRequestOptions): Promise<any>;
|
|
5
|
+
patch(options?: ProxyRequestOptions): Promise<any>;
|
|
6
|
+
put(options?: ProxyRequestOptions): Promise<any>;
|
|
7
|
+
delete(options?: ProxyRequestOptions): Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
export type { Proxy };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/types/sdk/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BasisTheoryElements } from '../../types/elements';
|
|
2
|
-
import type { Tokens, Tokenize, Applications, Tenants, Logs, ReactorFormulas, Reactors, Permissions, Proxies } from './services';
|
|
2
|
+
import type { Tokens, Tokenize, Applications, Tenants, Logs, ReactorFormulas, Reactors, Permissions, Proxies, Proxy } from './services';
|
|
3
3
|
interface ApplicationInfo {
|
|
4
4
|
name?: string;
|
|
5
5
|
version?: string;
|
|
@@ -29,6 +29,7 @@ interface BasisTheory extends Tokenize {
|
|
|
29
29
|
reactors: Reactors;
|
|
30
30
|
permissions: Permissions;
|
|
31
31
|
proxies: Proxies;
|
|
32
|
+
proxy: Proxy;
|
|
32
33
|
}
|
|
33
34
|
interface ClientUserAgent {
|
|
34
35
|
client: string;
|
|
@@ -132,4 +132,17 @@ Object.keys(_proxies).forEach(function (key) {
|
|
|
132
132
|
return _proxies[key];
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
var _proxy = require("./proxy");
|
|
138
|
+
|
|
139
|
+
Object.keys(_proxy).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _proxy[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () {
|
|
145
|
+
return _proxy[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
135
148
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RequestOptions } from './shared';
|
|
2
|
+
interface Proxy {
|
|
3
|
+
get(options?: ProxyRequestOptions): Promise<any>;
|
|
4
|
+
post(options?: ProxyRequestOptions): Promise<any>;
|
|
5
|
+
patch(options?: ProxyRequestOptions): Promise<any>;
|
|
6
|
+
put(options?: ProxyRequestOptions): Promise<any>;
|
|
7
|
+
delete(options?: ProxyRequestOptions): Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
declare type BasisTheoryProxyHeaders = {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
'BT-PROXY-URL': string;
|
|
12
|
+
'BT-PROXY-KEY': string;
|
|
13
|
+
};
|
|
14
|
+
declare type ProxyHeaders = Partial<BasisTheoryProxyHeaders>;
|
|
15
|
+
declare type BasisTheoryQueryParams = {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
'bt-proxy-key': string;
|
|
18
|
+
};
|
|
19
|
+
declare type ProxyQuery = Partial<BasisTheoryQueryParams>;
|
|
20
|
+
interface ProxyRequestOptions extends RequestOptions {
|
|
21
|
+
path?: string;
|
|
22
|
+
query?: ProxyQuery;
|
|
23
|
+
headers?: ProxyHeaders;
|
|
24
|
+
body?: unknown;
|
|
25
|
+
}
|
|
26
|
+
export type { Proxy, ProxyRequestOptions, ProxyHeaders, ProxyQuery };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|