rebilly-js-sdk 56.51.0 → 56.52.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/CHANGELOG.md +2 -2
- package/dist/rebilly-js-sdk.d.ts +8 -3
- package/dist/rebilly-js-sdk.es.js +1954 -1948
- package/dist/rebilly-js-sdk.umd.js +3 -3
- package/package.json +1 -1
- package/src/api-handler.spec.js +18 -3
- package/src/create-api-handler.js +5 -2
- package/src/rebilly-js-sdk.js +14 -1
- package/vite.config.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [56.
|
|
1
|
+
## [56.52.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v56.51.0...rebilly-js-sdk-v56.52.0) (2024-08-30)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **js-sdk:** improve reb-api-consumer header usage by allowing custom app name ([#7202](https://github.com/Rebilly/rebilly/issues/7202)) ([c2a7cfb](https://github.com/Rebilly/rebilly/commit/c2a7cfba2a173eb041999d043e5a6f7c5e75d8ca))
|
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -89107,13 +89107,17 @@ declare module "create-api-instance" {
|
|
|
89107
89107
|
import { StorefrontApiInstance } from "resources/storefront/storefront-api-instance";
|
|
89108
89108
|
}
|
|
89109
89109
|
declare module "rebilly-js-sdk" {
|
|
89110
|
-
export default function RebillyAPI({ apiKey, sandbox, timeout, organizationId, urls, }?: ApiParams): import("resources/api-instance").ApiInstance;
|
|
89110
|
+
export default function RebillyAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("resources/api-instance").ApiInstance;
|
|
89111
|
+
export type InternalOptions = {
|
|
89112
|
+
appName?: string;
|
|
89113
|
+
};
|
|
89111
89114
|
export type ApiParams = {
|
|
89112
89115
|
apiKey?: string;
|
|
89113
89116
|
sandbox: boolean;
|
|
89114
89117
|
timeout: number;
|
|
89115
89118
|
organizationId?: string;
|
|
89116
89119
|
urls?: any;
|
|
89120
|
+
internalOptions?: InternalOptions;
|
|
89117
89121
|
};
|
|
89118
89122
|
export type StorefrontApiParams = {
|
|
89119
89123
|
jwt?: string;
|
|
@@ -89122,10 +89126,11 @@ declare module "rebilly-js-sdk" {
|
|
|
89122
89126
|
timeout: number;
|
|
89123
89127
|
organizationId?: string;
|
|
89124
89128
|
urls?: any;
|
|
89129
|
+
internalOptions?: InternalOptions;
|
|
89125
89130
|
};
|
|
89126
89131
|
import Errors from "errors/errors";
|
|
89127
|
-
export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, }?: ApiParams): import("resources/experimental/experimental-resources").ExperimentalApiInstance;
|
|
89128
|
-
export function RebillyStorefrontAPI({ publishableKey, jwt, sandbox, timeout, organizationId, urls, }?: StorefrontApiParams): import("resources/storefront/storefront-api-instance").StorefrontApiInstance;
|
|
89132
|
+
export function RebillyExperimentalAPI({ apiKey, sandbox, timeout, organizationId, urls, internalOptions, }?: ApiParams): import("resources/experimental/experimental-resources").ExperimentalApiInstance;
|
|
89133
|
+
export function RebillyStorefrontAPI({ publishableKey, jwt, sandbox, timeout, organizationId, urls, internalOptions, }?: StorefrontApiParams): import("resources/storefront/storefront-api-instance").StorefrontApiInstance;
|
|
89129
89134
|
import cancellation from "cancellation";
|
|
89130
89135
|
export { Errors as RebillyErrors, cancellation };
|
|
89131
89136
|
}
|