@revenuecat/purchases-js 1.52.2 → 1.52.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/Purchases.es.d.ts +5 -0
- package/dist/Purchases.es.js +4 -3
- package/dist/Purchases.umd.js +2 -2
- package/package.json +1 -1
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -1841,6 +1841,11 @@ export declare class Purchases {
|
|
|
1841
1841
|
* The redeem url.
|
|
1842
1842
|
*/
|
|
1843
1843
|
readonly redeemUrl: string | null;
|
|
1844
|
+
/**
|
|
1845
|
+
* The HTTPS URL that redirects to the redeem URL.
|
|
1846
|
+
* Use this URL when a browser-compatible URL is required, such as for QR codes.
|
|
1847
|
+
*/
|
|
1848
|
+
readonly redeemUrlRedirect?: string | null;
|
|
1844
1849
|
}
|
|
1845
1850
|
|
|
1846
1851
|
/**
|
package/dist/Purchases.es.js
CHANGED
|
@@ -3734,9 +3734,10 @@ class Se {
|
|
|
3734
3734
|
}
|
|
3735
3735
|
re(Se, "logLevel", nt.Silent), re(Se, "logHandler", null);
|
|
3736
3736
|
function Up(r) {
|
|
3737
|
-
var e;
|
|
3737
|
+
var e, t;
|
|
3738
3738
|
return r.operation.redemption_info ? {
|
|
3739
|
-
redeemUrl: ((e = r.operation.redemption_info) == null ? void 0 : e.redeem_url) ?? null
|
|
3739
|
+
redeemUrl: ((e = r.operation.redemption_info) == null ? void 0 : e.redeem_url) ?? null,
|
|
3740
|
+
redeemUrlRedirect: ((t = r.operation.redemption_info) == null ? void 0 : t.redeem_url_redirect) ?? null
|
|
3740
3741
|
} : null;
|
|
3741
3742
|
}
|
|
3742
3743
|
var nn = /* @__PURE__ */ ((r) => (r.tax_collection_disabled = "tax_collection_disabled", r.invalid_tax_location = "invalid_tax_location", r.rate_limit_exceeded = "rate_limit_exceeded", r.missing_required_permission = "missing_required_permission", r.invalid_origin_address = "invalid_origin_address", r.invalid_head_office_address = "invalid_head_office_address", r.taxes_not_active = "taxes_not_active", r.stripe_tax_unsupported_country = "stripe_tax_unsupported_country", r.unexpected_gateway_error = "unexpected_gateway_error", r))(nn || {});
|
|
@@ -23314,7 +23315,7 @@ function wS(r) {
|
|
|
23314
23315
|
}
|
|
23315
23316
|
return e;
|
|
23316
23317
|
}
|
|
23317
|
-
const Pg = "1.52.
|
|
23318
|
+
const Pg = "1.52.3", PS = "https://api.revenuecat.com", xS = "https://e.revenue.cat";
|
|
23318
23319
|
var Mi;
|
|
23319
23320
|
(function(r) {
|
|
23320
23321
|
r[r.CONTINUE = 100] = "CONTINUE", r[r.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", r[r.PROCESSING = 102] = "PROCESSING", r[r.EARLY_HINTS = 103] = "EARLY_HINTS", r[r.OK = 200] = "OK", r[r.CREATED = 201] = "CREATED", r[r.ACCEPTED = 202] = "ACCEPTED", r[r.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", r[r.NO_CONTENT = 204] = "NO_CONTENT", r[r.RESET_CONTENT = 205] = "RESET_CONTENT", r[r.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", r[r.MULTI_STATUS = 207] = "MULTI_STATUS", r[r.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", r[r.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", r[r.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", r[r.SEE_OTHER = 303] = "SEE_OTHER", r[r.NOT_MODIFIED = 304] = "NOT_MODIFIED", r[r.USE_PROXY = 305] = "USE_PROXY", r[r.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", r[r.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", r[r.BAD_REQUEST = 400] = "BAD_REQUEST", r[r.UNAUTHORIZED = 401] = "UNAUTHORIZED", r[r.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", r[r.FORBIDDEN = 403] = "FORBIDDEN", r[r.NOT_FOUND = 404] = "NOT_FOUND", r[r.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", r[r.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", r[r.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", r[r.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", r[r.CONFLICT = 409] = "CONFLICT", r[r.GONE = 410] = "GONE", r[r.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", r[r.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", r[r.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", r[r.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", r[r.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", r[r.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", r[r.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", r[r.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", r[r.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", r[r.METHOD_FAILURE = 420] = "METHOD_FAILURE", r[r.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", r[r.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", r[r.LOCKED = 423] = "LOCKED", r[r.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", r[r.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", r[r.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", r[r.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", r[r.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", r[r.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", r[r.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", r[r.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", r[r.BAD_GATEWAY = 502] = "BAD_GATEWAY", r[r.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", r[r.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", r[r.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", r[r.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", r[r.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|