ouisys-engine 2.1.76 → 3.0.0
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/.eslintrc.js +0 -2
- package/.nvmrc +1 -1
- package/dist/@types/window.d.js +5 -1
- package/dist/api/index.js +80 -48
- package/dist/common-types/AppThunk.js +5 -1
- package/dist/common-types/Either.js +5 -1
- package/dist/common-types/IError.js +5 -1
- package/dist/common-types/ITracker.js +3 -0
- package/dist/common-types/IVisitor.js +5 -1
- package/dist/common-types/RemoteDataState.js +3 -3
- package/dist/ips/tryGetIPRangeName.js +37 -5
- package/dist/pacman/index.js +16 -14
- package/dist/pacman/queryString.js +12 -10
- package/dist/reducers/click2smsFlow/Click2smsTypes.js +5 -1
- package/dist/reducers/click2smsFlow/IClick2smsConstants.js +5 -1
- package/dist/reducers/click2smsFlow/index.d.ts +1 -1
- package/dist/reducers/click2smsFlow/index.js +41 -25
- package/dist/reducers/click2smsFlow/utils.js +53 -31
- package/dist/reducers/moFlow/IMoConstants.js +5 -1
- package/dist/reducers/moFlow/MoTypes.js +5 -1
- package/dist/reducers/moFlow/index.d.ts +1 -1
- package/dist/reducers/moFlow/index.js +41 -25
- package/dist/reducers/moFlow/utils.js +57 -39
- package/dist/reducers/moRedirFlow/IMoRedirConstants.js +5 -1
- package/dist/reducers/moRedirFlow/MoRedirTypes.js +5 -1
- package/dist/reducers/moRedirFlow/index.d.ts +1 -1
- package/dist/reducers/moRedirFlow/index.js +37 -19
- package/dist/reducers/moRedirFlow/utils.js +48 -32
- package/dist/reducers/oneClickFlow/IOneClickConstants.js +5 -1
- package/dist/reducers/oneClickFlow/OneClickTypes.js +5 -1
- package/dist/reducers/oneClickFlow/index.d.ts +1 -1
- package/dist/reducers/oneClickFlow/index.js +44 -28
- package/dist/reducers/oneClickFlow/utils.js +49 -35
- package/dist/reducers/pinFlow/IPinConstants.js +5 -1
- package/dist/reducers/pinFlow/PinTypes.js +5 -1
- package/dist/reducers/pinFlow/index.d.ts +1 -1
- package/dist/reducers/pinFlow/index.js +47 -31
- package/dist/reducers/pinFlow/utils.js +63 -47
- package/dist/reducers/strategy/IStategyActionContants.js +5 -1
- package/dist/reducers/strategy/StrategyTypes.js +5 -1
- package/dist/reducers/strategy/index.d.ts +2 -2
- package/dist/reducers/strategy/index.js +44 -24
- package/dist/reducers/strategy/strategies/ask_mobile_number.js +39 -23
- package/dist/reducers/strategy/strategies/ask_operator.js +41 -25
- package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +50 -33
- package/dist/reducers/strategy/strategies/header_enrichment.js +42 -24
- package/dist/reducers/strategy/utils.js +72 -54
- package/dist/reducers/ussdFlow/IUssdConstants.js +5 -1
- package/dist/reducers/ussdFlow/UssdTypes.js +5 -1
- package/dist/reducers/ussdFlow/index.d.ts +1 -1
- package/dist/reducers/ussdFlow/index.js +41 -25
- package/dist/reducers/ussdFlow/utils.js +53 -35
- package/dist/store/index.js +16 -16
- package/dist/utilities/handleSubmitNumber.js +6 -6
- package/dist/utilities/index.js +2 -2
- package/package.json +63 -58
- package/prettier.config.js +1 -1
- package/src/reducers/pinFlow/utils.ts +0 -1
- package/src/reducers/strategy/index.ts +3 -2
- package/src/reducers/strategy/strategies/detect_operator_by_ip.ts +0 -1
- package/src/utilities/index.ts +1 -1
- package/tsconfig.json +1 -1
package/.eslintrc.js
CHANGED
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v16.16.0
|
package/dist/@types/window.d.js
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -1,17 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.symbol.async-iterator.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.symbol.to-string-tag.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.json.to-string-tag.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/es.math.to-string-tag.js");
|
|
24
|
+
|
|
25
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
26
|
+
|
|
27
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
28
|
+
|
|
29
|
+
require("core-js/modules/es.function.name.js");
|
|
30
|
+
|
|
31
|
+
require("core-js/modules/es.object.set-prototype-of.js");
|
|
32
|
+
|
|
33
|
+
require("core-js/modules/es.array.slice.js");
|
|
8
34
|
|
|
9
35
|
Object.defineProperty(exports, "__esModule", {
|
|
10
36
|
value: true
|
|
11
37
|
});
|
|
12
38
|
exports.RealTallyman = exports.MockTallyman = void 0;
|
|
13
39
|
|
|
14
|
-
require("
|
|
40
|
+
require("core-js/modules/es.object.to-string.js");
|
|
41
|
+
|
|
42
|
+
require("core-js/modules/es.promise.js");
|
|
43
|
+
|
|
44
|
+
require("core-js/modules/es.array.concat.js");
|
|
45
|
+
|
|
46
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
15
47
|
|
|
16
48
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
49
|
|
|
@@ -32,8 +64,8 @@ function sleep(milliseconds) {
|
|
|
32
64
|
|
|
33
65
|
var MockTallyman = {
|
|
34
66
|
identify: function () {
|
|
35
|
-
var _identify = _asyncToGenerator( /*#__PURE__*/
|
|
36
|
-
return
|
|
67
|
+
var _identify = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(host, slug, country, msisdn, device, offer, rockmanId) {
|
|
68
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
37
69
|
while (1) {
|
|
38
70
|
switch (_context.prev = _context.next) {
|
|
39
71
|
case 0:
|
|
@@ -61,8 +93,8 @@ var MockTallyman = {
|
|
|
61
93
|
return identify;
|
|
62
94
|
}(),
|
|
63
95
|
triggerPin: function () {
|
|
64
|
-
var _triggerPin = _asyncToGenerator( /*#__PURE__*/
|
|
65
|
-
return
|
|
96
|
+
var _triggerPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(host, country, slug, device, offer, msisdn, rockmanId, extraParamsQs, search, uniqid, evinaTid) {
|
|
97
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
66
98
|
while (1) {
|
|
67
99
|
switch (_context2.prev = _context2.next) {
|
|
68
100
|
case 0:
|
|
@@ -91,8 +123,8 @@ var MockTallyman = {
|
|
|
91
123
|
return triggerPin;
|
|
92
124
|
}(),
|
|
93
125
|
verifyPin: function () {
|
|
94
|
-
var _verifyPin = _asyncToGenerator( /*#__PURE__*/
|
|
95
|
-
return
|
|
126
|
+
var _verifyPin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(host, country, slug, device, offer, rockmanId, pin, extraParamsQs, uniqid) {
|
|
127
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
96
128
|
while (1) {
|
|
97
129
|
switch (_context3.prev = _context3.next) {
|
|
98
130
|
case 0:
|
|
@@ -120,8 +152,8 @@ var MockTallyman = {
|
|
|
120
152
|
return verifyPin;
|
|
121
153
|
}(),
|
|
122
154
|
checkSubscription: function () {
|
|
123
|
-
var _checkSubscription = _asyncToGenerator( /*#__PURE__*/
|
|
124
|
-
return
|
|
155
|
+
var _checkSubscription = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(host, country, slug, device, offer, rockmanId, pin, extraParamsQs) {
|
|
156
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
125
157
|
while (1) {
|
|
126
158
|
switch (_context4.prev = _context4.next) {
|
|
127
159
|
case 0:
|
|
@@ -149,8 +181,8 @@ var MockTallyman = {
|
|
|
149
181
|
return checkSubscription;
|
|
150
182
|
}(),
|
|
151
183
|
checkSubscriptionByRockmanIdOnly: function () {
|
|
152
|
-
var _checkSubscriptionByRockmanIdOnly = _asyncToGenerator( /*#__PURE__*/
|
|
153
|
-
return
|
|
184
|
+
var _checkSubscriptionByRockmanIdOnly = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(host, rockmanId) {
|
|
185
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
154
186
|
while (1) {
|
|
155
187
|
switch (_context5.prev = _context5.next) {
|
|
156
188
|
case 0:
|
|
@@ -178,8 +210,8 @@ var MockTallyman = {
|
|
|
178
210
|
return checkSubscriptionByRockmanIdOnly;
|
|
179
211
|
}(),
|
|
180
212
|
redirect: function () {
|
|
181
|
-
var _redirect = _asyncToGenerator( /*#__PURE__*/
|
|
182
|
-
return
|
|
213
|
+
var _redirect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(host, slug, country, msisdn, device, offer, rockmanId, ip_range_name, search, extraParamsQs) {
|
|
214
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
183
215
|
while (1) {
|
|
184
216
|
switch (_context6.prev = _context6.next) {
|
|
185
217
|
case 0:
|
|
@@ -206,8 +238,8 @@ var MockTallyman = {
|
|
|
206
238
|
return redirect;
|
|
207
239
|
}(),
|
|
208
240
|
triggerMessage: function () {
|
|
209
|
-
var _triggerMessage = _asyncToGenerator( /*#__PURE__*/
|
|
210
|
-
return
|
|
241
|
+
var _triggerMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
|
|
242
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
211
243
|
while (1) {
|
|
212
244
|
switch (_context7.prev = _context7.next) {
|
|
213
245
|
case 0:
|
|
@@ -235,8 +267,8 @@ var MockTallyman = {
|
|
|
235
267
|
return triggerMessage;
|
|
236
268
|
}(),
|
|
237
269
|
ussd: function () {
|
|
238
|
-
var _ussd = _asyncToGenerator( /*#__PURE__*/
|
|
239
|
-
return
|
|
270
|
+
var _ussd = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
|
|
271
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
240
272
|
while (1) {
|
|
241
273
|
switch (_context8.prev = _context8.next) {
|
|
242
274
|
case 0:
|
|
@@ -264,8 +296,8 @@ var MockTallyman = {
|
|
|
264
296
|
return ussd;
|
|
265
297
|
}(),
|
|
266
298
|
oc2sms: function () {
|
|
267
|
-
var _oc2sms = _asyncToGenerator( /*#__PURE__*/
|
|
268
|
-
return
|
|
299
|
+
var _oc2sms = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(host, country, slug, offer, rockmanId, keyword, operator, search) {
|
|
300
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
269
301
|
while (1) {
|
|
270
302
|
switch (_context9.prev = _context9.next) {
|
|
271
303
|
case 0:
|
|
@@ -294,8 +326,8 @@ var MockTallyman = {
|
|
|
294
326
|
return oc2sms;
|
|
295
327
|
}(),
|
|
296
328
|
mcpShield: function () {
|
|
297
|
-
var _mcpShield = _asyncToGenerator( /*#__PURE__*/
|
|
298
|
-
return
|
|
329
|
+
var _mcpShield = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(host, country, slug, device, offer, rockmanId, operator) {
|
|
330
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
299
331
|
while (1) {
|
|
300
332
|
switch (_context10.prev = _context10.next) {
|
|
301
333
|
case 0:
|
|
@@ -323,8 +355,8 @@ var MockTallyman = {
|
|
|
323
355
|
return mcpShield;
|
|
324
356
|
}(),
|
|
325
357
|
getGoogleCaptcha: function () {
|
|
326
|
-
var _getGoogleCaptcha = _asyncToGenerator( /*#__PURE__*/
|
|
327
|
-
return
|
|
358
|
+
var _getGoogleCaptcha = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(host, country, slug, device, domain) {
|
|
359
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
328
360
|
while (1) {
|
|
329
361
|
switch (_context11.prev = _context11.next) {
|
|
330
362
|
case 0:
|
|
@@ -353,9 +385,9 @@ var MockTallyman = {
|
|
|
353
385
|
exports.MockTallyman = MockTallyman;
|
|
354
386
|
var RealTallyman = {
|
|
355
387
|
identify: function () {
|
|
356
|
-
var _identify2 = _asyncToGenerator( /*#__PURE__*/
|
|
388
|
+
var _identify2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(host, slug, country, msisdn, device, offer, rockmanId) {
|
|
357
389
|
var isDMB, newHost;
|
|
358
|
-
return
|
|
390
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
359
391
|
while (1) {
|
|
360
392
|
switch (_context12.prev = _context12.next) {
|
|
361
393
|
case 0:
|
|
@@ -385,9 +417,9 @@ var RealTallyman = {
|
|
|
385
417
|
return identify;
|
|
386
418
|
}(),
|
|
387
419
|
triggerPin: function () {
|
|
388
|
-
var _triggerPin2 = _asyncToGenerator( /*#__PURE__*/
|
|
420
|
+
var _triggerPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(host, country, slug, device, offer, msisdn, rockmanId, extraParamsQs, search, uniqid) {
|
|
389
421
|
var isDMB, newHost, isCleanTraffic;
|
|
390
|
-
return
|
|
422
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
391
423
|
while (1) {
|
|
392
424
|
switch (_context13.prev = _context13.next) {
|
|
393
425
|
case 0:
|
|
@@ -418,9 +450,9 @@ var RealTallyman = {
|
|
|
418
450
|
return triggerPin;
|
|
419
451
|
}(),
|
|
420
452
|
verifyPin: function () {
|
|
421
|
-
var _verifyPin2 = _asyncToGenerator( /*#__PURE__*/
|
|
453
|
+
var _verifyPin2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(host, country, slug, device, offer, rockmanId, pin, extraParamsQs, uniqid, evinaTid) {
|
|
422
454
|
var isDMB, newHost, isCleanTraffic;
|
|
423
|
-
return
|
|
455
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
424
456
|
while (1) {
|
|
425
457
|
switch (_context14.prev = _context14.next) {
|
|
426
458
|
case 0:
|
|
@@ -451,9 +483,9 @@ var RealTallyman = {
|
|
|
451
483
|
return verifyPin;
|
|
452
484
|
}(),
|
|
453
485
|
checkSubscription: function () {
|
|
454
|
-
var _checkSubscription2 = _asyncToGenerator( /*#__PURE__*/
|
|
486
|
+
var _checkSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(host, country, slug, device, offer, rockmanId, pin, extraParamsQs) {
|
|
455
487
|
var isDMB, newHost;
|
|
456
|
-
return
|
|
488
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
457
489
|
while (1) {
|
|
458
490
|
switch (_context15.prev = _context15.next) {
|
|
459
491
|
case 0:
|
|
@@ -483,9 +515,9 @@ var RealTallyman = {
|
|
|
483
515
|
return checkSubscription;
|
|
484
516
|
}(),
|
|
485
517
|
checkSubscriptionByRockmanIdOnly: function () {
|
|
486
|
-
var _checkSubscriptionByRockmanIdOnly2 = _asyncToGenerator( /*#__PURE__*/
|
|
518
|
+
var _checkSubscriptionByRockmanIdOnly2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(host, rockmanId) {
|
|
487
519
|
var isDMB, newHost;
|
|
488
|
-
return
|
|
520
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
489
521
|
while (1) {
|
|
490
522
|
switch (_context16.prev = _context16.next) {
|
|
491
523
|
case 0:
|
|
@@ -515,9 +547,9 @@ var RealTallyman = {
|
|
|
515
547
|
return checkSubscriptionByRockmanIdOnly;
|
|
516
548
|
}(),
|
|
517
549
|
redirect: function () {
|
|
518
|
-
var _redirect2 = _asyncToGenerator( /*#__PURE__*/
|
|
550
|
+
var _redirect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(host, slug, country, msisdn, device, offer, rockmanId, ip_range_name, search, extraParamsQs) {
|
|
519
551
|
var isDMB, newHost, evinaTi;
|
|
520
|
-
return
|
|
552
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
521
553
|
while (1) {
|
|
522
554
|
switch (_context17.prev = _context17.next) {
|
|
523
555
|
case 0:
|
|
@@ -548,9 +580,9 @@ var RealTallyman = {
|
|
|
548
580
|
return redirect;
|
|
549
581
|
}(),
|
|
550
582
|
triggerMessage: function () {
|
|
551
|
-
var _triggerMessage2 = _asyncToGenerator( /*#__PURE__*/
|
|
583
|
+
var _triggerMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
|
|
552
584
|
var isDMB, newHost, samGtoken;
|
|
553
|
-
return
|
|
585
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
554
586
|
while (1) {
|
|
555
587
|
switch (_context18.prev = _context18.next) {
|
|
556
588
|
case 0:
|
|
@@ -581,9 +613,9 @@ var RealTallyman = {
|
|
|
581
613
|
return triggerMessage;
|
|
582
614
|
}(),
|
|
583
615
|
ussd: function () {
|
|
584
|
-
var _ussd2 = _asyncToGenerator( /*#__PURE__*/
|
|
616
|
+
var _ussd2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(host, slug, country, msisdn, device, offer, rockmanId, search, extraParamsQs) {
|
|
585
617
|
var isDMB, newHost;
|
|
586
|
-
return
|
|
618
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
587
619
|
while (1) {
|
|
588
620
|
switch (_context19.prev = _context19.next) {
|
|
589
621
|
case 0:
|
|
@@ -613,9 +645,9 @@ var RealTallyman = {
|
|
|
613
645
|
return ussd;
|
|
614
646
|
}(),
|
|
615
647
|
oc2sms: function () {
|
|
616
|
-
var _oc2sms2 = _asyncToGenerator( /*#__PURE__*/
|
|
648
|
+
var _oc2sms2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(host, country, slug, offer, rockmanId, keyword, operator, search) {
|
|
617
649
|
var isDMB, newHost;
|
|
618
|
-
return
|
|
650
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
619
651
|
while (1) {
|
|
620
652
|
switch (_context20.prev = _context20.next) {
|
|
621
653
|
case 0:
|
|
@@ -645,9 +677,9 @@ var RealTallyman = {
|
|
|
645
677
|
return oc2sms;
|
|
646
678
|
}(),
|
|
647
679
|
mcpShield: function () {
|
|
648
|
-
var _mcpShield2 = _asyncToGenerator( /*#__PURE__*/
|
|
680
|
+
var _mcpShield2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(host, country, slug, device, offer, rockmanId, operator, uniqid) {
|
|
649
681
|
var isDMB, newHost, pageUrl, ipAdd, userIp;
|
|
650
|
-
return
|
|
682
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
651
683
|
while (1) {
|
|
652
684
|
switch (_context21.prev = _context21.next) {
|
|
653
685
|
case 0:
|
|
@@ -680,9 +712,9 @@ var RealTallyman = {
|
|
|
680
712
|
return mcpShield;
|
|
681
713
|
}(),
|
|
682
714
|
getGoogleCaptcha: function () {
|
|
683
|
-
var _getGoogleCaptcha2 = _asyncToGenerator( /*#__PURE__*/
|
|
715
|
+
var _getGoogleCaptcha2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(host, country, slug, device, domain) {
|
|
684
716
|
var isDMB, newHost;
|
|
685
|
-
return
|
|
717
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
686
718
|
while (1) {
|
|
687
719
|
switch (_context22.prev = _context22.next) {
|
|
688
720
|
case 0:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.regexp.exec");
|
|
3
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.string.match");
|
|
5
|
+
require("core-js/modules/es.string.match.js");
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
+
exports.WhenSuccess = exports.WhenLoading = exports.WhenFailure = exports.Success = exports.NothingYet = exports.MatchSuccess = exports.MatchFailure = exports.Loading = exports.IsSuccess = exports.IsNothingYet = exports.IsLoading = exports.IsFailure = exports.Failure = void 0;
|
|
10
11
|
exports.match = match;
|
|
11
|
-
exports.MatchSuccess = exports.MatchFailure = exports.WhenSuccess = exports.WhenLoading = exports.WhenFailure = exports.IsSuccess = exports.IsFailure = exports.IsLoading = exports.IsNothingYet = exports.Success = exports.Failure = exports.Loading = exports.NothingYet = void 0;
|
|
12
12
|
|
|
13
13
|
function match(_ref) {
|
|
14
14
|
var nothingYet = _ref.nothingYet,
|
|
@@ -1,20 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.symbol.async-iterator.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.symbol.to-string-tag.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.json.to-string-tag.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/es.math.to-string-tag.js");
|
|
24
|
+
|
|
25
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
26
|
+
|
|
27
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
28
|
+
|
|
29
|
+
require("core-js/modules/es.function.name.js");
|
|
30
|
+
|
|
31
|
+
require("core-js/modules/es.object.set-prototype-of.js");
|
|
32
|
+
|
|
33
|
+
require("core-js/modules/es.array.slice.js");
|
|
6
34
|
|
|
7
35
|
Object.defineProperty(exports, "__esModule", {
|
|
8
36
|
value: true
|
|
9
37
|
});
|
|
10
38
|
exports.default = tryGetIPRangeName;
|
|
11
39
|
|
|
12
|
-
require("
|
|
40
|
+
require("core-js/modules/es.object.to-string.js");
|
|
41
|
+
|
|
42
|
+
require("core-js/modules/es.promise.js");
|
|
13
43
|
|
|
14
44
|
var _queryString = _interopRequireDefault(require("../pacman/queryString"));
|
|
15
45
|
|
|
16
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
47
|
|
|
48
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
49
|
+
|
|
18
50
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
19
51
|
|
|
20
52
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -24,9 +56,9 @@ function tryGetIPRangeName(_x) {
|
|
|
24
56
|
}
|
|
25
57
|
|
|
26
58
|
function _tryGetIPRangeName() {
|
|
27
|
-
_tryGetIPRangeName = _asyncToGenerator( /*#__PURE__*/
|
|
59
|
+
_tryGetIPRangeName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(visitor) {
|
|
28
60
|
var mockip, host, res;
|
|
29
|
-
return
|
|
61
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30
62
|
while (1) {
|
|
31
63
|
switch (_context.prev = _context.next) {
|
|
32
64
|
case 0:
|
package/dist/pacman/index.js
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.array.filter.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.object.
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.object.
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/
|
|
13
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.string.search");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/web.dom-collections.for-each");
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
20
16
|
|
|
21
17
|
Object.defineProperty(exports, "__esModule", {
|
|
22
18
|
value: true
|
|
23
19
|
});
|
|
20
|
+
exports.default = void 0;
|
|
24
21
|
Object.defineProperty(exports, "queryString", {
|
|
25
22
|
enumerable: true,
|
|
26
23
|
get: function get() {
|
|
27
24
|
return _queryString2.default;
|
|
28
25
|
}
|
|
29
26
|
});
|
|
30
|
-
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.string.search.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.string.replace.js");
|
|
31
33
|
|
|
32
34
|
var _queryString2 = _interopRequireDefault(require("./queryString"));
|
|
33
35
|
|
|
@@ -37,9 +39,9 @@ var _pacmanClient = _interopRequireDefault(require("pacman-client"));
|
|
|
37
39
|
|
|
38
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
41
|
|
|
40
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
42
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
41
43
|
|
|
42
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
44
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
43
45
|
|
|
44
46
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
47
|
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
exports.updateUrlParameter = updateUrlParameter;
|
|
4
8
|
|
|
5
|
-
require("core-js/modules/es.regexp.exec");
|
|
9
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
6
10
|
|
|
7
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.string.replace.js");
|
|
8
12
|
|
|
9
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.regexp.constructor.js");
|
|
10
14
|
|
|
11
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.regexp.sticky.js");
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.updateUrlParameter = updateUrlParameter;
|
|
17
|
-
exports.default = void 0;
|
|
17
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.string.match.js");
|
|
18
20
|
|
|
19
21
|
var _default = function _default(url, paramName) {
|
|
20
22
|
var name = paramName.replace(/[\[\]]/g, "\\$&");
|
|
@@ -2,4 +2,4 @@ import { IClick2smsFlowReducerState, IClick2SmsFlowActionMaps, IClick2SmsActions
|
|
|
2
2
|
import { AppThunk } from "../../common-types/AppThunk";
|
|
3
3
|
export declare function loadOc2sms(): AppThunk;
|
|
4
4
|
export declare const Click2smsFlowActionMaps: IClick2SmsFlowActionMaps;
|
|
5
|
-
export default function Click2smsFlowReducer(state: IClick2smsFlowReducerState, action: IClick2SmsActions):
|
|
5
|
+
export default function Click2smsFlowReducer(state: IClick2smsFlowReducerState, action: IClick2SmsActions): IClick2smsFlowReducerState;
|