@revenuecat/purchases-js 0.3.3 → 0.4.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/README.md +1 -1
- package/dist/Purchases.es.d.ts +21 -2
- package/dist/Purchases.es.js +851 -787
- package/dist/Purchases.umd.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -166,7 +166,25 @@ export declare enum ErrorCode {
|
|
|
166
166
|
UnsupportedError = 24,
|
|
167
167
|
EmptySubscriberAttributesError = 25,
|
|
168
168
|
CustomerInfoError = 28,
|
|
169
|
-
SignatureVerificationError = 36
|
|
169
|
+
SignatureVerificationError = 36,
|
|
170
|
+
InvalidEmailError = 38
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Parameters used to customise the http requests executed by purchases-js.
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
export declare interface HttpConfig {
|
|
178
|
+
/**
|
|
179
|
+
* Additional headers to include in all HTTP requests.
|
|
180
|
+
*/
|
|
181
|
+
additionalHeaders?: Record<string, string>;
|
|
182
|
+
/**
|
|
183
|
+
* Set this property to your proxy URL *only* if you've received a proxy
|
|
184
|
+
* key value from your RevenueCat contact. This value should never end with
|
|
185
|
+
* a trailing slash.
|
|
186
|
+
*/
|
|
187
|
+
proxyURL?: string;
|
|
170
188
|
}
|
|
171
189
|
|
|
172
190
|
/**
|
|
@@ -540,9 +558,10 @@ export declare class Purchases {
|
|
|
540
558
|
* keep the returned instance around for use throughout your application.
|
|
541
559
|
* @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
|
|
542
560
|
* @param appUserId - Your unique id for identifying the user.
|
|
561
|
+
* @param httpConfig - Advanced http configuration to customise the SDK usage {@link HttpConfig}.
|
|
543
562
|
* @throws {@link PurchasesError} if the API key or user id are invalid.
|
|
544
563
|
*/
|
|
545
|
-
static configure(apiKey: string, appUserId: string): Purchases;
|
|
564
|
+
static configure(apiKey: string, appUserId: string, httpConfig?: HttpConfig): Purchases;
|
|
546
565
|
/**
|
|
547
566
|
* Fetch the configured offerings for this user. You can configure these
|
|
548
567
|
* in the RevenueCat dashboard.
|