Socket
Socket
Sign inDemoInstall

capacitor-purchases

Package Overview
Dependencies
2
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.7 to 1.1.8

3

dist/esm/web.d.ts
import { WebPlugin } from '@capacitor/core';
import type { CapacitorPurchasesPlugin, LogInResult, PurchaserInfo, Offerings, Offering, Package } from './definitions';
export declare const mockPack: Package;
export declare const mockPackA: Package;
export declare const mockPackM: Package;
export declare const mockCurrent: Offering;

@@ -5,0 +6,0 @@ export declare const mockPurchaserInfo: PurchaserInfo;

import { WebPlugin } from '@capacitor/core';
import { PACKAGE_TYPE } from './definitions';
export const mockPack = {
export const mockPackA = {
identifier: 'com.example.test',
packageType: PACKAGE_TYPE.ANNUAL,
product: {
identifier: 'com.example.test',
identifier: 'com.example.yearly',
description: 'Test',
title: 'Test',
price: 0.99,
priceString: '$0.99',
price: 19.99,
priceString: '$19.99',
currencyCode: 'USD',

@@ -25,13 +25,35 @@ currencySymbol: '$',

};
export const mockPackM = {
identifier: 'com.example.test',
packageType: PACKAGE_TYPE.MONTHLY,
product: {
identifier: 'com.example.monthly',
description: 'Test',
title: 'Test',
price: 3.99,
priceString: '$3.99',
currencyCode: 'USD',
currencySymbol: '$',
isFamilyShareable: false,
subscriptionGroupIdentifier: 'com.example.test',
subscriptionPeriod: {
numberOfUnits: 1,
unit: 1,
},
introductoryPrice: null,
discounts: [],
},
offeringIdentifier: 'com.example.test.offering1'
};
export const mockCurrent = {
identifier: 'com.example.test.offering1',
serverDescription: "Test offering",
availablePackages: [mockPack],
lifetime: mockPack,
annual: mockPack,
sixMonth: mockPack,
threeMonth: mockPack,
twoMonth: mockPack,
monthly: mockPack,
weekly: mockPack,
availablePackages: [mockPackA, mockPackM],
lifetime: null,
annual: mockPackA,
sixMonth: null,
threeMonth: null,
twoMonth: null,
monthly: mockPackM,
weekly: null,
};

@@ -38,0 +60,0 @@ export const mockPurchaserInfo = {

@@ -139,11 +139,11 @@ 'use strict';

const mockPack = {
const mockPackA = {
identifier: 'com.example.test',
packageType: exports.PACKAGE_TYPE.ANNUAL,
product: {
identifier: 'com.example.test',
identifier: 'com.example.yearly',
description: 'Test',
title: 'Test',
price: 0.99,
priceString: '$0.99',
price: 19.99,
priceString: '$19.99',
currencyCode: 'USD',

@@ -162,13 +162,35 @@ currencySymbol: '$',

};
const mockPackM = {
identifier: 'com.example.test',
packageType: exports.PACKAGE_TYPE.MONTHLY,
product: {
identifier: 'com.example.monthly',
description: 'Test',
title: 'Test',
price: 3.99,
priceString: '$3.99',
currencyCode: 'USD',
currencySymbol: '$',
isFamilyShareable: false,
subscriptionGroupIdentifier: 'com.example.test',
subscriptionPeriod: {
numberOfUnits: 1,
unit: 1,
},
introductoryPrice: null,
discounts: [],
},
offeringIdentifier: 'com.example.test.offering1'
};
const mockCurrent = {
identifier: 'com.example.test.offering1',
serverDescription: "Test offering",
availablePackages: [mockPack],
lifetime: mockPack,
annual: mockPack,
sixMonth: mockPack,
threeMonth: mockPack,
twoMonth: mockPack,
monthly: mockPack,
weekly: mockPack,
availablePackages: [mockPackA, mockPackM],
lifetime: null,
annual: mockPackA,
sixMonth: null,
threeMonth: null,
twoMonth: null,
monthly: mockPackM,
weekly: null,
};

@@ -241,3 +263,4 @@ const mockPurchaserInfo = {

__proto__: null,
mockPack: mockPack,
mockPackA: mockPackA,
mockPackM: mockPackM,
mockCurrent: mockCurrent,

@@ -244,0 +267,0 @@ mockPurchaserInfo: mockPurchaserInfo,

@@ -136,11 +136,11 @@ var capacitorCapacitorPurchases = (function (exports, core) {

const mockPack = {
const mockPackA = {
identifier: 'com.example.test',
packageType: exports.PACKAGE_TYPE.ANNUAL,
product: {
identifier: 'com.example.test',
identifier: 'com.example.yearly',
description: 'Test',
title: 'Test',
price: 0.99,
priceString: '$0.99',
price: 19.99,
priceString: '$19.99',
currencyCode: 'USD',

@@ -159,13 +159,35 @@ currencySymbol: '$',

};
const mockPackM = {
identifier: 'com.example.test',
packageType: exports.PACKAGE_TYPE.MONTHLY,
product: {
identifier: 'com.example.monthly',
description: 'Test',
title: 'Test',
price: 3.99,
priceString: '$3.99',
currencyCode: 'USD',
currencySymbol: '$',
isFamilyShareable: false,
subscriptionGroupIdentifier: 'com.example.test',
subscriptionPeriod: {
numberOfUnits: 1,
unit: 1,
},
introductoryPrice: null,
discounts: [],
},
offeringIdentifier: 'com.example.test.offering1'
};
const mockCurrent = {
identifier: 'com.example.test.offering1',
serverDescription: "Test offering",
availablePackages: [mockPack],
lifetime: mockPack,
annual: mockPack,
sixMonth: mockPack,
threeMonth: mockPack,
twoMonth: mockPack,
monthly: mockPack,
weekly: mockPack,
availablePackages: [mockPackA, mockPackM],
lifetime: null,
annual: mockPackA,
sixMonth: null,
threeMonth: null,
twoMonth: null,
monthly: mockPackM,
weekly: null,
};

@@ -238,3 +260,4 @@ const mockPurchaserInfo = {

__proto__: null,
mockPack: mockPack,
mockPackA: mockPackA,
mockPackM: mockPackM,
mockCurrent: mockCurrent,

@@ -241,0 +264,0 @@ mockPurchaserInfo: mockPurchaserInfo,

{
"name": "capacitor-purchases",
"version": "1.1.7",
"version": "1.1.8",
"description": "In-app Subscriptions Made Easy with RevenueCat sdk",

@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc