capacitor-native-purchases 0.3.1 → 0.3.2
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/esm/web.d.ts +1 -1
- package/dist/esm/web.js +2 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +2 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
2
|
import type { CurrentEntitlementsResponse, LatestTransactionResponse, ProductDetailsResponse, PurchaseProductResponse, PurchasesPlugin, RestorePurchasesResponse } from './definitions';
|
|
3
3
|
export declare class PurchasesWeb extends WebPlugin implements PurchasesPlugin {
|
|
4
|
-
setGoogleVerificationDetails(
|
|
4
|
+
setGoogleVerificationDetails(_options: {
|
|
5
5
|
googleVerifyEndpoint: string;
|
|
6
6
|
bid: string;
|
|
7
7
|
}): void;
|
package/dist/esm/web.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
2
|
export class PurchasesWeb extends WebPlugin {
|
|
3
|
-
setGoogleVerificationDetails(
|
|
4
|
-
console.info(options);
|
|
3
|
+
setGoogleVerificationDetails(_options) {
|
|
4
|
+
// console.info(options);
|
|
5
5
|
}
|
|
6
6
|
async echo(options) {
|
|
7
7
|
return options;
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAW5C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC,4BAA4B,CAAC,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAW5C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC,4BAA4B,CAAC,QAAuD;QAClF,yBAAyB;IAC3B,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAA0B;QACnC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,OAAsC;QAC5D,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO;YACL,YAAY,EAAE,CAAC,CAAC;YAChB,eAAe,EAAE,uBAAuB;SACzC,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,OAGrB;QACC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO;YACL,YAAY,EAAE,CAAC,CAAC;YAChB,eAAe,EAAE,uBAAuB;SACzC,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,sBAAsB;QAC1B,OAAO;YACL,YAAY,EAAE,CAAC,CAAC;YAChB,eAAe,EAAE,uBAAuB;SACzC,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,oBAAoB,CAAC,OAAsC;QAC/D,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO;YACL,YAAY,EAAE,CAAC,CAAC;YAChB,eAAe,EAAE,uBAAuB;SACzC,CAAC;IACJ,CAAC;IACD,mBAAmB;QACjB,aAAa;IACf,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n CurrentEntitlementsResponse,\n LatestTransactionResponse,\n ProductDetailsResponse,\n PurchaseProductResponse,\n PurchasesPlugin,\n RestorePurchasesResponse,\n} from './definitions';\n\nexport class PurchasesWeb extends WebPlugin implements PurchasesPlugin {\n setGoogleVerificationDetails(_options: { googleVerifyEndpoint: string; bid: string }): void {\n // console.info(options);\n }\n async echo(options: { value: string }): Promise<{ value: string }> {\n return options;\n }\n async getProductDetails(options: { productIdentifier: string }): Promise<ProductDetailsResponse> {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async purchaseProduct(options: {\n productIdentifier: string;\n accountToken?: string;\n }): Promise<PurchaseProductResponse> {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async getCurrentEntitlements(): Promise<CurrentEntitlementsResponse> {\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async getLatestTransaction(options: { productIdentifier: string }): Promise<LatestTransactionResponse> {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n manageSubscriptions(): void {\n // Do nothing\n }\n\n async restorePurchases(): Promise<RestorePurchasesResponse> {\n return { completed: false };\n }\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -7,8 +7,8 @@ const Purchases = core.registerPlugin('Purchases', {
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
class PurchasesWeb extends core.WebPlugin {
|
|
10
|
-
setGoogleVerificationDetails(
|
|
11
|
-
console.info(options);
|
|
10
|
+
setGoogleVerificationDetails(_options) {
|
|
11
|
+
// console.info(options);
|
|
12
12
|
}
|
|
13
13
|
async echo(options) {
|
|
14
14
|
return options;
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Purchases = registerPlugin('Purchases', {\n web: () => import('./web').then((m) => new m.PurchasesWeb()),\n});\nexport * from './definitions';\nexport { Purchases };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PurchasesWeb extends WebPlugin {\n setGoogleVerificationDetails(
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Purchases = registerPlugin('Purchases', {\n web: () => import('./web').then((m) => new m.PurchasesWeb()),\n});\nexport * from './definitions';\nexport { Purchases };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PurchasesWeb extends WebPlugin {\n setGoogleVerificationDetails(_options) {\n // console.info(options);\n }\n async echo(options) {\n return options;\n }\n async getProductDetails(options) {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async purchaseProduct(options) {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async getCurrentEntitlements() {\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async getLatestTransaction(options) {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n manageSubscriptions() {\n // Do nothing\n }\n async restorePurchases() {\n return { completed: false };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,SAAS,GAAGA,mBAAc,CAAC,WAAW,EAAE;AAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,YAAY,EAAE,CAAC;AAChE,CAAC;;ACFM,MAAM,YAAY,SAASC,cAAS,CAAC;AAC5C,IAAI,4BAA4B,CAAC,QAAQ,EAAE;AAC3C;AACA,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,OAAO;AACtB,IAAI;AACJ,IAAI,MAAM,iBAAiB,CAAC,OAAO,EAAE;AACrC,QAAQ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;AAC7B,QAAQ,OAAO;AACf,YAAY,YAAY,EAAE,EAAE;AAC5B,YAAY,eAAe,EAAE,uBAAuB;AACpD,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,eAAe,CAAC,OAAO,EAAE;AACnC,QAAQ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;AAC7B,QAAQ,OAAO;AACf,YAAY,YAAY,EAAE,EAAE;AAC5B,YAAY,eAAe,EAAE,uBAAuB;AACpD,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,sBAAsB,GAAG;AACnC,QAAQ,OAAO;AACf,YAAY,YAAY,EAAE,EAAE;AAC5B,YAAY,eAAe,EAAE,uBAAuB;AACpD,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,oBAAoB,CAAC,OAAO,EAAE;AACxC,QAAQ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;AAC7B,QAAQ,OAAO;AACf,YAAY,YAAY,EAAE,EAAE;AAC5B,YAAY,eAAe,EAAE,uBAAuB;AACpD,SAAS;AACT,IAAI;AACJ,IAAI,mBAAmB,GAAG;AAC1B;AACA,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE;AACnC,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -6,8 +6,8 @@ var capacitorPurchases = (function (exports, core) {
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
class PurchasesWeb extends core.WebPlugin {
|
|
9
|
-
setGoogleVerificationDetails(
|
|
10
|
-
console.info(options);
|
|
9
|
+
setGoogleVerificationDetails(_options) {
|
|
10
|
+
// console.info(options);
|
|
11
11
|
}
|
|
12
12
|
async echo(options) {
|
|
13
13
|
return options;
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Purchases = registerPlugin('Purchases', {\n web: () => import('./web').then((m) => new m.PurchasesWeb()),\n});\nexport * from './definitions';\nexport { Purchases };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PurchasesWeb extends WebPlugin {\n setGoogleVerificationDetails(
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Purchases = registerPlugin('Purchases', {\n web: () => import('./web').then((m) => new m.PurchasesWeb()),\n});\nexport * from './definitions';\nexport { Purchases };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PurchasesWeb extends WebPlugin {\n setGoogleVerificationDetails(_options) {\n // console.info(options);\n }\n async echo(options) {\n return options;\n }\n async getProductDetails(options) {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async purchaseProduct(options) {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async getCurrentEntitlements() {\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n async getLatestTransaction(options) {\n console.info(options);\n return {\n responseCode: -1,\n responseMessage: 'Incompatible with web',\n };\n }\n manageSubscriptions() {\n // Do nothing\n }\n async restorePurchases() {\n return { completed: false };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,SAAS,GAAGA,mBAAc,CAAC,WAAW,EAAE;IAC9C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,YAAY,EAAE,CAAC;IAChE,CAAC;;ICFM,MAAM,YAAY,SAASC,cAAS,CAAC;IAC5C,IAAI,4BAA4B,CAAC,QAAQ,EAAE;IAC3C;IACA,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,OAAO,OAAO;IACtB,IAAI;IACJ,IAAI,MAAM,iBAAiB,CAAC,OAAO,EAAE;IACrC,QAAQ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;IAC7B,QAAQ,OAAO;IACf,YAAY,YAAY,EAAE,EAAE;IAC5B,YAAY,eAAe,EAAE,uBAAuB;IACpD,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,eAAe,CAAC,OAAO,EAAE;IACnC,QAAQ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;IAC7B,QAAQ,OAAO;IACf,YAAY,YAAY,EAAE,EAAE;IAC5B,YAAY,eAAe,EAAE,uBAAuB;IACpD,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,sBAAsB,GAAG;IACnC,QAAQ,OAAO;IACf,YAAY,YAAY,EAAE,EAAE;IAC5B,YAAY,eAAe,EAAE,uBAAuB;IACpD,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,oBAAoB,CAAC,OAAO,EAAE;IACxC,QAAQ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;IAC7B,QAAQ,OAAO;IACf,YAAY,YAAY,EAAE,EAAE;IAC5B,YAAY,eAAe,EAAE,uBAAuB;IACpD,SAAS;IACT,IAAI;IACJ,IAAI,mBAAmB,GAAG;IAC1B;IACA,IAAI;IACJ,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE;IACnC,IAAI;IACJ;;;;;;;;;;;;;;;"}
|