@paystack/checkout-js 1.20.0-dev.10 → 1.20.0-dev.11

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/checkout.js CHANGED
@@ -18378,7 +18378,7 @@ var Paystack = (function (exports) {
18378
18378
  return Card$2.validateCVV(cvv, cardType).isValid;
18379
18379
  },
18380
18380
  validateExpiry: function validateExpiry(value) {
18381
- if (_typeof$1(value) === 'object') {
18381
+ if (value !== null && _typeof$1(value) === 'object') {
18382
18382
  var month = value.month,
18383
18383
  year = value.year;
18384
18384
  return cardValidator.expirationMonth(month) && cardValidator.expirationYear(year);
@@ -20931,7 +20931,7 @@ var Paystack = (function (exports) {
20931
20931
  });
20932
20932
  }
20933
20933
 
20934
- var ReserveCardFunds = {
20934
+ var CardPreauthorization = {
20935
20935
  setCard: function setCard(params) {
20936
20936
  var _this = this;
20937
20937
 
@@ -20996,7 +20996,7 @@ var Paystack = (function (exports) {
20996
20996
  loadPusher(); // TODO: Analytics
20997
20997
  // https://paystack.atlassian.net/browse/RAILS-3070
20998
20998
 
20999
- Object.assign(this, ReserveCardFunds);
20999
+ Object.assign(this, CardPreauthorization);
21000
21000
  }
21001
21001
 
21002
21002
  _createClass(PreauthorizationInstance, [{
package/es/checkout.js CHANGED
@@ -18375,7 +18375,7 @@ var Card$2 = {
18375
18375
  return Card$2.validateCVV(cvv, cardType).isValid;
18376
18376
  },
18377
18377
  validateExpiry: function validateExpiry(value) {
18378
- if (_typeof$1(value) === 'object') {
18378
+ if (value !== null && _typeof$1(value) === 'object') {
18379
18379
  var month = value.month,
18380
18380
  year = value.year;
18381
18381
  return cardValidator.expirationMonth(month) && cardValidator.expirationYear(year);
@@ -20928,7 +20928,7 @@ function validate(card, isSetter) {
20928
20928
  });
20929
20929
  }
20930
20930
 
20931
- var ReserveCardFunds = {
20931
+ var CardPreauthorization = {
20932
20932
  setCard: function setCard(params) {
20933
20933
  var _this = this;
20934
20934
 
@@ -20993,7 +20993,7 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
20993
20993
  loadPusher(); // TODO: Analytics
20994
20994
  // https://paystack.atlassian.net/browse/RAILS-3070
20995
20995
 
20996
- Object.assign(this, ReserveCardFunds);
20996
+ Object.assign(this, CardPreauthorization);
20997
20997
  }
20998
20998
 
20999
20999
  _createClass(PreauthorizationInstance, [{
package/lib/checkout.js CHANGED
@@ -18379,7 +18379,7 @@ var Card$2 = {
18379
18379
  return Card$2.validateCVV(cvv, cardType).isValid;
18380
18380
  },
18381
18381
  validateExpiry: function validateExpiry(value) {
18382
- if (_typeof$1(value) === 'object') {
18382
+ if (value !== null && _typeof$1(value) === 'object') {
18383
18383
  var month = value.month,
18384
18384
  year = value.year;
18385
18385
  return cardValidator.expirationMonth(month) && cardValidator.expirationYear(year);
@@ -20932,7 +20932,7 @@ function validate(card, isSetter) {
20932
20932
  });
20933
20933
  }
20934
20934
 
20935
- var ReserveCardFunds = {
20935
+ var CardPreauthorization = {
20936
20936
  setCard: function setCard(params) {
20937
20937
  var _this = this;
20938
20938
 
@@ -20997,7 +20997,7 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
20997
20997
  loadPusher(); // TODO: Analytics
20998
20998
  // https://paystack.atlassian.net/browse/RAILS-3070
20999
20999
 
21000
- Object.assign(this, ReserveCardFunds);
21000
+ Object.assign(this, CardPreauthorization);
21001
21001
  }
21002
21002
 
21003
21003
  _createClass(PreauthorizationInstance, [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.20.0-dev.10",
3
+ "version": "1.20.0-dev.11",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",