capacitor-adapty
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -12,3 +12,3 @@ import { registerPlugin } from '@capacitor/core'; | ||
const CapacitorAdapty = registerPlugin('Adapty', {}); | ||
const LIB_VERSION = "4.0.2"; | ||
const LIB_VERSION = "4.0.3"; | ||
class Adapty { | ||
@@ -15,0 +15,0 @@ constructor() { |
@@ -7,6 +7,11 @@ class PromiseQueue { | ||
async enqueue(task) { | ||
const completionPromise = new Promise(resolve => { | ||
const completionPromise = new Promise((resolve, reject) => { | ||
const wrapped = async () => { | ||
await task(); | ||
resolve(); | ||
try { | ||
await task(); | ||
resolve(); | ||
} | ||
catch (error) { | ||
reject(error); | ||
} | ||
}; | ||
@@ -13,0 +18,0 @@ this.queue.push(wrapped); |
@@ -27,3 +27,2 @@ import { __rest } from 'tslib'; | ||
} | ||
console.log('updateProfile', profile, params); | ||
return params; | ||
@@ -30,0 +29,0 @@ } |
@@ -249,3 +249,2 @@ 'use strict'; | ||
} | ||
console.log('updateProfile', profile, params); | ||
return params; | ||
@@ -269,6 +268,11 @@ } | ||
async enqueue(task) { | ||
const completionPromise = new Promise(resolve => { | ||
const completionPromise = new Promise((resolve, reject) => { | ||
const wrapped = async () => { | ||
await task(); | ||
resolve(); | ||
try { | ||
await task(); | ||
resolve(); | ||
} | ||
catch (error) { | ||
reject(error); | ||
} | ||
}; | ||
@@ -467,3 +471,3 @@ this.queue.push(wrapped); | ||
const CapacitorAdapty = core.registerPlugin('Adapty', {}); | ||
const LIB_VERSION = "4.0.2"; | ||
const LIB_VERSION = "4.0.3"; | ||
class Adapty { | ||
@@ -470,0 +474,0 @@ constructor() { |
@@ -248,3 +248,2 @@ var capacitorAdapty = (function (exports, core) { | ||
} | ||
console.log('updateProfile', profile, params); | ||
return params; | ||
@@ -268,6 +267,11 @@ } | ||
async enqueue(task) { | ||
const completionPromise = new Promise(resolve => { | ||
const completionPromise = new Promise((resolve, reject) => { | ||
const wrapped = async () => { | ||
await task(); | ||
resolve(); | ||
try { | ||
await task(); | ||
resolve(); | ||
} | ||
catch (error) { | ||
reject(error); | ||
} | ||
}; | ||
@@ -466,3 +470,3 @@ this.queue.push(wrapped); | ||
const CapacitorAdapty = core.registerPlugin('Adapty', {}); | ||
const LIB_VERSION = "4.0.2"; | ||
const LIB_VERSION = "4.0.3"; | ||
class Adapty { | ||
@@ -469,0 +473,0 @@ constructor() { |
{ | ||
"name": "capacitor-adapty", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Adapty plugin for capacitor", | ||
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
299354
4344