@revenuecat/purchases-js 0.12.1 → 0.13.1
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 -8
- package/dist/Purchases.es.d.ts +12 -0
- package/dist/Purchases.es.js +3486 -2200
- package/dist/Purchases.umd.js +42 -18
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -71,14 +71,7 @@ npm run lint
|
|
|
71
71
|
|
|
72
72
|
## Running E2E tests
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
npm run build
|
|
76
|
-
cd examples/rcbilling-demo
|
|
77
|
-
npm run build
|
|
78
|
-
# In a different terminal or background the process
|
|
79
|
-
npm run dev
|
|
80
|
-
npm run test
|
|
81
|
-
```
|
|
74
|
+
Please check the Demo app readme [here](./examples/rcbilling-demo/README.md#e2e-tests)
|
|
82
75
|
|
|
83
76
|
## Update API specs
|
|
84
77
|
|
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PaywallData } from '@revenuecat/purchases-ui-js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Type containing all information regarding the customer.
|
|
3
5
|
* @public
|
|
@@ -304,6 +306,7 @@ export declare interface Offering {
|
|
|
304
306
|
* Weekly package type configured in the RevenueCat dashboard, if available.
|
|
305
307
|
*/
|
|
306
308
|
readonly weekly: Package | null;
|
|
309
|
+
readonly paywall_components: PaywallData | null;
|
|
307
310
|
}
|
|
308
311
|
|
|
309
312
|
/**
|
|
@@ -763,6 +766,15 @@ export declare class Purchases {
|
|
|
763
766
|
* Closes the Purchases instance. You should never have to do this normally.
|
|
764
767
|
*/
|
|
765
768
|
close(): void;
|
|
769
|
+
/**
|
|
770
|
+
* Generates an anonymous app user ID that follows RevenueCat's format.
|
|
771
|
+
* This can be used when you don't have a user identifier system in place.
|
|
772
|
+
* The generated ID will be in the format: $RCAnonymousID:<UUID without dashes>
|
|
773
|
+
* Example: $RCAnonymousID:123e4567e89b12d3a456426614174000
|
|
774
|
+
* @returns A new anonymous app user ID string
|
|
775
|
+
* @public
|
|
776
|
+
*/
|
|
777
|
+
static generateRevenueCatAnonymousAppUserId(): string;
|
|
766
778
|
}
|
|
767
779
|
|
|
768
780
|
/**
|