@paystack/inline-js 2.22.2-dev.1 → 2.22.3-dev.1

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.
Files changed (4) hide show
  1. package/dist/inline.js +130 -133
  2. package/es/inline.js +130 -133
  3. package/lib/inline.js +130 -133
  4. package/package.json +3 -5
package/dist/inline.js CHANGED
@@ -1,191 +1,188 @@
1
1
  var PaystackPop = (function () {
2
2
  'use strict';
3
3
 
4
- function ownKeys(object, enumerableOnly) {
5
- var keys = Object.keys(object);
4
+ function _arrayLikeToArray(r, a) {
5
+ (null == a || a > r.length) && (a = r.length);
6
6
 
7
- if (Object.getOwnPropertySymbols) {
8
- var symbols = Object.getOwnPropertySymbols(object);
9
- enumerableOnly && (symbols = symbols.filter(function (sym) {
10
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11
- })), keys.push.apply(keys, symbols);
12
- }
7
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
13
8
 
14
- return keys;
9
+ return n;
15
10
  }
16
11
 
17
- function _objectSpread2(target) {
18
- for (var i = 1; i < arguments.length; i++) {
19
- var source = null != arguments[i] ? arguments[i] : {};
20
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
21
- _defineProperty(target, key, source[key]);
22
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
23
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
24
- });
25
- }
26
-
27
- return target;
12
+ function _arrayWithHoles(r) {
13
+ if (Array.isArray(r)) return r;
28
14
  }
29
15
 
30
- function _typeof(obj) {
31
- "@babel/helpers - typeof";
16
+ function _arrayWithoutHoles(r) {
17
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
18
+ }
32
19
 
33
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
34
- return typeof obj;
35
- } : function (obj) {
36
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
37
- }, _typeof(obj);
20
+ function _classCallCheck(a, n) {
21
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
38
22
  }
39
23
 
40
- function _classCallCheck(instance, Constructor) {
41
- if (!(instance instanceof Constructor)) {
42
- throw new TypeError("Cannot call a class as a function");
24
+ function _defineProperties(e, r) {
25
+ for (var t = 0; t < r.length; t++) {
26
+ var o = r[t];
27
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
43
28
  }
44
29
  }
45
30
 
46
- function _defineProperties(target, props) {
47
- for (var i = 0; i < props.length; i++) {
48
- var descriptor = props[i];
49
- descriptor.enumerable = descriptor.enumerable || false;
50
- descriptor.configurable = true;
51
- if ("value" in descriptor) descriptor.writable = true;
52
- Object.defineProperty(target, descriptor.key, descriptor);
53
- }
31
+ function _createClass(e, r, t) {
32
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
33
+ writable: !1
34
+ }), e;
54
35
  }
55
36
 
56
- function _createClass(Constructor, protoProps, staticProps) {
57
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
58
- if (staticProps) _defineProperties(Constructor, staticProps);
59
- Object.defineProperty(Constructor, "prototype", {
60
- writable: false
61
- });
62
- return Constructor;
37
+ function _defineProperty(e, r, t) {
38
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
39
+ value: t,
40
+ enumerable: !0,
41
+ configurable: !0,
42
+ writable: !0
43
+ }) : e[r] = t, e;
63
44
  }
64
45
 
65
- function _defineProperty(obj, key, value) {
66
- if (key in obj) {
67
- Object.defineProperty(obj, key, {
68
- value: value,
69
- enumerable: true,
70
- configurable: true,
71
- writable: true
72
- });
73
- } else {
74
- obj[key] = value;
46
+ function _iterableToArray(r) {
47
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
48
+ }
49
+
50
+ function _iterableToArrayLimit(r, l) {
51
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
52
+
53
+ if (null != t) {
54
+ var e,
55
+ n,
56
+ i,
57
+ u,
58
+ a = [],
59
+ f = !0,
60
+ o = !1;
61
+
62
+ try {
63
+ if (i = (t = t.call(r)).next, 0 === l) {
64
+ if (Object(t) !== t) return;
65
+ f = !1;
66
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
67
+ } catch (r) {
68
+ o = !0, n = r;
69
+ } finally {
70
+ try {
71
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
72
+ } finally {
73
+ if (o) throw n;
74
+ }
75
+ }
76
+
77
+ return a;
75
78
  }
79
+ }
76
80
 
77
- return obj;
81
+ function _nonIterableRest() {
82
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
83
+ }
84
+
85
+ function _nonIterableSpread() {
86
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
78
87
  }
79
88
 
80
- function _objectWithoutPropertiesLoose(source, excluded) {
81
- if (source == null) return {};
82
- var target = {};
83
- var sourceKeys = Object.keys(source);
84
- var key, i;
89
+ function ownKeys(e, r) {
90
+ var t = Object.keys(e);
85
91
 
86
- for (i = 0; i < sourceKeys.length; i++) {
87
- key = sourceKeys[i];
88
- if (excluded.indexOf(key) >= 0) continue;
89
- target[key] = source[key];
92
+ if (Object.getOwnPropertySymbols) {
93
+ var o = Object.getOwnPropertySymbols(e);
94
+ r && (o = o.filter(function (r) {
95
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
96
+ })), t.push.apply(t, o);
90
97
  }
91
98
 
92
- return target;
99
+ return t;
93
100
  }
94
101
 
95
- function _objectWithoutProperties(source, excluded) {
96
- if (source == null) return {};
102
+ function _objectSpread2(e) {
103
+ for (var r = 1; r < arguments.length; r++) {
104
+ var t = null != arguments[r] ? arguments[r] : {};
105
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
106
+ _defineProperty(e, r, t[r]);
107
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
108
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
109
+ });
110
+ }
97
111
 
98
- var target = _objectWithoutPropertiesLoose(source, excluded);
112
+ return e;
113
+ }
99
114
 
100
- var key, i;
115
+ function _objectWithoutProperties(e, t) {
116
+ if (null == e) return {};
117
+
118
+ var o,
119
+ r,
120
+ i = _objectWithoutPropertiesLoose(e, t);
101
121
 
102
122
  if (Object.getOwnPropertySymbols) {
103
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
123
+ var n = Object.getOwnPropertySymbols(e);
104
124
 
105
- for (i = 0; i < sourceSymbolKeys.length; i++) {
106
- key = sourceSymbolKeys[i];
107
- if (excluded.indexOf(key) >= 0) continue;
108
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
109
- target[key] = source[key];
110
- }
125
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
111
126
  }
112
127
 
113
- return target;
128
+ return i;
114
129
  }
115
130
 
116
- function _slicedToArray(arr, i) {
117
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
118
- }
131
+ function _objectWithoutPropertiesLoose(r, e) {
132
+ if (null == r) return {};
133
+ var t = {};
119
134
 
120
- function _toConsumableArray(arr) {
121
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
122
- }
135
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
136
+ if (-1 !== e.indexOf(n)) continue;
137
+ t[n] = r[n];
138
+ }
123
139
 
124
- function _arrayWithoutHoles(arr) {
125
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
140
+ return t;
126
141
  }
127
142
 
128
- function _arrayWithHoles(arr) {
129
- if (Array.isArray(arr)) return arr;
143
+ function _slicedToArray(r, e) {
144
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
130
145
  }
131
146
 
132
- function _iterableToArray(iter) {
133
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
147
+ function _toConsumableArray(r) {
148
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
134
149
  }
135
150
 
136
- function _iterableToArrayLimit(arr, i) {
137
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
138
-
139
- if (_i == null) return;
140
- var _arr = [];
141
- var _n = true;
142
- var _d = false;
143
-
144
- var _s, _e;
151
+ function _toPrimitive(t, r) {
152
+ if ("object" != typeof t || !t) return t;
153
+ var e = t[Symbol.toPrimitive];
145
154
 
146
- try {
147
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
148
- _arr.push(_s.value);
149
-
150
- if (i && _arr.length === i) break;
151
- }
152
- } catch (err) {
153
- _d = true;
154
- _e = err;
155
- } finally {
156
- try {
157
- if (!_n && _i["return"] != null) _i["return"]();
158
- } finally {
159
- if (_d) throw _e;
160
- }
155
+ if (void 0 !== e) {
156
+ var i = e.call(t, r || "default");
157
+ if ("object" != typeof i) return i;
158
+ throw new TypeError("@@toPrimitive must return a primitive value.");
161
159
  }
162
160
 
163
- return _arr;
161
+ return ("string" === r ? String : Number)(t);
164
162
  }
165
163
 
166
- function _unsupportedIterableToArray(o, minLen) {
167
- if (!o) return;
168
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
169
- var n = Object.prototype.toString.call(o).slice(8, -1);
170
- if (n === "Object" && o.constructor) n = o.constructor.name;
171
- if (n === "Map" || n === "Set") return Array.from(o);
172
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
173
- }
164
+ function _toPropertyKey(t) {
165
+ var i = _toPrimitive(t, "string");
174
166
 
175
- function _arrayLikeToArray(arr, len) {
176
- if (len == null || len > arr.length) len = arr.length;
177
-
178
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
179
-
180
- return arr2;
167
+ return "symbol" == typeof i ? i : i + "";
181
168
  }
182
169
 
183
- function _nonIterableSpread() {
184
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
170
+ function _typeof(o) {
171
+ "@babel/helpers - typeof";
172
+
173
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
174
+ return typeof o;
175
+ } : function (o) {
176
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
177
+ }, _typeof(o);
185
178
  }
186
179
 
187
- function _nonIterableRest() {
188
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
180
+ function _unsupportedIterableToArray(r, a) {
181
+ if (r) {
182
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
183
+ var t = {}.toString.call(r).slice(8, -1);
184
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
185
+ }
189
186
  }
190
187
 
191
188
  var baseConfig = {
package/es/inline.js CHANGED
@@ -1,188 +1,185 @@
1
- function ownKeys(object, enumerableOnly) {
2
- var keys = Object.keys(object);
1
+ function _arrayLikeToArray(r, a) {
2
+ (null == a || a > r.length) && (a = r.length);
3
3
 
4
- if (Object.getOwnPropertySymbols) {
5
- var symbols = Object.getOwnPropertySymbols(object);
6
- enumerableOnly && (symbols = symbols.filter(function (sym) {
7
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8
- })), keys.push.apply(keys, symbols);
9
- }
4
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
10
5
 
11
- return keys;
6
+ return n;
12
7
  }
13
8
 
14
- function _objectSpread2(target) {
15
- for (var i = 1; i < arguments.length; i++) {
16
- var source = null != arguments[i] ? arguments[i] : {};
17
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
18
- _defineProperty(target, key, source[key]);
19
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
20
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
21
- });
22
- }
23
-
24
- return target;
9
+ function _arrayWithHoles(r) {
10
+ if (Array.isArray(r)) return r;
25
11
  }
26
12
 
27
- function _typeof(obj) {
28
- "@babel/helpers - typeof";
13
+ function _arrayWithoutHoles(r) {
14
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
15
+ }
29
16
 
30
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
31
- return typeof obj;
32
- } : function (obj) {
33
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
34
- }, _typeof(obj);
17
+ function _classCallCheck(a, n) {
18
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
35
19
  }
36
20
 
37
- function _classCallCheck(instance, Constructor) {
38
- if (!(instance instanceof Constructor)) {
39
- throw new TypeError("Cannot call a class as a function");
21
+ function _defineProperties(e, r) {
22
+ for (var t = 0; t < r.length; t++) {
23
+ var o = r[t];
24
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
40
25
  }
41
26
  }
42
27
 
43
- function _defineProperties(target, props) {
44
- for (var i = 0; i < props.length; i++) {
45
- var descriptor = props[i];
46
- descriptor.enumerable = descriptor.enumerable || false;
47
- descriptor.configurable = true;
48
- if ("value" in descriptor) descriptor.writable = true;
49
- Object.defineProperty(target, descriptor.key, descriptor);
50
- }
28
+ function _createClass(e, r, t) {
29
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
30
+ writable: !1
31
+ }), e;
51
32
  }
52
33
 
53
- function _createClass(Constructor, protoProps, staticProps) {
54
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
55
- if (staticProps) _defineProperties(Constructor, staticProps);
56
- Object.defineProperty(Constructor, "prototype", {
57
- writable: false
58
- });
59
- return Constructor;
34
+ function _defineProperty(e, r, t) {
35
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
36
+ value: t,
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0
40
+ }) : e[r] = t, e;
60
41
  }
61
42
 
62
- function _defineProperty(obj, key, value) {
63
- if (key in obj) {
64
- Object.defineProperty(obj, key, {
65
- value: value,
66
- enumerable: true,
67
- configurable: true,
68
- writable: true
69
- });
70
- } else {
71
- obj[key] = value;
43
+ function _iterableToArray(r) {
44
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
45
+ }
46
+
47
+ function _iterableToArrayLimit(r, l) {
48
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
49
+
50
+ if (null != t) {
51
+ var e,
52
+ n,
53
+ i,
54
+ u,
55
+ a = [],
56
+ f = !0,
57
+ o = !1;
58
+
59
+ try {
60
+ if (i = (t = t.call(r)).next, 0 === l) {
61
+ if (Object(t) !== t) return;
62
+ f = !1;
63
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
64
+ } catch (r) {
65
+ o = !0, n = r;
66
+ } finally {
67
+ try {
68
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
69
+ } finally {
70
+ if (o) throw n;
71
+ }
72
+ }
73
+
74
+ return a;
72
75
  }
76
+ }
73
77
 
74
- return obj;
78
+ function _nonIterableRest() {
79
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
80
+ }
81
+
82
+ function _nonIterableSpread() {
83
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
75
84
  }
76
85
 
77
- function _objectWithoutPropertiesLoose(source, excluded) {
78
- if (source == null) return {};
79
- var target = {};
80
- var sourceKeys = Object.keys(source);
81
- var key, i;
86
+ function ownKeys(e, r) {
87
+ var t = Object.keys(e);
82
88
 
83
- for (i = 0; i < sourceKeys.length; i++) {
84
- key = sourceKeys[i];
85
- if (excluded.indexOf(key) >= 0) continue;
86
- target[key] = source[key];
89
+ if (Object.getOwnPropertySymbols) {
90
+ var o = Object.getOwnPropertySymbols(e);
91
+ r && (o = o.filter(function (r) {
92
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
93
+ })), t.push.apply(t, o);
87
94
  }
88
95
 
89
- return target;
96
+ return t;
90
97
  }
91
98
 
92
- function _objectWithoutProperties(source, excluded) {
93
- if (source == null) return {};
99
+ function _objectSpread2(e) {
100
+ for (var r = 1; r < arguments.length; r++) {
101
+ var t = null != arguments[r] ? arguments[r] : {};
102
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
103
+ _defineProperty(e, r, t[r]);
104
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
105
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
106
+ });
107
+ }
94
108
 
95
- var target = _objectWithoutPropertiesLoose(source, excluded);
109
+ return e;
110
+ }
96
111
 
97
- var key, i;
112
+ function _objectWithoutProperties(e, t) {
113
+ if (null == e) return {};
114
+
115
+ var o,
116
+ r,
117
+ i = _objectWithoutPropertiesLoose(e, t);
98
118
 
99
119
  if (Object.getOwnPropertySymbols) {
100
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
120
+ var n = Object.getOwnPropertySymbols(e);
101
121
 
102
- for (i = 0; i < sourceSymbolKeys.length; i++) {
103
- key = sourceSymbolKeys[i];
104
- if (excluded.indexOf(key) >= 0) continue;
105
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
106
- target[key] = source[key];
107
- }
122
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
108
123
  }
109
124
 
110
- return target;
125
+ return i;
111
126
  }
112
127
 
113
- function _slicedToArray(arr, i) {
114
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
115
- }
128
+ function _objectWithoutPropertiesLoose(r, e) {
129
+ if (null == r) return {};
130
+ var t = {};
116
131
 
117
- function _toConsumableArray(arr) {
118
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
119
- }
132
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
133
+ if (-1 !== e.indexOf(n)) continue;
134
+ t[n] = r[n];
135
+ }
120
136
 
121
- function _arrayWithoutHoles(arr) {
122
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
137
+ return t;
123
138
  }
124
139
 
125
- function _arrayWithHoles(arr) {
126
- if (Array.isArray(arr)) return arr;
140
+ function _slicedToArray(r, e) {
141
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
127
142
  }
128
143
 
129
- function _iterableToArray(iter) {
130
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
144
+ function _toConsumableArray(r) {
145
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
131
146
  }
132
147
 
133
- function _iterableToArrayLimit(arr, i) {
134
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
135
-
136
- if (_i == null) return;
137
- var _arr = [];
138
- var _n = true;
139
- var _d = false;
140
-
141
- var _s, _e;
148
+ function _toPrimitive(t, r) {
149
+ if ("object" != typeof t || !t) return t;
150
+ var e = t[Symbol.toPrimitive];
142
151
 
143
- try {
144
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
145
- _arr.push(_s.value);
146
-
147
- if (i && _arr.length === i) break;
148
- }
149
- } catch (err) {
150
- _d = true;
151
- _e = err;
152
- } finally {
153
- try {
154
- if (!_n && _i["return"] != null) _i["return"]();
155
- } finally {
156
- if (_d) throw _e;
157
- }
152
+ if (void 0 !== e) {
153
+ var i = e.call(t, r || "default");
154
+ if ("object" != typeof i) return i;
155
+ throw new TypeError("@@toPrimitive must return a primitive value.");
158
156
  }
159
157
 
160
- return _arr;
158
+ return ("string" === r ? String : Number)(t);
161
159
  }
162
160
 
163
- function _unsupportedIterableToArray(o, minLen) {
164
- if (!o) return;
165
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
166
- var n = Object.prototype.toString.call(o).slice(8, -1);
167
- if (n === "Object" && o.constructor) n = o.constructor.name;
168
- if (n === "Map" || n === "Set") return Array.from(o);
169
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
170
- }
161
+ function _toPropertyKey(t) {
162
+ var i = _toPrimitive(t, "string");
171
163
 
172
- function _arrayLikeToArray(arr, len) {
173
- if (len == null || len > arr.length) len = arr.length;
174
-
175
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
176
-
177
- return arr2;
164
+ return "symbol" == typeof i ? i : i + "";
178
165
  }
179
166
 
180
- function _nonIterableSpread() {
181
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
167
+ function _typeof(o) {
168
+ "@babel/helpers - typeof";
169
+
170
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
171
+ return typeof o;
172
+ } : function (o) {
173
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
174
+ }, _typeof(o);
182
175
  }
183
176
 
184
- function _nonIterableRest() {
185
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
177
+ function _unsupportedIterableToArray(r, a) {
178
+ if (r) {
179
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
180
+ var t = {}.toString.call(r).slice(8, -1);
181
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
182
+ }
186
183
  }
187
184
 
188
185
  var baseConfig = {
package/lib/inline.js CHANGED
@@ -1,190 +1,187 @@
1
1
  'use strict';
2
2
 
3
- function ownKeys(object, enumerableOnly) {
4
- var keys = Object.keys(object);
3
+ function _arrayLikeToArray(r, a) {
4
+ (null == a || a > r.length) && (a = r.length);
5
5
 
6
- if (Object.getOwnPropertySymbols) {
7
- var symbols = Object.getOwnPropertySymbols(object);
8
- enumerableOnly && (symbols = symbols.filter(function (sym) {
9
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10
- })), keys.push.apply(keys, symbols);
11
- }
6
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
12
7
 
13
- return keys;
8
+ return n;
14
9
  }
15
10
 
16
- function _objectSpread2(target) {
17
- for (var i = 1; i < arguments.length; i++) {
18
- var source = null != arguments[i] ? arguments[i] : {};
19
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
20
- _defineProperty(target, key, source[key]);
21
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
22
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
23
- });
24
- }
25
-
26
- return target;
11
+ function _arrayWithHoles(r) {
12
+ if (Array.isArray(r)) return r;
27
13
  }
28
14
 
29
- function _typeof(obj) {
30
- "@babel/helpers - typeof";
15
+ function _arrayWithoutHoles(r) {
16
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
17
+ }
31
18
 
32
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
33
- return typeof obj;
34
- } : function (obj) {
35
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
36
- }, _typeof(obj);
19
+ function _classCallCheck(a, n) {
20
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
37
21
  }
38
22
 
39
- function _classCallCheck(instance, Constructor) {
40
- if (!(instance instanceof Constructor)) {
41
- throw new TypeError("Cannot call a class as a function");
23
+ function _defineProperties(e, r) {
24
+ for (var t = 0; t < r.length; t++) {
25
+ var o = r[t];
26
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
42
27
  }
43
28
  }
44
29
 
45
- function _defineProperties(target, props) {
46
- for (var i = 0; i < props.length; i++) {
47
- var descriptor = props[i];
48
- descriptor.enumerable = descriptor.enumerable || false;
49
- descriptor.configurable = true;
50
- if ("value" in descriptor) descriptor.writable = true;
51
- Object.defineProperty(target, descriptor.key, descriptor);
52
- }
30
+ function _createClass(e, r, t) {
31
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
32
+ writable: !1
33
+ }), e;
53
34
  }
54
35
 
55
- function _createClass(Constructor, protoProps, staticProps) {
56
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
57
- if (staticProps) _defineProperties(Constructor, staticProps);
58
- Object.defineProperty(Constructor, "prototype", {
59
- writable: false
60
- });
61
- return Constructor;
36
+ function _defineProperty(e, r, t) {
37
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
38
+ value: t,
39
+ enumerable: !0,
40
+ configurable: !0,
41
+ writable: !0
42
+ }) : e[r] = t, e;
62
43
  }
63
44
 
64
- function _defineProperty(obj, key, value) {
65
- if (key in obj) {
66
- Object.defineProperty(obj, key, {
67
- value: value,
68
- enumerable: true,
69
- configurable: true,
70
- writable: true
71
- });
72
- } else {
73
- obj[key] = value;
45
+ function _iterableToArray(r) {
46
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
47
+ }
48
+
49
+ function _iterableToArrayLimit(r, l) {
50
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
51
+
52
+ if (null != t) {
53
+ var e,
54
+ n,
55
+ i,
56
+ u,
57
+ a = [],
58
+ f = !0,
59
+ o = !1;
60
+
61
+ try {
62
+ if (i = (t = t.call(r)).next, 0 === l) {
63
+ if (Object(t) !== t) return;
64
+ f = !1;
65
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
66
+ } catch (r) {
67
+ o = !0, n = r;
68
+ } finally {
69
+ try {
70
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
71
+ } finally {
72
+ if (o) throw n;
73
+ }
74
+ }
75
+
76
+ return a;
74
77
  }
78
+ }
75
79
 
76
- return obj;
80
+ function _nonIterableRest() {
81
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
82
+ }
83
+
84
+ function _nonIterableSpread() {
85
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
77
86
  }
78
87
 
79
- function _objectWithoutPropertiesLoose(source, excluded) {
80
- if (source == null) return {};
81
- var target = {};
82
- var sourceKeys = Object.keys(source);
83
- var key, i;
88
+ function ownKeys(e, r) {
89
+ var t = Object.keys(e);
84
90
 
85
- for (i = 0; i < sourceKeys.length; i++) {
86
- key = sourceKeys[i];
87
- if (excluded.indexOf(key) >= 0) continue;
88
- target[key] = source[key];
91
+ if (Object.getOwnPropertySymbols) {
92
+ var o = Object.getOwnPropertySymbols(e);
93
+ r && (o = o.filter(function (r) {
94
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
95
+ })), t.push.apply(t, o);
89
96
  }
90
97
 
91
- return target;
98
+ return t;
92
99
  }
93
100
 
94
- function _objectWithoutProperties(source, excluded) {
95
- if (source == null) return {};
101
+ function _objectSpread2(e) {
102
+ for (var r = 1; r < arguments.length; r++) {
103
+ var t = null != arguments[r] ? arguments[r] : {};
104
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
105
+ _defineProperty(e, r, t[r]);
106
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
107
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
108
+ });
109
+ }
96
110
 
97
- var target = _objectWithoutPropertiesLoose(source, excluded);
111
+ return e;
112
+ }
98
113
 
99
- var key, i;
114
+ function _objectWithoutProperties(e, t) {
115
+ if (null == e) return {};
116
+
117
+ var o,
118
+ r,
119
+ i = _objectWithoutPropertiesLoose(e, t);
100
120
 
101
121
  if (Object.getOwnPropertySymbols) {
102
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
122
+ var n = Object.getOwnPropertySymbols(e);
103
123
 
104
- for (i = 0; i < sourceSymbolKeys.length; i++) {
105
- key = sourceSymbolKeys[i];
106
- if (excluded.indexOf(key) >= 0) continue;
107
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
108
- target[key] = source[key];
109
- }
124
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
110
125
  }
111
126
 
112
- return target;
127
+ return i;
113
128
  }
114
129
 
115
- function _slicedToArray(arr, i) {
116
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
117
- }
130
+ function _objectWithoutPropertiesLoose(r, e) {
131
+ if (null == r) return {};
132
+ var t = {};
118
133
 
119
- function _toConsumableArray(arr) {
120
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
121
- }
134
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
135
+ if (-1 !== e.indexOf(n)) continue;
136
+ t[n] = r[n];
137
+ }
122
138
 
123
- function _arrayWithoutHoles(arr) {
124
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
139
+ return t;
125
140
  }
126
141
 
127
- function _arrayWithHoles(arr) {
128
- if (Array.isArray(arr)) return arr;
142
+ function _slicedToArray(r, e) {
143
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
129
144
  }
130
145
 
131
- function _iterableToArray(iter) {
132
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
146
+ function _toConsumableArray(r) {
147
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
133
148
  }
134
149
 
135
- function _iterableToArrayLimit(arr, i) {
136
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
137
-
138
- if (_i == null) return;
139
- var _arr = [];
140
- var _n = true;
141
- var _d = false;
142
-
143
- var _s, _e;
150
+ function _toPrimitive(t, r) {
151
+ if ("object" != typeof t || !t) return t;
152
+ var e = t[Symbol.toPrimitive];
144
153
 
145
- try {
146
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
147
- _arr.push(_s.value);
148
-
149
- if (i && _arr.length === i) break;
150
- }
151
- } catch (err) {
152
- _d = true;
153
- _e = err;
154
- } finally {
155
- try {
156
- if (!_n && _i["return"] != null) _i["return"]();
157
- } finally {
158
- if (_d) throw _e;
159
- }
154
+ if (void 0 !== e) {
155
+ var i = e.call(t, r || "default");
156
+ if ("object" != typeof i) return i;
157
+ throw new TypeError("@@toPrimitive must return a primitive value.");
160
158
  }
161
159
 
162
- return _arr;
160
+ return ("string" === r ? String : Number)(t);
163
161
  }
164
162
 
165
- function _unsupportedIterableToArray(o, minLen) {
166
- if (!o) return;
167
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
168
- var n = Object.prototype.toString.call(o).slice(8, -1);
169
- if (n === "Object" && o.constructor) n = o.constructor.name;
170
- if (n === "Map" || n === "Set") return Array.from(o);
171
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
172
- }
163
+ function _toPropertyKey(t) {
164
+ var i = _toPrimitive(t, "string");
173
165
 
174
- function _arrayLikeToArray(arr, len) {
175
- if (len == null || len > arr.length) len = arr.length;
176
-
177
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
178
-
179
- return arr2;
166
+ return "symbol" == typeof i ? i : i + "";
180
167
  }
181
168
 
182
- function _nonIterableSpread() {
183
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
169
+ function _typeof(o) {
170
+ "@babel/helpers - typeof";
171
+
172
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
173
+ return typeof o;
174
+ } : function (o) {
175
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
176
+ }, _typeof(o);
184
177
  }
185
178
 
186
- function _nonIterableRest() {
187
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
179
+ function _unsupportedIterableToArray(r, a) {
180
+ if (r) {
181
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
182
+ var t = {}.toString.call(r).slice(8, -1);
183
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
184
+ }
188
185
  }
189
186
 
190
187
  var baseConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/inline-js",
3
- "version": "2.22.2-dev.1",
3
+ "version": "2.22.3-dev.1",
4
4
  "description": "Client-side library to load the Paystack checkout form",
5
5
  "main": "lib/inline.js",
6
6
  "module": "es/inline.js",
@@ -35,7 +35,6 @@
35
35
  "@rollup/plugin-json": "^4.1.0",
36
36
  "@rollup/plugin-node-resolve": "^13.1.3",
37
37
  "@rollup/plugin-replace": "^4.0.0",
38
- "axios-mock-adapter": "^1.16.0",
39
38
  "babel-jest": "^27.5.1",
40
39
  "commitizen": "^4.2.4",
41
40
  "cross-env": "^5.1.6",
@@ -56,7 +55,7 @@
56
55
  "rollup": "^2.70.0",
57
56
  "rollup-plugin-node-globals": "^1.4.0",
58
57
  "rollup-plugin-terser": "^7.0.2",
59
- "semantic-release": "^19.0.2"
58
+ "semantic-release": "^24.2.3"
60
59
  },
61
60
  "scripts": {
62
61
  "clean": "rimraf lib dist es",
@@ -94,7 +93,6 @@
94
93
  }
95
94
  },
96
95
  "engines": {
97
- "node": ">= 18.0.0",
98
- "npm": ">= 10.0.0"
96
+ "node": ">= 22.0.0"
99
97
  }
100
98
  }