@paystack/inline-js 2.22.4-dev.1 → 2.22.4-dev.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/inline.js CHANGED
@@ -2060,13 +2060,11 @@ var PaystackPop = (function () {
2060
2060
  this.transactions.push(inlineTransaction);
2061
2061
 
2062
2062
  if (!this.isDeprecatedApi) {
2063
- var _inlineTransaction$ur;
2064
-
2065
2063
  // TODO: reintroduce this when we resolve checkout caching issues
2066
2064
  // this.open({ transactionData }, preload);
2067
2065
  this.open({
2068
2066
  accessCode: transactionData.access_code,
2069
- language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2067
+ language: inlineTransaction.urlParameters.language
2070
2068
  }, preload);
2071
2069
  }
2072
2070
 
@@ -2079,12 +2077,10 @@ var PaystackPop = (function () {
2079
2077
  resumableTransaction.isActive = true;
2080
2078
 
2081
2079
  if (!this.isDeprecatedApi) {
2082
- var _resumableTransaction;
2083
-
2084
2080
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2085
2081
  this.open({
2086
2082
  accessCode: resumableTransaction.accessCode,
2087
- language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2083
+ language: resumableTransaction.urlParameters.language
2088
2084
  }, preload);
2089
2085
  }
2090
2086
 
package/es/inline.js CHANGED
@@ -2057,13 +2057,11 @@ var Inline = /*#__PURE__*/function () {
2057
2057
  this.transactions.push(inlineTransaction);
2058
2058
 
2059
2059
  if (!this.isDeprecatedApi) {
2060
- var _inlineTransaction$ur;
2061
-
2062
2060
  // TODO: reintroduce this when we resolve checkout caching issues
2063
2061
  // this.open({ transactionData }, preload);
2064
2062
  this.open({
2065
2063
  accessCode: transactionData.access_code,
2066
- language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2064
+ language: inlineTransaction.urlParameters.language
2067
2065
  }, preload);
2068
2066
  }
2069
2067
 
@@ -2076,12 +2074,10 @@ var Inline = /*#__PURE__*/function () {
2076
2074
  resumableTransaction.isActive = true;
2077
2075
 
2078
2076
  if (!this.isDeprecatedApi) {
2079
- var _resumableTransaction;
2080
-
2081
2077
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2082
2078
  this.open({
2083
2079
  accessCode: resumableTransaction.accessCode,
2084
- language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2080
+ language: resumableTransaction.urlParameters.language
2085
2081
  }, preload);
2086
2082
  }
2087
2083
 
package/lib/inline.js CHANGED
@@ -2059,13 +2059,11 @@ var Inline = /*#__PURE__*/function () {
2059
2059
  this.transactions.push(inlineTransaction);
2060
2060
 
2061
2061
  if (!this.isDeprecatedApi) {
2062
- var _inlineTransaction$ur;
2063
-
2064
2062
  // TODO: reintroduce this when we resolve checkout caching issues
2065
2063
  // this.open({ transactionData }, preload);
2066
2064
  this.open({
2067
2065
  accessCode: transactionData.access_code,
2068
- language: (_inlineTransaction$ur = inlineTransaction.urlParameters) === null || _inlineTransaction$ur === void 0 ? void 0 : _inlineTransaction$ur.language
2066
+ language: inlineTransaction.urlParameters.language
2069
2067
  }, preload);
2070
2068
  }
2071
2069
 
@@ -2078,12 +2076,10 @@ var Inline = /*#__PURE__*/function () {
2078
2076
  resumableTransaction.isActive = true;
2079
2077
 
2080
2078
  if (!this.isDeprecatedApi) {
2081
- var _resumableTransaction;
2082
-
2083
2079
  // We could potentially optimize this also by checking if there is a `response` property on `resumableTransaction`
2084
2080
  this.open({
2085
2081
  accessCode: resumableTransaction.accessCode,
2086
- language: (_resumableTransaction = resumableTransaction.urlParameters) === null || _resumableTransaction === void 0 ? void 0 : _resumableTransaction.language
2082
+ language: resumableTransaction.urlParameters.language
2087
2083
  }, preload);
2088
2084
  }
2089
2085
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/inline-js",
3
- "version": "2.22.4-dev.1",
3
+ "version": "2.22.4-dev.3",
4
4
  "description": "Client-side library to load the Paystack checkout form",
5
5
  "main": "lib/inline.js",
6
6
  "module": "es/inline.js",